All of lore.kernel.org
 help / color / mirror / Atom feed
* [joelgranados:jag/sysctl-testing-for-0day 16/17] mm/hugetlb_vmemmap.c:600:25: error: too many arguments to function 'register_sysctl_init'
@ 2023-06-18  9:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-18  9:41 UTC (permalink / raw)
  To: Joel Granados; +Cc: oe-kbuild-all

tree:   https://github.com/Joelgranados/linux.git jag/sysctl-testing-for-0day
head:   cbba378db4b97256c72560da5762aaed778957c0
commit: b1f6ed030567099a052906e9af1bdc6e6f9e5285 [16/17] sysctl: Add size to register_sysctl_init
config: s390-randconfig-c041-20230618 (https://download.01.org/0day-ci/archive/20230618/202306181715.Kn90NFdU-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230618/202306181715.Kn90NFdU-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306181715.Kn90NFdU-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/hugetlb_vmemmap.c: In function 'hugetlb_vmemmap_init':
>> mm/hugetlb_vmemmap.c:600:25: error: too many arguments to function 'register_sysctl_init'
     600 |                         register_sysctl_init("vm", hugetlb_vmemmap_sysctls,
         |                         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:976,
                    from include/linux/bootmem_info.h:5,
                    from mm/hugetlb_vmemmap.c:15:
   include/linux/sysctl.h:258:20: note: declared here
     258 | static inline void register_sysctl_init(const char *path, struct ctl_table *table)
         |                    ^~~~~~~~~~~~~~~~~~~~


vim +/register_sysctl_init +600 mm/hugetlb_vmemmap.c

   590	
   591	static int __init hugetlb_vmemmap_init(void)
   592	{
   593		const struct hstate *h;
   594	
   595		/* HUGETLB_VMEMMAP_RESERVE_SIZE should cover all used struct pages */
   596		BUILD_BUG_ON(__NR_USED_SUBPAGE * sizeof(struct page) > HUGETLB_VMEMMAP_RESERVE_SIZE);
   597	
   598		for_each_hstate(h) {
   599			if (hugetlb_vmemmap_optimizable(h)) {
 > 600				register_sysctl_init("vm", hugetlb_vmemmap_sysctls,

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-06-18  9:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-18  9:41 [joelgranados:jag/sysctl-testing-for-0day 16/17] mm/hugetlb_vmemmap.c:600:25: error: too many arguments to function 'register_sysctl_init' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.