All of lore.kernel.org
 help / color / mirror / Atom feed
* [jirislaby:devel 57/73] include/linux/consolemap.h:50:16: error: 'c' undeclared; did you mean 'vc'?
@ 2022-05-04 14:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-04 14:51 UTC (permalink / raw)
  To: Jiri Slaby; +Cc: kbuild-all, linux-kernel

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

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

only message in thread, other threads:[~2022-05-04 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 14:51 [jirislaby:devel 57/73] include/linux/consolemap.h:50:16: error: 'c' undeclared; did you mean 'vc'? kernel 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.