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

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

Hi Guenter,

FYI, the error/warning still remains.

tree:   https://github.com/intel/linux-intel-lts.git 5.10/yocto
head:   2dafc777a64181d42982628c7f5907a03da5f070
commit: 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a [12185/20393] fbmem: Mark proc_fb_seq_ops as __maybe_unused
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220210/202202102235.1jMCsDQH-lkp(a)intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project aa845d7a245d85c441d0bd44fc7b6c3be8f3de8d)
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 to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/crypto/ drivers/video/fbdev/core/

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 >>):

>> 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, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

only message in thread, other threads:[~2022-02-10 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 14:07 [intel-lts:5.10/yocto 12185/20393] 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.