All of lore.kernel.org
 help / color / mirror / Atom feed
* [arnd-playground:y2038-endgame 73/88] include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int'
@ 2019-11-07 21:10 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-07 21:10 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git y2038-endgame
head:   6f76dcc2f041801fc5ce6e418ef8912a24244436
commit: 7d20fe101e550718e392d9ce919f05b9efcde923 [73/88] media: v4l2-core: fix v4l2_buffer handling for time64 ABI
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        git checkout 7d20fe101e550718e392d9ce919f05b9efcde923
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:15,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:9,
                    from drivers/media//v4l2-core/v4l2-ioctl.c:11:
   drivers/media//v4l2-core/v4l2-ioctl.c: In function 'v4l_print_buffer':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:24:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_CONT KERN_SOH "c"
                      ^~~~~~~~
   include/linux/printk.h:318:9: note: in expansion of macro 'KERN_CONT'
     printk(KERN_CONT fmt, ##__VA_ARGS__)
            ^~~~~~~~~
   drivers/media//v4l2-core/v4l2-ioctl.c:477:2: note: in expansion of macro 'pr_cont'
     pr_cont("%02ld:%02d:%02d.%09ld index=%d, type=%s, request_fd=%d, flags=0x%08x, field=%s, sequence=%d, memory=%s",
     ^~~~~~~
   drivers/media//v4l2-core/v4l2-ioctl.c:477:15: note: format string is defined here
     pr_cont("%02ld:%02d:%02d.%09ld index=%d, type=%s, request_fd=%d, flags=0x%08x, field=%s, sequence=%d, memory=%s",
              ~~~~^
              %02d
   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:15,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:9,
                    from drivers/media//v4l2-core/v4l2-ioctl.c:11:
   drivers/media//v4l2-core/v4l2-ioctl.c: In function 'v4l_print_event':
   include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type '__kernel_time64_t {aka const long long int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:24:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_CONT KERN_SOH "c"
                      ^~~~~~~~
   include/linux/printk.h:318:9: note: in expansion of macro 'KERN_CONT'
     printk(KERN_CONT fmt, ##__VA_ARGS__)
            ^~~~~~~~~
   drivers/media//v4l2-core/v4l2-ioctl.c:824:2: note: in expansion of macro 'pr_cont'
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
     ^~~~~~~
   drivers/media//v4l2-core/v4l2-ioctl.c:824:66: note: format string is defined here
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
                                                                   ~~^
                                                                   %llu
   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:15,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:9,
                    from drivers/media//v4l2-core/v4l2-ioctl.c:11:
   include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'long long int' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:24:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_CONT KERN_SOH "c"
                      ^~~~~~~~
   include/linux/printk.h:318:9: note: in expansion of macro 'KERN_CONT'
     printk(KERN_CONT fmt, ##__VA_ARGS__)
            ^~~~~~~~~
   drivers/media//v4l2-core/v4l2-ioctl.c:824:2: note: in expansion of macro 'pr_cont'
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
     ^~~~~~~
   drivers/media//v4l2-core/v4l2-ioctl.c:824:73: note: format string is defined here
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
                                                                       ~~~~~^
                                                                       %9.9llu
--
   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:15,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:9,
                    from drivers/media/v4l2-core/v4l2-ioctl.c:11:
   drivers/media/v4l2-core/v4l2-ioctl.c: In function 'v4l_print_buffer':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:24:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_CONT KERN_SOH "c"
                      ^~~~~~~~
   include/linux/printk.h:318:9: note: in expansion of macro 'KERN_CONT'
     printk(KERN_CONT fmt, ##__VA_ARGS__)
            ^~~~~~~~~
   drivers/media/v4l2-core/v4l2-ioctl.c:477:2: note: in expansion of macro 'pr_cont'
     pr_cont("%02ld:%02d:%02d.%09ld index=%d, type=%s, request_fd=%d, flags=0x%08x, field=%s, sequence=%d, memory=%s",
     ^~~~~~~
   drivers/media/v4l2-core/v4l2-ioctl.c:477:15: note: format string is defined here
     pr_cont("%02ld:%02d:%02d.%09ld index=%d, type=%s, request_fd=%d, flags=0x%08x, field=%s, sequence=%d, memory=%s",
              ~~~~^
              %02d
   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:15,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:9,
                    from drivers/media/v4l2-core/v4l2-ioctl.c:11:
   drivers/media/v4l2-core/v4l2-ioctl.c: In function 'v4l_print_event':
   include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type '__kernel_time64_t {aka const long long int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:24:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_CONT KERN_SOH "c"
                      ^~~~~~~~
   include/linux/printk.h:318:9: note: in expansion of macro 'KERN_CONT'
     printk(KERN_CONT fmt, ##__VA_ARGS__)
            ^~~~~~~~~
   drivers/media/v4l2-core/v4l2-ioctl.c:824:2: note: in expansion of macro 'pr_cont'
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
     ^~~~~~~
   drivers/media/v4l2-core/v4l2-ioctl.c:824:66: note: format string is defined here
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
                                                                   ~~^
                                                                   %llu
   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:15,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:9,
                    from drivers/media/v4l2-core/v4l2-ioctl.c:11:
   include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'long long int' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:24:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_CONT KERN_SOH "c"
                      ^~~~~~~~
   include/linux/printk.h:318:9: note: in expansion of macro 'KERN_CONT'
     printk(KERN_CONT fmt, ##__VA_ARGS__)
            ^~~~~~~~~
   drivers/media/v4l2-core/v4l2-ioctl.c:824:2: note: in expansion of macro 'pr_cont'
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
     ^~~~~~~
   drivers/media/v4l2-core/v4l2-ioctl.c:824:73: note: format string is defined here
     pr_cont("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n",
                                                                       ~~~~~^
                                                                       %9.9llu

vim +5 include/linux/kern_levels.h

314ba3520e513a Joe Perches 2012-07-30  4  
04d2c8c83d0e3a Joe Perches 2012-07-30 @5  #define KERN_SOH	"\001"		/* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30  6  #define KERN_SOH_ASCII	'\001'
04d2c8c83d0e3a Joe Perches 2012-07-30  7  

:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern

:::::: TO: Joe Perches <joe@perches.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

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

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

only message in thread, other threads:[~2019-11-07 21:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07 21:10 [arnd-playground:y2038-endgame 73/88] include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' kbuild 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.