public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Prashanth K <prashanth.k@oss.qualcomm.com>,
	Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Prashanth K <prashanth.k@oss.qualcomm.com>
Subject: Re: [PATCH v5] usb: dwc3: Log dwc3 address in traces
Date: Thu, 22 Jan 2026 00:15:44 +0800	[thread overview]
Message-ID: <202601220002.cJKQOY2h-lkp@intel.com> (raw)
In-Reply-To: <20260121084550.3112162-1-prashanth.k@oss.qualcomm.com>

Hi Prashanth,

kernel test robot noticed the following build warnings:

[auto build test WARNING on usb/usb-testing]
[also build test WARNING on usb/usb-next usb/usb-linus linus/master v6.19-rc6 next-20260120]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Prashanth-K/usb-dwc3-Log-dwc3-address-in-traces/20260121-165130
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
patch link:    https://lore.kernel.org/r/20260121084550.3112162-1-prashanth.k%40oss.qualcomm.com
patch subject: [PATCH v5] usb: dwc3: Log dwc3 address in traces
config: sparc64-randconfig-001-20260121 (https://download.01.org/0day-ci/archive/20260122/202601220002.cJKQOY2h-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260122/202601220002.cJKQOY2h-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601220002.cJKQOY2h-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:132,
                    from drivers/usb/dwc3/trace.h:387,
                    from drivers/usb/dwc3/trace.c:11:
   drivers/usb/dwc3/./trace.h: In function 'trace_raw_output_dwc3_log_set_prtcap':
>> drivers/usb/dwc3/./trace.h:33:19: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
      33 |         TP_printk("%pa: mode %s", __entry->base_address, dwc3_mode_string(__entry->mode))
         |                   ^~~~~~~~~~~~~~
   include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   drivers/usb/dwc3/./trace.h:33:9: note: in expansion of macro 'TP_printk'
      33 |         TP_printk("%pa: mode %s", __entry->base_address, dwc3_mode_string(__entry->mode))
         |         ^~~~~~~~~
   In file included from include/trace/trace_events.h:256:
   drivers/usb/dwc3/./trace.h:33:21: note: format string is defined here
      33 |         TP_printk("%pa: mode %s", __entry->base_address, dwc3_mode_string(__entry->mode))
         |                    ~^
         |                     |
         |                     void *
         |                    %lld
   drivers/usb/dwc3/./trace.h: In function 'trace_raw_output_dwc3_log_io':
   drivers/usb/dwc3/./trace.h:56:19: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
      56 |         TP_printk("%pa: addr %p offset %04x value %08x",
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   drivers/usb/dwc3/./trace.h:56:9: note: in expansion of macro 'TP_printk'
      56 |         TP_printk("%pa: addr %p offset %04x value %08x",
         |         ^~~~~~~~~
   drivers/usb/dwc3/./trace.h:56:21: note: format string is defined here
      56 |         TP_printk("%pa: addr %p offset %04x value %08x",
         |                    ~^
         |                     |
         |                     void *
         |                    %lld
   drivers/usb/dwc3/./trace.h: In function 'trace_raw_output_dwc3_log_event':
   drivers/usb/dwc3/./trace.h:86:19: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
      86 |         TP_printk("%pa: event (%08x): %s", __entry->base_address, __entry->event,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   drivers/usb/dwc3/./trace.h:86:9: note: in expansion of macro 'TP_printk'
      86 |         TP_printk("%pa: event (%08x): %s", __entry->base_address, __entry->event,
         |         ^~~~~~~~~
   drivers/usb/dwc3/./trace.h:86:21: note: format string is defined here
      86 |         TP_printk("%pa: event (%08x): %s", __entry->base_address, __entry->event,
         |                    ~^
         |                     |
         |                     void *
         |                    %lld
   drivers/usb/dwc3/./trace.h: In function 'trace_raw_output_dwc3_log_ctrl':
   drivers/usb/dwc3/./trace.h:115:19: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
     115 |         TP_printk("%pa: %s", __entry->base_address, usb_decode_ctrl(__get_buf(DWC3_MSG_MAX),
         |                   ^~~~~~~~~
   include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   drivers/usb/dwc3/./trace.h:115:9: note: in expansion of macro 'TP_printk'
     115 |         TP_printk("%pa: %s", __entry->base_address, usb_decode_ctrl(__get_buf(DWC3_MSG_MAX),
         |         ^~~~~~~~~
   drivers/usb/dwc3/./trace.h:115:21: note: format string is defined here
     115 |         TP_printk("%pa: %s", __entry->base_address, usb_decode_ctrl(__get_buf(DWC3_MSG_MAX),
         |                    ~^
         |                     |
         |                     void *
         |                    %lld
   drivers/usb/dwc3/./trace.h: In function 'trace_raw_output_dwc3_log_request':
   drivers/usb/dwc3/./trace.h:152:19: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
     152 |         TP_printk("%pa: %s: req %p length %u/%u %s%s%s ==> %d",
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   drivers/usb/dwc3/./trace.h:152:9: note: in expansion of macro 'TP_printk'
     152 |         TP_printk("%pa: %s: req %p length %u/%u %s%s%s ==> %d",
         |         ^~~~~~~~~
   drivers/usb/dwc3/./trace.h:152:21: note: format string is defined here
     152 |         TP_printk("%pa: %s: req %p length %u/%u %s%s%s ==> %d",
         |                    ~^
         |                     |
         |                     void *
         |                    %lld
   drivers/usb/dwc3/./trace.h: In function 'trace_raw_output_dwc3_log_generic_cmd':
   drivers/usb/dwc3/./trace.h:203:19: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
     203 |         TP_printk("%pa: cmd '%s' [%x] param %08x --> status: %s",
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   drivers/usb/dwc3/./trace.h:203:9: note: in expansion of macro 'TP_printk'
     203 |         TP_printk("%pa: cmd '%s' [%x] param %08x --> status: %s",
         |         ^~~~~~~~~
   drivers/usb/dwc3/./trace.h:203:21: note: format string is defined here
     203 |         TP_printk("%pa: cmd '%s' [%x] param %08x --> status: %s",
         |                    ~^
         |                     |
         |                     void *
         |                    %lld
   drivers/usb/dwc3/./trace.h: In function 'trace_raw_output_dwc3_log_gadget_ep_cmd':
   drivers/usb/dwc3/./trace.h:237:19: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
     237 |         TP_printk("%pa: %s: cmd '%s' [%x] params %08x %08x %08x --> status: %s",
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'


vim +33 drivers/usb/dwc3/./trace.h

    21	
    22	DECLARE_EVENT_CLASS(dwc3_log_set_prtcap,
    23		TP_PROTO(struct dwc3 *dwc, u32 mode),
    24		TP_ARGS(dwc, mode),
    25		TP_STRUCT__entry(
    26			__field(phys_addr_t, base_address)
    27			__field(u32, mode)
    28		),
    29		TP_fast_assign(
    30			__entry->base_address = dwc->xhci_resources[0].start;
    31			__entry->mode = mode;
    32		),
  > 33		TP_printk("%pa: mode %s", __entry->base_address, dwc3_mode_string(__entry->mode))
    34	);
    35	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      reply	other threads:[~2026-01-21 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21  8:45 [PATCH v5] usb: dwc3: Log dwc3 address in traces Prashanth K
2026-01-21 16:15 ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202601220002.cJKQOY2h-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=prashanth.k@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox