* [weiny2:tip-pks-v4-2020-12-17 17/18] include/linux/mm.h:1196:58: error: variable has incomplete type 'enum dev_access_mod'
@ 2020-12-27 16:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-27 16:04 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 8787 bytes --]
tree: https://github.com/weiny2/linux-kernel.git tip-pks-v4-2020-12-17
head: c4c3d898d21401b51941cd75b3e59c2baec59505
commit: 1bf1a3d00ba3e2afcbc4dcbf4e8bf870984a6393 [17/18] memremap: Add zone device access protection
config: x86_64-randconfig-a016-20201217 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/weiny2/linux-kernel/commit/1bf1a3d00ba3e2afcbc4dcbf4e8bf870984a6393
git remote add weiny2 https://github.com/weiny2/linux-kernel.git
git fetch --no-tags weiny2 tip-pks-v4-2020-12-17
git checkout 1bf1a3d00ba3e2afcbc4dcbf4e8bf870984a6393
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:28:
In file included from include/linux/cgroup-defs.h:22:
In file included from include/linux/bpf-cgroup.h:5:
In file included from include/linux/bpf.h:21:
In file included from include/linux/kallsyms.h:12:
>> include/linux/mm.h:1196:43: warning: declaration of 'enum dev_access_mod' will not be visible outside of this function [-Wvisibility]
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
>> include/linux/mm.h:1196:58: error: variable has incomplete type 'enum dev_access_mod'
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1196:43: note: forward declaration of 'enum dev_access_mod'
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:44: warning: declaration of 'enum dev_access_mod' will not be visible outside of this function [-Wvisibility]
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:59: error: variable has incomplete type 'enum dev_access_mod'
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:44: note: forward declaration of 'enum dev_access_mod'
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
2 warnings and 2 errors generated.
--
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:28:
In file included from include/linux/cgroup-defs.h:22:
In file included from include/linux/bpf-cgroup.h:5:
In file included from include/linux/bpf.h:21:
In file included from include/linux/kallsyms.h:12:
>> include/linux/mm.h:1196:43: warning: declaration of 'enum dev_access_mod' will not be visible outside of this function [-Wvisibility]
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
>> include/linux/mm.h:1196:58: error: variable has incomplete type 'enum dev_access_mod'
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1196:43: note: forward declaration of 'enum dev_access_mod'
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:44: warning: declaration of 'enum dev_access_mod' will not be visible outside of this function [-Wvisibility]
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:59: error: variable has incomplete type 'enum dev_access_mod'
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:44: note: forward declaration of 'enum dev_access_mod'
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
2 warnings and 2 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1200: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:28:
In file included from include/linux/cgroup-defs.h:22:
In file included from include/linux/bpf-cgroup.h:5:
In file included from include/linux/bpf.h:21:
In file included from include/linux/kallsyms.h:12:
>> include/linux/mm.h:1196:43: warning: declaration of 'enum dev_access_mod' will not be visible outside of this function [-Wvisibility]
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
>> include/linux/mm.h:1196:58: error: variable has incomplete type 'enum dev_access_mod'
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1196:43: note: forward declaration of 'enum dev_access_mod'
static inline void dev_access_enable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:44: warning: declaration of 'enum dev_access_mod' will not be visible outside of this function [-Wvisibility]
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:59: error: variable has incomplete type 'enum dev_access_mod'
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
include/linux/mm.h:1197:44: note: forward declaration of 'enum dev_access_mod'
static inline void dev_access_disable(enum dev_access_mod mode) { }
^
2 warnings and 2 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1200: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +1196 include/linux/mm.h
1178
1179 void __dev_access_enable(enum dev_access_mode mode);
1180 void __dev_access_disable(enum dev_access_mode mode);
1181 static __always_inline void dev_access_enable(enum dev_access_mode mode)
1182 {
1183 if (static_branch_unlikely(&dev_protection_static_key))
1184 __dev_access_enable(mode);
1185 }
1186 static __always_inline void dev_access_disable(enum dev_access_mode mode)
1187 {
1188 if (static_branch_unlikely(&dev_protection_static_key))
1189 __dev_access_disable(mode);
1190 }
1191 #else
1192 static inline bool page_is_access_protected(struct page *page)
1193 {
1194 return false;
1195 }
> 1196 static inline void dev_access_enable(enum dev_access_mod mode) { }
1197 static inline void dev_access_disable(enum dev_access_mod mode) { }
1198 #endif /* CONFIG_ZONE_DEVICE_ACCESS_PROTECTION */
1199
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37152 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-27 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-27 16:04 [weiny2:tip-pks-v4-2020-12-17 17/18] include/linux/mm.h:1196:58: error: variable has incomplete type 'enum dev_access_mod' 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.