All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 1/2] include/trace/events/rwmmio.h:33:12: warning: format '%p' expects argument of type 'void but argument 3 has type 'u64' {aka 'long long unsigned int'}
@ 2021-01-11 21:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-11 21:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6938 bytes --]

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   1f5a05b6dc87d6857bf06ee320d7ad94249ccfc8
commit: e091aa59b956dc60ca88a83ce3510a4de2d8dd59 [1/2] ANDROID: tracing: Add register read and write tracing support
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout e091aa59b956dc60ca88a83ce3510a4de2d8dd59
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:102,
                    from include/trace/events/rwmmio.h:85,
                    from kernel/trace/trace_readwrite.c:15:
   include/trace/events/rwmmio.h: In function 'trace_raw_output_rwmmio_write':
>> include/trace/events/rwmmio.h:33:12: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
      33 |  TP_printk("%pS write addr=%llx of width=%x val=0x%llx\n",
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:367:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     367 |  trace_seq_printf(s, print);     \
         |                      ^~~~~
   include/trace/trace_events.h:80:9: note: in expansion of macro 'PARAMS'
      80 |         PARAMS(print));         \
         |         ^~~~~~
   include/trace/events/rwmmio.h:13:1: note: in expansion of macro 'TRACE_EVENT'
      13 | TRACE_EVENT(rwmmio_write,
         | ^~~~~~~~~~~
   include/trace/events/rwmmio.h:33:2: note: in expansion of macro 'TP_printk'
      33 |  TP_printk("%pS write addr=%llx of width=%x val=0x%llx\n",
         |  ^~~~~~~~~
   In file included from include/trace/trace_events.h:401,
                    from include/trace/define_trace.h:102,
                    from include/trace/events/rwmmio.h:85,
                    from kernel/trace/trace_readwrite.c:15:
   include/trace/events/rwmmio.h:33:14: note: format string is defined here
      33 |  TP_printk("%pS write addr=%llx of width=%x val=0x%llx\n",
         |             ~^
         |              |
         |              void *
         |             %lld
   In file included from include/trace/define_trace.h:102,
                    from include/trace/events/rwmmio.h:85,
                    from kernel/trace/trace_readwrite.c:15:
   include/trace/events/rwmmio.h: In function 'trace_raw_output_rwmmio_read':
   include/trace/events/rwmmio.h:55:12: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
      55 |  TP_printk("%pS read addr=%llx of width=%x\n",
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:367:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     367 |  trace_seq_printf(s, print);     \
         |                      ^~~~~
   include/trace/trace_events.h:80:9: note: in expansion of macro 'PARAMS'
      80 |         PARAMS(print));         \
         |         ^~~~~~
   include/trace/events/rwmmio.h:37:1: note: in expansion of macro 'TRACE_EVENT'
      37 | TRACE_EVENT(rwmmio_read,
         | ^~~~~~~~~~~
   include/trace/events/rwmmio.h:55:2: note: in expansion of macro 'TP_printk'
      55 |  TP_printk("%pS read addr=%llx of width=%x\n",
         |  ^~~~~~~~~
   In file included from include/trace/trace_events.h:401,
                    from include/trace/define_trace.h:102,
                    from include/trace/events/rwmmio.h:85,
                    from kernel/trace/trace_readwrite.c:15:
   include/trace/events/rwmmio.h:55:14: note: format string is defined here
      55 |  TP_printk("%pS read addr=%llx of width=%x\n",
         |             ~^
         |              |
         |              void *
         |             %lld
   In file included from include/trace/define_trace.h:102,
                    from include/trace/events/rwmmio.h:85,
                    from kernel/trace/trace_readwrite.c:15:
   include/trace/events/rwmmio.h: In function 'trace_raw_output_rwmmio_post_read':
   include/trace/events/rwmmio.h:79:12: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
      79 |  TP_printk("%pS read addr=%llx of width=%x val=0x%llx\n",
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:367:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     367 |  trace_seq_printf(s, print);     \
         |                      ^~~~~
   include/trace/trace_events.h:80:9: note: in expansion of macro 'PARAMS'
      80 |         PARAMS(print));         \
         |         ^~~~~~
   include/trace/events/rwmmio.h:59:1: note: in expansion of macro 'TRACE_EVENT'
      59 | TRACE_EVENT(rwmmio_post_read,
         | ^~~~~~~~~~~
   include/trace/events/rwmmio.h:79:2: note: in expansion of macro 'TP_printk'
      79 |  TP_printk("%pS read addr=%llx of width=%x val=0x%llx\n",
         |  ^~~~~~~~~
   In file included from include/trace/trace_events.h:401,
                    from include/trace/define_trace.h:102,
                    from include/trace/events/rwmmio.h:85,
                    from kernel/trace/trace_readwrite.c:15:
   include/trace/events/rwmmio.h:79:14: note: format string is defined here
      79 |  TP_printk("%pS read addr=%llx of width=%x val=0x%llx\n",
         |             ~^
         |              |
         |              void *
         |             %lld


vim +33 include/trace/events/rwmmio.h

    14	
    15		TP_PROTO(unsigned long fn, u64 val, u8 width, volatile void __iomem *addr),
    16	
    17		TP_ARGS(fn, val, width, addr),
    18	
    19		TP_STRUCT__entry(
    20			__field(u64, fn)
    21			__field(u64, val)
    22			__field(u8, width)
    23			__field(u64, addr)
    24		),
    25	
    26		TP_fast_assign(
    27			__entry->fn = fn;
    28			__entry->val = val;
    29			__entry->width = width;
    30			__entry->addr = (u64)addr;
    31		),
    32	
  > 33		TP_printk("%pS write addr=%llx of width=%x val=0x%llx\n",
    34			__entry->fn, __entry->addr, __entry->width, __entry->val)
    35	);
    36	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 75843 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-11 21:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 21:56 [android-common:android12-5.10 1/2] include/trace/events/rwmmio.h:33:12: warning: format '%p' expects argument of type 'void but argument 3 has type 'u64' {aka 'long long unsigned int'} kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.