lkml.org 
[lkml]   [2021]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mcgrof-next:20211116-sysctl-cleanups-v3 11/20] drivers/macintosh/mac_hid.c:246:31: warning: assignment to 'struct ctl_table_header *' from 'int' makes pointer from integer without a cast
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v3
head: 06113f1d9a2d0669964adfa2e0128bd50e56b621
commit: 72daf12fc8290df22f4479f912a74c73a6a2fe38 [11/20] macintosh/mac_hid.c: use new sysctl subdir helper register_sysctl_subdir()
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20211125/202111251523.kkvJodHq-lkp@intel.com/config)
compiler: m68k-linux-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=72daf12fc8290df22f4479f912a74c73a6a2fe38
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 72daf12fc8290df22f4479f912a74c73a6a2fe38
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k

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

All warnings (new ones prefixed by >>):

drivers/macintosh/mac_hid.c: In function 'mac_hid_init':
drivers/macintosh/mac_hid.c:246:33: error: implicit declaration of function 'register_sysctl_subdir'; did you mean 'register_sysctl_init'? [-Werror=implicit-function-declaration]
246 | mac_hid_sysctl_header = register_sysctl_subdir("dev", "mac_hid",
| ^~~~~~~~~~~~~~~~~~~~~~
| register_sysctl_init
>> drivers/macintosh/mac_hid.c:246:31: warning: assignment to 'struct ctl_table_header *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
246 | mac_hid_sysctl_header = register_sysctl_subdir("dev", "mac_hid",
| ^
cc1: some warnings being treated as errors


vim +246 drivers/macintosh/mac_hid.c

243
244 static int __init mac_hid_init(void)
245 {
> 246 mac_hid_sysctl_header = register_sysctl_subdir("dev", "mac_hid",
247 mac_hid_files);
248 if (!mac_hid_sysctl_header)
249 return -ENOMEM;
250
251 return 0;
252 }
253 module_init(mac_hid_init);
254

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

\
 
 \ /
  Last update: 2021-11-25 09:01    [W:0.036 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site