linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2021-11-25  7:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-25  7:57 UTC (permalink / raw)
  To: Luis Chamberlain; +Cc: kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-25  8:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25  7:57 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).