From: kernel test robot <lkp@intel.com>
To: Luis Chamberlain <mcgrof@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mcgrof-next:20211116-sysctl-cleanups-v3 9/20] drivers/char/hpet.c:1044:23: warning: assignment to 'struct ctl_table_header *' from 'int' makes pointer from integer without a cast
Date: Thu, 25 Nov 2021 14:44:04 +0800 [thread overview]
Message-ID: <202111251417.kSQaTZ8j-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v3
head: 06113f1d9a2d0669964adfa2e0128bd50e56b621
commit: 766042fb8971eaa61f89cdf9b340e602ad6bc7ef [9/20] hpet: use new sysctl subdir helper register_sysctl_subdir()
config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20211125/202111251417.kSQaTZ8j-lkp@intel.com/config)
compiler: ia64-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=766042fb8971eaa61f89cdf9b340e602ad6bc7ef
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 766042fb8971eaa61f89cdf9b340e602ad6bc7ef
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64
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/char/hpet.c: In function 'hpet_init':
drivers/char/hpet.c:1044:25: error: implicit declaration of function 'register_sysctl_subdir'; did you mean 'register_sysctl_init'? [-Werror=implicit-function-declaration]
1044 | sysctl_header = register_sysctl_subdir("dev", "hpet", hpet_table);
| ^~~~~~~~~~~~~~~~~~~~~~
| register_sysctl_init
>> drivers/char/hpet.c:1044:23: warning: assignment to 'struct ctl_table_header *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1044 | sysctl_header = register_sysctl_subdir("dev", "hpet", hpet_table);
| ^
cc1: some warnings being treated as errors
vim +1044 drivers/char/hpet.c
1035
1036 static int __init hpet_init(void)
1037 {
1038 int result;
1039
1040 result = misc_register(&hpet_misc);
1041 if (result < 0)
1042 return -ENODEV;
1043
> 1044 sysctl_header = register_sysctl_subdir("dev", "hpet", hpet_table);
1045
1046 result = acpi_bus_register_driver(&hpet_acpi_driver);
1047 if (result < 0) {
1048 if (sysctl_header)
1049 unregister_sysctl_table(sysctl_header);
1050 misc_deregister(&hpet_misc);
1051 return result;
1052 }
1053
1054 return 0;
1055 }
1056 device_initcall(hpet_init);
1057
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-11-25 6:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111251417.kSQaTZ8j-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).