[mcgrof-next:20211116-sysctl-cleanups-v3 19/20] fs/binfmt_misc.c:826:9: error: too few arguments to function call, at least argument 'fmt' must be specified

From: kernel test robot
Date: Wed Nov 17 2021 - 01:22:49 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v3
head: 06113f1d9a2d0669964adfa2e0128bd50e56b621
commit: ef6d1ebb37a8b418ca2a35f5d94d3eb4c93febe5 [19/20] fs: move binfmt_misc sysctl to its own file
config: i386-randconfig-a001-20211116 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4c2cf3a314d9131b1b288e7c8ab0c75ac1b2be1d)
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/mcgrof/linux-next.git/commit/?id=ef6d1ebb37a8b418ca2a35f5d94d3eb4c93febe5
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v3
git checkout ef6d1ebb37a8b418ca2a35f5d94d3eb4c93febe5
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> fs/binfmt_misc.c:826:9: error: too few arguments to function call, at least argument 'fmt' must be specified
panic();
~~~~~ ^
include/linux/panic.h:12:6: note: 'panic' declared here
void panic(const char *fmt, ...) __noreturn __cold;
^
1 error generated.


vim +/fmt +826 fs/binfmt_misc.c

819
820 static int __init init_misc_binfmt(void)
821 {
822 int err = register_filesystem(&bm_fs_type);
823 if (!err)
824 insert_binfmt(&misc_format);
825 if (!register_sysctl_mount_point("fs/binfmt_misc"))
> 826 panic();
827 }
828

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip