Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [chao:bugfix/common 6/12] include/trace/events/f2fs.h:2669:3: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long'
@ 2026-05-11 20:53 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-11 20:53 UTC (permalink / raw)
  To: Chao Yu; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/common
head:   3fc276f79bae89d43863f797bc4ca48965917be8
commit: ca5a91e342cd920d4857741392251ebfb4f235b6 [6/12] f2fs: introduce trace_f2fs_map_lock()
config: i386-buildonly-randconfig-004-20260511 (https://download.01.org/0day-ci/archive/20260512/202605120431.QFUGn9jp-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260512/202605120431.QFUGn9jp-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/202605120431.QFUGn9jp-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from fs/f2fs/super.c:42:
   In file included from include/trace/events/f2fs.h:2678:
   In file included from include/trace/define_trace.h:132:
   In file included from include/trace/trace_events.h:256:
>> include/trace/events/f2fs.h:2669:3: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
    2646 |         ),
         |         ~~
    2647 | 
    2648 |         TP_fast_assign(
         |         ~~~~~~~~~~~~~~~
    2649 |                 __entry->dev            = inode->i_sb->s_dev;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2650 |                 __entry->ino            = inode->i_ino;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2651 |                 __entry->index          = index;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2652 |                 __entry->flag           = flag;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2653 |                 __entry->string         = string;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2654 |         ),
         |         ~~
    2655 | 
    2656 |         TP_printk("dev = (%d,%d), ino = %lu, index = %ld, flag = %d, %s",
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                         %llu
    2657 |                 show_dev_ino(__entry),
         |                 ^~~~~~~~~~~~~~~~~~~~~~
    2658 |                 __entry->index,
         |                 ~~~~~~~~~~~~~~~
    2659 |                 __entry->flag,
         |                 ~~~~~~~~~~~~~~
    2660 |                 __entry->string)
         |                 ~~~~~~~~~~~~~~~~
    2661 | );
         | ~
   include/trace/events/f2fs.h:12:51: note: expanded from macro 'show_dev_ino'
      12 | #define show_dev_ino(entry)     show_dev(entry->dev), (unsigned long long)entry->ino
         |                                                       ^
   include/trace/stages/stage3_trace_output.h:9:43: note: expanded from macro 'TP_printk'
       9 | #define TP_printk(fmt, args...) fmt "\n", args
         |                                 ~~~       ^
   include/trace/trace_events.h:45:16: note: expanded from macro 'TRACE_EVENT'
      40 |         DECLARE_EVENT_CLASS(name,                              \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      41 |                              PARAMS(proto),                    \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      42 |                              PARAMS(args),                     \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      43 |                              PARAMS(tstruct),                  \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      44 |                              PARAMS(assign),                   \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      45 |                              PARAMS(print));                   \
         |                              ~~~~~~~^~~~~~~
   include/linux/tracepoint.h:160:25: note: expanded from macro 'PARAMS'
     160 | #define PARAMS(args...) args
         |                         ^~~~
   include/trace/trace_events.h:219:27: note: expanded from macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   1 warning generated.


vim +2669 include/trace/events/f2fs.h

  2647	
  2648		TP_PROTO(struct inode *inode, pgoff_t index, int flag, char *string),
  2649	
  2650		TP_ARGS(inode, index, flag, string),
  2651	
  2652		TP_STRUCT__entry(
  2653			__field(dev_t, dev)
  2654			__field(ino_t, ino)
  2655			__field(pgoff_t, index)
  2656			__field(int, flag)
  2657			__field(char *, string)
  2658		),
  2659	
  2660		TP_fast_assign(
  2661			__entry->dev		= inode->i_sb->s_dev;
  2662			__entry->ino		= inode->i_ino;
  2663			__entry->index		= index;
  2664			__entry->flag		= flag;
  2665			__entry->string		= string;
  2666		),
  2667	
  2668		TP_printk("dev = (%d,%d), ino = %lu, index = %ld, flag = %d, %s",
> 2669			show_dev_ino(__entry),
  2670			__entry->index,
  2671			__entry->flag,
  2672			__entry->string)
  2673	);
  2674	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [chao:bugfix/common 6/12] include/trace/events/f2fs.h:2669:3: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long'
