tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git module-cleanup
head: a1031af5d5028424702be365a903b83554830fb2
commit: b54ea5ff875ffe75b6cebc86f9d8f37c0b89c48a [7/13] module: mark module_mutex static
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
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
#
https://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git/commit/?id...
git remote add jeyu
https://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git
git fetch --no-tags jeyu module-cleanup
git checkout b54ea5ff875ffe75b6cebc86f9d8f37c0b89c48a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/seqlock.h:19,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:6,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from arch/powerpc/platforms/powernv/pci-cxl.c:6:
arch/powerpc/platforms/powernv/pci-cxl.c: In function 'get_cxl_module':
> arch/powerpc/platforms/powernv/pci-cxl.c:159:14: error:
'module_mutex' undeclared (first use in this function); did you mean
'module_put'?
159 | mutex_lock(&module_mutex);
| ^~~~~~~~~~~~
include/linux/mutex.h:167:44: note: in definition of macro 'mutex_lock'
167 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
| ^~~~
arch/powerpc/platforms/powernv/pci-cxl.c:159:14: note: each undeclared identifier is
reported only once for each function it appears in
159 | mutex_lock(&module_mutex);
| ^~~~~~~~~~~~
include/linux/mutex.h:167:44: note: in definition of macro 'mutex_lock'
167 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
| ^~~~
vim +159 arch/powerpc/platforms/powernv/pci-cxl.c
4361b03430d685 Ian Munsie 2016-07-14 153
c2ca9f6b4cc4c4 Ian Munsie 2016-07-19 154 #if IS_MODULE(CONFIG_CXL)
c2ca9f6b4cc4c4 Ian Munsie 2016-07-19 155 static inline int get_cxl_module(void)
c2ca9f6b4cc4c4 Ian Munsie 2016-07-19 156 {
c2ca9f6b4cc4c4 Ian Munsie 2016-07-19 157 struct module *cxl_module;
c2ca9f6b4cc4c4 Ian Munsie 2016-07-19 158
c2ca9f6b4cc4c4 Ian Munsie 2016-07-19 @159 mutex_lock(&module_mutex);
:::::: The code at line 159 was first introduced by commit
:::::: c2ca9f6b4cc4c45eb598b24b8b06beee668052d5 powerpc/powernv: Fix pci-cxl.c build when
CONFIG_MODULES=n
:::::: TO: Ian Munsie <imunsie(a)au1.ibm.com>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org