[mcgrof-next:20211116-sysctl-cleanups-v3 19/20] fs/binfmt_misc.c:826:17: error: too few arguments to function 'panic'

From: kernel test robot
Date: Thu Nov 25 2021 - 05:06:40 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: arm-randconfig-c002-20211116 (https://download.01.org/0day-ci/archive/20211125/202111251738.XZmLQiGG-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/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 config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash

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: In function 'init_misc_binfmt':
>> fs/binfmt_misc.c:826:17: error: too few arguments to function 'panic'
826 | panic();
| ^~~~~
In file included from include/linux/kernel.h:19,
from fs/binfmt_misc.c:13:
include/linux/panic.h:12:6: note: declared here
12 | void panic(const char *fmt, ...) __noreturn __cold;
| ^~~~~
fs/binfmt_misc.c:827:1: error: control reaches end of non-void function [-Werror=return-type]
827 | }
| ^
cc1: some warnings being treated as errors


vim +/panic +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