tree:
https://github.com/intel/linux-intel-lts.git 5.10/preempt-rt
head: 92cafac7cc9c1af94b9b5b61e35fbbd39d4f5854
commit: 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a [12539/17820] fbmem: Mark proc_fb_seq_ops
as __maybe_unused
config: riscv-randconfig-r042-20211018 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
d245f2e8597bfb52c34810a328d42b990e4af1a4)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
#
https://github.com/intel/linux-intel-lts/commit/3aeb5198342e78c3f2ed6bc94...
git remote add intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/preempt-rt
git checkout 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 {
^
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER ||
MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
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