mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Slaby <jslaby@suse.cz>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [jirislaby:devel 57/73] include/linux/consolemap.h:50:16: error: 'c' undeclared; did you mean 'vc'?
Date: Wed, 4 May 2022 22:51:00 +0800	[thread overview]
Message-ID: <202205042242.hQmWKqlu-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head:   fab642eca5e0ca41e656c8a0685cadf975b7ff88
commit: b2c621c008e401176daf2b3a1ca78fa8d6ff01af [57/73] consolemap.h: convert macros to static inlines
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20220504/202205042242.hQmWKqlu-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commit/?id=b2c621c008e401176daf2b3a1ca78fa8d6ff01af
        git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
        git fetch --no-tags jirislaby devel
        git checkout b2c621c008e401176daf2b3a1ca78fa8d6ff01af
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   In file included from include/linux/vt_kern.h:16,
                    from kernel/panic.c:19:
   include/linux/consolemap.h: In function 'conv_uni_to_8bit':
>> include/linux/consolemap.h:50:16: error: 'c' undeclared (first use in this function); did you mean 'vc'?
      50 |         return c & 0xff;
         |                ^
         |                vc
   include/linux/consolemap.h:50:16: note: each undeclared identifier is reported only once for each function it appears in
   kernel/panic.c: In function '__warn':
   kernel/panic.c:617:17: warning: function '__warn' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     617 |                 vprintk(args->fmt, args->args);
         |                 ^~~~~~~
   kernel/panic.c: At top level:
   kernel/panic.c:662:6: warning: no previous prototype for '__warn_printk' [-Wmissing-prototypes]
     662 | void __warn_printk(const char *fmt, ...)
         |      ^~~~~~~~~~~~~
   kernel/panic.c: In function '__warn_printk':
   kernel/panic.c:669:9: warning: function '__warn_printk' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     669 |         vprintk(fmt, args);
         |         ^~~~~~~
--
   In file included from include/linux/vt_kern.h:16,
                    from lib/bust_spinlocks.c:17:
   include/linux/consolemap.h: In function 'conv_uni_to_8bit':
>> include/linux/consolemap.h:50:16: error: 'c' undeclared (first use in this function); did you mean 'vc'?
      50 |         return c & 0xff;
         |                ^
         |                vc
   include/linux/consolemap.h:50:16: note: each undeclared identifier is reported only once for each function it appears in


vim +50 include/linux/consolemap.h

    47	
    48	static inline int conv_uni_to_8bit(u32 uni)
    49	{
  > 50		return c & 0xff;
    51	}
    52	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-05-04 14:51 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=202205042242.hQmWKqlu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jslaby@suse.cz \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®