All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kaixiong Yu <yukaixiong@huawei.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH -next 08/15] mm: nommu: move sysctl to its own file
Date: Fri, 30 Aug 2024 23:04:56 +0800	[thread overview]
Message-ID: <202408302219.we70LHBV-lkp@intel.com> (raw)
In-Reply-To: <20240826120449.1666461-9-yukaixiong@huawei.com>

Hi Kaixiong,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20240826]

url:    https://github.com/intel-lab-lkp/linux/commits/Kaixiong-Yu/mm-vmstat-move-sysctls-to-its-own-files/20240826-200753
base:   next-20240826
patch link:    https://lore.kernel.org/r/20240826120449.1666461-9-yukaixiong%40huawei.com
patch subject: [PATCH -next 08/15] mm: nommu: move sysctl to its own file
config: arm-randconfig-003-20240830 (https://download.01.org/0day-ci/archive/20240830/202408302219.we70LHBV-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 46fe36a4295f05d5d3731762e31fc4e6e99863e9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240830/202408302219.we70LHBV-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/202408302219.we70LHBV-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from mm/nommu.c:20:
   In file included from include/linux/mm.h:2168:
   include/linux/vmstat.h:507:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     507 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   In file included from mm/nommu.c:43:
   In file included from mm/internal.h:13:
   include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
      47 |         __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
         |                                    ~~~~~~~~~~~ ^ ~~~
   include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
      49 |                                 NR_ZONE_LRU_BASE + lru, nr_pages);
         |                                 ~~~~~~~~~~~~~~~~ ^ ~~~
   In file included from mm/nommu.c:43:
   In file included from mm/internal.h:22:
   mm/vma.h:184:19: error: use of undeclared identifier 'USER_PGTABLES_CEILING'
     184 |         vms->unmap_end = USER_PGTABLES_CEILING;
         |                          ^
>> mm/nommu.c:405:2: error: expected ';' after top level declarator
     405 | }
         |  ^
         |  ;
>> mm/nommu.c:417:2: error: call to undeclared function 'register_syscall_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     417 |         register_syscall_init("vm", nommu_table);
         |         ^
   mm/nommu.c:417:2: note: did you mean '__register_sysctl_init'?
   include/linux/sysctl.h:232:13: note: '__register_sysctl_init' declared here
     232 | extern void __register_sysctl_init(const char *path, struct ctl_table *table,
         |             ^
   3 warnings and 3 errors generated.


vim +405 mm/nommu.c

   395	
   396	static struct ctl_table nommu_table[] = {
   397		{
   398			.procname	= "nr_trim_pages",
   399			.data		= &sysctl_nr_trim_pages,
   400			.maxlen		= sizeof(sysctl_nr_trim_pages),
   401			.mode		= 0644,
   402			.proc_handler	= proc_dointvec_minmax,
   403			.extra1		= SYSCTL_ZERO,
   404		},
 > 405	}
   406	
   407	/*
   408	 * initialise the percpu counter for VM and region record slabs
   409	 */
   410	void __init mmap_init(void)
   411	{
   412		int ret;
   413	
   414		ret = percpu_counter_init(&vm_committed_as, 0, GFP_KERNEL);
   415		VM_BUG_ON(ret);
   416		vm_region_jar = KMEM_CACHE(vm_region, SLAB_PANIC|SLAB_ACCOUNT);
 > 417		register_syscall_init("vm", nommu_table);
   418	}
   419	

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

  reply	other threads:[~2024-08-30 15:05 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20240826120559eucas1p1a1517b9f4dbeeae893fd2fa770b47232@eucas1p1.samsung.com>
2024-08-26 12:04 ` [PATCH -next 00/15] sysctl: move sysctls from vm_table into its own files Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 01/15] mm: vmstat: move sysctls to " Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 02/15] mm: filemap: move sysctl to its own file Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 03/15] mm: swap: " Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 04/15] mm: vmscan: move vmscan sysctls " Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 05/15] mm: util: move sysctls into it own files Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 06/15] mm: mmap: move sysctl into its own file Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 07/15] security: min_addr: " Kaixiong Yu
2024-08-26 22:49     ` Paul Moore
2024-08-27  1:38       ` yukaixiong
2024-08-27  1:56         ` Paul Moore
2024-08-27  2:43           ` yukaixiong
2024-08-26 12:04   ` [PATCH -next 08/15] mm: nommu: move sysctl to " Kaixiong Yu
2024-08-30 15:04     ` kernel test robot [this message]
2024-08-26 12:04   ` [PATCH -next 09/15] fs: fs-writeback: " Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 10/15] fs: drop_caches: " Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 11/15] sunrpc: use vfs_pressure_ratio() helper Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 12/15] fs: dcache: move the sysctl into its own file Kaixiong Yu
2024-08-26 19:56     ` Kees Cook
2024-09-02 11:04       ` Jan Kara
2024-09-02 11:17     ` Christian Brauner
2024-08-26 12:04   ` [PATCH -next 13/15] x86: vdso: " Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 14/15] sh: " Kaixiong Yu
2024-08-26 12:04   ` [PATCH -next 15/15] sysctl: remove unneeded include Kaixiong Yu
2024-08-26 19:57   ` [PATCH -next 00/15] sysctl: move sysctls from vm_table into its own files Kees Cook
2024-08-27  2:03     ` yukaixiong
2024-09-02  7:17   ` Joel Granados
2024-09-02 10:55     ` yukaixiong

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=202408302219.we70LHBV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yukaixiong@huawei.com \
    /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.