All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:5.10/yocto 12185/29177] drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition
@ 2023-02-06 12:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-06 12:06 UTC (permalink / raw)
  Cc: oe-kbuild-all, Junxiao Chang

Hi Guenter,

FYI, the error/warning still remains.

tree:   https://github.com/intel/linux-intel-lts.git 5.10/yocto
head:   a28867696061a1be54960089016434aee399da9d
commit: 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a [12185/29177] fbmem: Mark proc_fb_seq_ops as __maybe_unused
config: i386-randconfig-a004-20230206 (https://download.01.org/0day-ci/archive/20230206/202302062012.Qv2zmLnI-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/intel/linux-intel-lts/commit/3aeb5198342e78c3f2ed6bc9431e492a4550cd2a
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-lts 5.10/yocto
        git checkout 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/video/fbdev/core/

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

All warnings (new ones prefixed by >>):

>> drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition [-Wignored-attributes]
   static const struct __maybe_unused seq_operations proc_fb_seq_ops = {
                       ^
   include/linux/compiler_attributes.h:267:56: note: expanded from macro '__maybe_unused'
   #define __maybe_unused                  __attribute__((__unused__))
                                                          ^
   include/linux/seq_file.h:31:8: note: previous definition is here
   struct seq_operations {
          ^
   1 warning generated.


vim +736 drivers/video/fbdev/core/fbmem.c

   735	
 > 736	static const struct __maybe_unused seq_operations proc_fb_seq_ops = {
   737		.start	= fb_seq_start,
   738		.next	= fb_seq_next,
   739		.stop	= fb_seq_stop,
   740		.show	= fb_seq_show,
   741	};
   742	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-02-06 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-06 12:06 [intel-lts:5.10/yocto 12185/29177] drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition 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.