linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-unstable 106/111] include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format
@ 2025-01-31  9:43 kernel test robot
  2025-01-31 10:07 ` Lorenzo Stoakes
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-01-31  9:43 UTC (permalink / raw)
  To: Lorenzo Stoakes
  Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Vlastimil Babka

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head:   f5604ad70091eabe663ea7106ced99449d653320
commit: 951452b2ec82d352a69f14cfffdeb7c08461eefb [106/111] mm: further refactor commit_merge()
config: x86_64-buildonly-randconfig-001-20250131 (https://download.01.org/0day-ci/archive/20250131/202501311708.dRI35epU-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250131/202501311708.dRI35epU-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/202501311708.dRI35epU-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:31,
                    from mm/debug.c:9:
   mm/debug.c: In function 'dump_vmg':
>> include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
     473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:554:9: note: in expansion of macro 'printk'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
      12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
         |                         ^~~~~~~~
   include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~~~
   mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
     262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
         |         ^~~~~~~
>> include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
     473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:554:9: note: in expansion of macro 'printk'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
      12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
         |                         ^~~~~~~~
   include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~~~
   mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
     262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
         |         ^~~~~~~
>> include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
     473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:554:9: note: in expansion of macro 'printk'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
      12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
         |                         ^~~~~~~~
   include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~~~
   mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
     262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
         |         ^~~~~~~
>> include/linux/kern_levels.h:5:25: warning: too many arguments for format [-Wformat-extra-args]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
     473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:554:9: note: in expansion of macro 'printk'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
      12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
         |                         ^~~~~~~~
   include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
     554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~~~
   mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
     262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
         |         ^~~~~~~


vim +/b +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 CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


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

* Re: [akpm-mm:mm-unstable 106/111] include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format
  2025-01-31  9:43 [akpm-mm:mm-unstable 106/111] include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format kernel test robot
@ 2025-01-31 10:07 ` Lorenzo Stoakes
  2025-01-31 12:27   ` Lorenzo Stoakes
  0 siblings, 1 reply; 3+ messages in thread
From: Lorenzo Stoakes @ 2025-01-31 10:07 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Vlastimil Babka

On Fri, Jan 31, 2025 at 05:43:28PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> head:   f5604ad70091eabe663ea7106ced99449d653320
> commit: 951452b2ec82d352a69f14cfffdeb7c08461eefb [106/111] mm: further refactor commit_merge()
> config: x86_64-buildonly-randconfig-001-20250131 (https://download.01.org/0day-ci/archive/20250131/202501311708.dRI35epU-lkp@intel.com/config)
> compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250131/202501311708.dRI35epU-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/202501311708.dRI35epU-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
>    In file included from include/linux/kernel.h:31,
>                     from mm/debug.c:9:
>    mm/debug.c: In function 'dump_vmg':
> >> include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format [-Wformat=]
>        5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */

Well that'll teach me for assuming a compiler with CONFIG_WERROR on will
actually... report warnings as errors. Apparently not.

Will send a follow up fix-patch...

>          |                         ^~~~~~
>    include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
>      473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
>          |                         ^~~~
>    include/linux/printk.h:554:9: note: in expansion of macro 'printk'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |         ^~~~~~
>    include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
>       12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
>          |                         ^~~~~~~~
>    include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |                ^~~~~~~~~~~~
>    mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
>      262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
>          |         ^~~~~~~
> >> include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format [-Wformat=]
>        5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
>          |                         ^~~~~~
>    include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
>      473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
>          |                         ^~~~
>    include/linux/printk.h:554:9: note: in expansion of macro 'printk'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |         ^~~~~~
>    include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
>       12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
>          |                         ^~~~~~~~
>    include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |                ^~~~~~~~~~~~
>    mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
>      262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
>          |         ^~~~~~~
> >> include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format [-Wformat=]
>        5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
>          |                         ^~~~~~
>    include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
>      473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
>          |                         ^~~~
>    include/linux/printk.h:554:9: note: in expansion of macro 'printk'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |         ^~~~~~
>    include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
>       12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
>          |                         ^~~~~~~~
>    include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |                ^~~~~~~~~~~~
>    mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
>      262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
>          |         ^~~~~~~
> >> include/linux/kern_levels.h:5:25: warning: too many arguments for format [-Wformat-extra-args]
>        5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
>          |                         ^~~~~~
>    include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
>      473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
>          |                         ^~~~
>    include/linux/printk.h:554:9: note: in expansion of macro 'printk'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |         ^~~~~~
>    include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
>       12 | #define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
>          |                         ^~~~~~~~
>    include/linux/printk.h:554:16: note: in expansion of macro 'KERN_WARNING'
>      554 |         printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
>          |                ^~~~~~~~~~~~
>    mm/debug.c:262:9: note: in expansion of macro 'pr_warn'
>      262 |         pr_warn("vmg %px state: mm %px pgoff %lx\n"
>          |         ^~~~~~~
>
>
> vim +/b +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 CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki


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

* Re: [akpm-mm:mm-unstable 106/111] include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format
  2025-01-31 10:07 ` Lorenzo Stoakes
@ 2025-01-31 12:27   ` Lorenzo Stoakes
  0 siblings, 0 replies; 3+ messages in thread
From: Lorenzo Stoakes @ 2025-01-31 12:27 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Vlastimil Babka

On Fri, Jan 31, 2025 at 10:07:59AM +0000, Lorenzo Stoakes wrote:
> On Fri, Jan 31, 2025 at 05:43:28PM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> > head:   f5604ad70091eabe663ea7106ced99449d653320
> > commit: 951452b2ec82d352a69f14cfffdeb7c08461eefb [106/111] mm: further refactor commit_merge()
> > config: x86_64-buildonly-randconfig-001-20250131 (https://download.01.org/0day-ci/archive/20250131/202501311708.dRI35epU-lkp@intel.com/config)
> > compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250131/202501311708.dRI35epU-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/202501311708.dRI35epU-lkp@intel.com/
> >
> > All warnings (new ones prefixed by >>):
> >
> >    In file included from include/linux/kernel.h:31,
> >                     from mm/debug.c:9:
> >    mm/debug.c: In function 'dump_vmg':
> > >> include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format [-Wformat=]
> >        5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
>
> Well that'll teach me for assuming a compiler with CONFIG_WERROR on will
> actually... report warnings as errors. Apparently not.
>
> Will send a follow up fix-patch...
>

Even a W=1 build doesn't pick this up, so I'm thinking this might be a
compiler version thing.

Am doing a respin as that'll be easier.


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

end of thread, other threads:[~2025-01-31 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-31  9:43 [akpm-mm:mm-unstable 106/111] include/linux/kern_levels.h:5:25: warning: unknown conversion type character 'b' in format kernel test robot
2025-01-31 10:07 ` Lorenzo Stoakes
2025-01-31 12:27   ` Lorenzo Stoakes

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