lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202601220002.cJKQOY2h-lkp@intel.com>
Date: Thu, 22 Jan 2026 00:15:44 +0800
From: kernel test robot <lkp@...el.com>
To: Prashanth K <prashanth.k@....qualcomm.com>,
	Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-usb@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Prashanth K <prashanth.k@....qualcomm.com>
Subject: Re: [PATCH v5] usb: dwc3: Log dwc3 address in traces

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