All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [weiny2:tip-pks-v4-2020-12-17 17/18] include/linux/mm.h:1196:58: error: variable has incomplete type 'enum dev_access_mod'
Date: Mon, 28 Dec 2020 00:04:12 +0800	[thread overview]
Message-ID: <202012280006.R9Bi4xU6-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-12-27 16:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202012280006.R9Bi4xU6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.