@ 2026-05-11 21:19 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-11 21:19 UTC (permalink / raw)
  To: Chao Yu; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/common
head:   3fc276f79bae89d43863f797bc4ca48965917be8
commit: ca5a91e342cd920d4857741392251ebfb4f235b6 [6/12] f2fs: introduce trace_f2fs_map_lock()
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260511/202605112338.ugeto5En-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260511/202605112338.ugeto5En-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/202605112338.ugeto5En-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from fs/f2fs/super.c:42:
   In file included from include/trace/events/f2fs.h:2678:
   In file included from include/trace/define_trace.h:132:
   In file included from include/trace/trace_events.h:256:
>> include/trace/events/f2fs.h:2669:3: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
    2646 |         ),
         |         ~~
    2647 | 
    2648 |         TP_fast_assign(
         |         ~~~~~~~~~~~~~~~
    2649 |                 __entry->dev            = inode->i_sb->s_dev;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2650 |                 __entry->ino            = inode->i_ino;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2651 |                 __entry->index          = index;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2652 |                 __entry->flag           = flag;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2653 |                 __entry->string         = string;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2654 |         ),
         |         ~~
    2655 | 
    2656 |         TP_printk("dev = (%d,%d), ino = %lu, index = %ld, flag = %d, %s",
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                         %llu
    2657 |                 show_dev_ino(__entry),
         |                 ^~~~~~~~~~~~~~~~~~~~~~
    2658 |                 __entry->index,
         |                 ~~~~~~~~~~~~~~~
    2659 |                 __entry->flag,
         |                 ~~~~~~~~~~~~~~
    2660 |                 __entry->string)
         |                 ~~~~~~~~~~~~~~~~
    2661 | );
         | ~
   include/trace/events/f2fs.h:12:51: note: expanded from macro 'show_dev_ino'
      12 | #define show_dev_ino(entry)     show_dev(entry->dev), (unsigned long long)entry->ino
         |                                                       ^
   include/trace/stages/stage3_trace_output.h:9:43: note: expanded from macro 'TP_printk'
       9 | #define TP_printk(fmt, args...) fmt "\n", args
         |                                 ~~~       ^
   include/trace/trace_events.h:45:16: note: expanded from macro 'TRACE_EVENT'
      40 |         DECLARE_EVENT_CLASS(name,                              \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      41 |                              PARAMS(proto),                    \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      42 |                              PARAMS(args),                     \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      43 |                              PARAMS(tstruct),                  \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      44 |                              PARAMS(assign),                   \
         |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      45 |                              PARAMS(print));                   \
         |                              ~~~~~~~^~~~~~~
   include/linux/tracepoint.h:160:25: note: expanded from macro 'PARAMS'
     160 | #define PARAMS(args...) args
         |                         ^~~~
   include/trace/trace_events.h:219:27: note: expanded from macro 'DECLARE_EVENT_CLASS'
     219 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   1 warning generated.


vim +2669 include/trace/events/f2fs.h

  2647	
  2648		TP_PROTO(struct inode *inode, pgoff_t index, int flag, char *string),
  2649	
  2650		TP_ARGS(inode, index, flag, string),
  2651	
  2652		TP_STRUCT__entry(
  2653			__field(dev_t, dev)
  2654			__field(ino_t, ino)
  2655			__field(pgoff_t, index)
  2656			__field(int, flag)
  2657			__field(char *, string)
  2658		),
  2659	
  2660		TP_fast_assign(
  2661			__entry->dev		= inode->i_sb->s_dev;
  2662			__entry->ino		= inode->i_ino;
  2663			__entry->index		= index;
  2664			__entry->flag		= flag;
  2665			__entry->string		= string;
  2666		),
  2667	
  2668		TP_printk("dev = (%d,%d), ino = %lu, index = %ld, flag = %d, %s",
> 2669			show_dev_ino(__entry),
  2670			__entry->index,
  2671			__entry->flag,
  2672			__entry->string)
  2673	);
  2674	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-11 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11 21:19 [chao:bugfix/common 6/12] include/trace/events/f2fs.h:2669:3: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-05-11 20:53 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox