tree:
https://github.com/weiny2/linux-kernel.git tip-pks-v4.10-5.12-rc
head: 74e4f6716199c0b1af6e647582a6b83c4a38cd2d
commit: f69383c2f7dba762e982a795c9aeab99bc62ba99 [12/17] memremap: Add zone device access
protection
config: x86_64-randconfig-a004-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
fcc1ce00931751ac02498986feb37744e9ace8de)
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/f69383c2f7dba762e982a795c9a...
git remote add weiny2
https://github.com/weiny2/linux-kernel.git
git fetch --no-tags weiny2 tip-pks-v4.10-5.12-rc
git checkout f69383c2f7dba762e982a795c9aeab99bc62ba99
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
> mm/memremap.c:123: warning: expecting prototype for
dev_access_protection_init(). Prototype was for __dev_access_protection_init() instead
vim +123 mm/memremap.c
111
112 /**
113 * dev_access_protection_init: Configure a PKS key domain for device pages
114 *
115 * The domain defaults to the protected state. Device page mappings should set
116 * the PGMAP_PROT_ENABLED flag when mapping pages.
117 *
118 * Note the pkey is never free'ed. This is run at init time and we either get
119 * the key or we do not. We need to do this to maintian a constant key (or
120 * not) as device memory is added or removed.
121 */
122 static int __init __dev_access_protection_init(void)
123 {
124 int pkey = pks_key_alloc("Device
Memory");
125
126 if (pkey < 0)
127 return 0;
128
129 dev_page_pkey = pkey;
130
131 return 0;
132 }
133 subsys_initcall(__dev_access_protection_init);
134 #else
135 static pgprot_t dev_pgprot_get(struct dev_pagemap *pgmap, pgprot_t prot)
136 {
137 return prot;
138 }
139
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org