tree:
https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: d75bc4fd519e80cd379997651b77218cb949ecf7
commit: 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a [1433/2740] fbmem: Mark proc_fb_seq_ops
as __maybe_unused
config: arm-randconfig-r033-20210720 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
87039c048c0cbc3d8cbba86187269b006bf2f373)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://github.com/intel/linux-intel-lts/commit/3aeb5198342e78c3f2ed6bc94...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/yocto
git checkout 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)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 {
^
drivers/video/fbdev/core/fbmem.c:736:51: warning: unused variable
'proc_fb_seq_ops' [-Wunused-const-variable]
static const struct __maybe_unused seq_operations proc_fb_seq_ops = {
^
2 warnings 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@lists.01.org