tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/pstore
head: dcaa1e76b774398d32576838c1352ed57a6d6674
commit: 6bcaa233a90ba3be98a6093cf346ac51eb05258f [8/35] pstore: Add locking around
superblock changes
config: alpha-randconfig-r024-20200519 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6bcaa233a90ba3be98a6093cf346ac51eb05258f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> fs//pstore/inode.c:288:16: warning: no previous prototype for
'psinfo_lock_root' [-Wmissing-prototypes]
288 | struct dentry
*psinfo_lock_root(void)
| ^~~~~~~~~~~~~~~~
vim +/psinfo_lock_root +288 fs//pstore/inode.c
287
288 struct dentry *psinfo_lock_root(void)
289 {
290 struct dentry *root;
291
292 mutex_lock(&pstore_sb_lock);
293 /*
294 * Having no backend is fine -- no records appear.
295 * Not being mounted is fine -- nothing to do.
296 */
297 if (!psinfo || !pstore_sb) {
298 mutex_unlock(&pstore_sb_lock);
299 return NULL;
300 }
301
302 root = pstore_sb->s_root;
303 inode_lock(d_inode(root));
304 mutex_unlock(&pstore_sb_lock);
305
306 return root;
307 }
308
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org