All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [openeuler:OLK-5.10 2759/2759] mm/hugetlb_vmemmap.c:352 (null)() warn: (struct ctl_table)->procname cannot be NULL. Expression : hugetlb_vmemmap_sysctls[1]->procname
Date: Sat, 22 Feb 2025 13:55:42 +0800	[thread overview]
Message-ID: <202502221344.WRaa1GPQ-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: kernel@openeuler.org
TO: Zheng Zengkai <zhengzengkai@huawei.com>

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   4d88bf76198b8a462646f7be261586ebb2bbf5f3
commit: 6b2239c22b56bddcdefd09fd58b6672f2b1f1566 [2759/2759] mm: hugetlb_vmemmap: add hugetlb_optimize_vmemmap sysctl
:::::: branch date: 27 hours ago
:::::: commit date: 2 years, 7 months ago
config: x86_64-randconfig-161-20250222 (https://download.01.org/0day-ci/archive/20250222/202502221344.WRaa1GPQ-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202502221344.WRaa1GPQ-lkp@intel.com/

smatch warnings:
mm/hugetlb_vmemmap.c:352 (null)() warn: (struct ctl_table)->procname cannot be NULL. Expression : hugetlb_vmemmap_sysctls[1]->procname
mm/hugetlb_vmemmap.c:352 (null)() warn: (struct ctl_table)->proc_handler cannot be NULL. Expression : hugetlb_vmemmap_sysctls[1]->proc_handler

vim +352 mm/hugetlb_vmemmap.c

6b2239c22b56bd Muchun Song 2022-07-28  351  
6b2239c22b56bd Muchun Song 2022-07-28 @352  static struct ctl_table hugetlb_vmemmap_sysctls[] = {
6b2239c22b56bd Muchun Song 2022-07-28  353  	{
6b2239c22b56bd Muchun Song 2022-07-28  354  		.procname	= "hugetlb_optimize_vmemmap",
6b2239c22b56bd Muchun Song 2022-07-28  355  		.maxlen		= sizeof(enum vmemmap_optimize_mode),
6b2239c22b56bd Muchun Song 2022-07-28  356  		.mode		= 0644,
6b2239c22b56bd Muchun Song 2022-07-28  357  		.proc_handler	= hugetlb_optimize_vmemmap_handler,
6b2239c22b56bd Muchun Song 2022-07-28  358  		.extra1		= SYSCTL_ZERO,
6b2239c22b56bd Muchun Song 2022-07-28  359  		.extra2		= SYSCTL_ONE,
6b2239c22b56bd Muchun Song 2022-07-28  360  	},
6b2239c22b56bd Muchun Song 2022-07-28  361  	{ }
6b2239c22b56bd Muchun Song 2022-07-28  362  };
6b2239c22b56bd Muchun Song 2022-07-28  363  

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

                 reply	other threads:[~2025-02-22  5:56 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=202502221344.WRaa1GPQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@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.