Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cdnsp: Remove unused tracepoints

Tracepoints that are defined take up around 5K each, even if they are not
used. If they are defined and not used, then they waste memory for unused
code. Soon unused tracepoints will cause warnings.

Remove the unused tracepoints of the cdnsp subsystem. They are:

cdnsp_defered_event
cdnsp_ep0_halted
cdnsp_free_priv_device
cdnsp_handle_cmd_flush_ep

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20250829015650.224063821@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Steven Rostedt and committed by
Greg Kroah-Hartman
9d4552da 1c15b2f8

-25
-25
drivers/usb/cdns3/cdnsp-trace.h
··· 178 178 TP_ARGS(msg) 179 179 ); 180 180 181 - DEFINE_EVENT(cdnsp_log_simple, cdnsp_ep0_halted, 182 - TP_PROTO(char *msg), 183 - TP_ARGS(msg) 184 - ); 185 - 186 181 DEFINE_EVENT(cdnsp_log_simple, cdnsp_ep_halt, 187 182 TP_PROTO(char *msg), 188 183 TP_ARGS(msg) ··· 394 399 TP_ARGS(ring, trb) 395 400 ); 396 401 397 - DEFINE_EVENT(cdnsp_log_trb, cdnsp_defered_event, 398 - TP_PROTO(struct cdnsp_ring *ring, struct cdnsp_generic_trb *trb), 399 - TP_ARGS(ring, trb) 400 - ); 401 - 402 402 DECLARE_EVENT_CLASS(cdnsp_log_pdev, 403 403 TP_PROTO(struct cdnsp_device *pdev), 404 404 TP_ARGS(pdev), ··· 419 429 ); 420 430 421 431 DEFINE_EVENT(cdnsp_log_pdev, cdnsp_alloc_priv_device, 422 - TP_PROTO(struct cdnsp_device *vdev), 423 - TP_ARGS(vdev) 424 - ); 425 - 426 - DEFINE_EVENT(cdnsp_log_pdev, cdnsp_free_priv_device, 427 - TP_PROTO(struct cdnsp_device *vdev), 428 - TP_ARGS(vdev) 429 - ); 430 - 431 - DEFINE_EVENT(cdnsp_log_pdev, cdnsp_setup_device, 432 432 TP_PROTO(struct cdnsp_device *vdev), 433 433 TP_ARGS(vdev) 434 434 ); ··· 551 571 ); 552 572 553 573 DEFINE_EVENT(cdnsp_log_ep_ctx, cdnsp_handle_cmd_stop_ep, 554 - TP_PROTO(struct cdnsp_ep_ctx *ctx), 555 - TP_ARGS(ctx) 556 - ); 557 - 558 - DEFINE_EVENT(cdnsp_log_ep_ctx, cdnsp_handle_cmd_flush_ep, 559 574 TP_PROTO(struct cdnsp_ep_ctx *ctx), 560 575 TP_ARGS(ctx) 561 576 );