All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Joel Granados <j.granados@samsung.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [joelgranados:jag/sysctl-testing-for-0day 16/17] mm/hugetlb_vmemmap.c:600:25: error: too many arguments to function 'register_sysctl_init'
Date: Sun, 18 Jun 2023 17:41:32 +0800	[thread overview]
Message-ID: <202306181715.Kn90NFdU-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-06-18  9:42 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=202306181715.Kn90NFdU-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=j.granados@samsung.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.