All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chao-linux:dax-wip 7/7] include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument
Date: Thu, 01 Apr 2021 09:32:53 +0800	[thread overview]
Message-ID: <202104010944.bAzdHlJc-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dax-wip
head:   030db79112b5bc644a842a966bf839ef71a31245
commit: 030db79112b5bc644a842a966bf839ef71a31245 [7/7] f2fs: dax options
config: mips-allyesconfig (attached as .config)
compiler: mips-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?id=030db79112b5bc644a842a966bf839ef71a31245
        git remote add chao-linux https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
        git fetch --no-tags chao-linux dax-wip
        git checkout 030db79112b5bc644a842a966bf839ef71a31245
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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/linux/printk.h:7,
                    from include/linux/kernel.h:16,
                    from include/linux/list.h:9,
                    from include/linux/module.h:12,
                    from fs/f2fs/super.c:8:
   fs/f2fs/super.c: In function 'parse_options':
>> include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
       5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
         |                  ^~~~~~
   include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
      14 | #define KERN_INFO KERN_SOH "6" /* informational */
         |                   ^~~~~~~~
   fs/f2fs/f2fs.h:2135:19: note: in expansion of macro 'KERN_INFO'
    2135 |  f2fs_printk(sbi, KERN_INFO fmt, ##__VA_ARGS__)
         |                   ^~~~~~~~~
   fs/f2fs/super.c:1119:4: note: in expansion of macro 'f2fs_info'
    1119 |    f2fs_info(sbi, "dax=%s option not supported");
         |    ^~~~~~~~~
   fs/f2fs/super.c:1119:25: note: format string is defined here
    1119 |    f2fs_info(sbi, "dax=%s option not supported");
         |                        ~^
         |                         |
         |                         char *
   fs/f2fs/super.c: In function 'default_options':
   fs/f2fs/super.c:1903:18: error: 'struct f2fs_mount_info' has no member named 'dax_mode'
    1903 |  F2FS_OPTION(sbi).dax_mode = DAX_MODE_NONE;
         |                  ^


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 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: 70209 bytes --]

                 reply	other threads:[~2021-04-01  1:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104010944.bAzdHlJc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.