All of lore.kernel.org
 help / color / mirror / Atom feed
* [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 1/36] fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak'
@ 2021-11-19  1:44 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-19  1:44 UTC (permalink / raw)
  To: Xiaoming Ni; +Cc: kbuild-all, linux-kernel, Luis Chamberlain, Kees Cook

[-- Attachment #1: Type: text/plain, Size: 3287 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head:   3110d41a56792588bd2f64621080948b0fceb6ab
commit: 0de3e8b302495fb40dbdeec425d577618b3be169 [1/36] sysctl: add a new register_sysctl_init() interface
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-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=0de3e8b302495fb40dbdeec425d577618b3be169
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
        git checkout 0de3e8b302495fb40dbdeec425d577618b3be169
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/proc/proc_sysctl.c: In function '__register_sysctl_init':
>> fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak' [-Werror=implicit-function-declaration]
    1415 |         kmemleak_not_leak(hdr);
         |         ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/kmemleak_not_leak +1415 fs/proc/proc_sysctl.c

  1386	
  1387	/**
  1388	 * __register_sysctl_init() - register sysctl table to path
  1389	 * @path: path name for sysctl base
  1390	 * @table: This is the sysctl table that needs to be registered to the path
  1391	 * @table_name: The name of sysctl table, only used for log printing when
  1392	 *              registration fails
  1393	 *
  1394	 * The sysctl interface is used by userspace to query or modify at runtime
  1395	 * a predefined value set on a variable. These variables however have default
  1396	 * values pre-set. Code which depends on these variables will always work even
  1397	 * if register_sysctl() fails. If register_sysctl() fails you'd just loose the
  1398	 * ability to query or modify the sysctls dynamically at run time. Chances of
  1399	 * register_sysctl() failing on init are extremely low, and so for both reasons
  1400	 * this function does not return any error as it is used by initialization code.
  1401	 *
  1402	 * Context: Can only be called after sysctl base path has been registered
  1403	 *          It is recommended to call this interface in core_initcall() and
  1404	 *          later initcall(), not in early_initcall() and earlier stages.
  1405	 */
  1406	void __init __register_sysctl_init(const char *path, struct ctl_table *table,
  1407					 const char *table_name)
  1408	{
  1409		struct ctl_table_header *hdr = register_sysctl(path, table);
  1410	
  1411		if (unlikely(!hdr)) {
  1412			pr_err("failed when register_sysctl %s to %s\n", table_name, path);
  1413			return;
  1414		}
> 1415		kmemleak_not_leak(hdr);
  1416	}
  1417	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 6136 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 1/36] fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak'
@ 2021-11-19  1:44 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-19  1:44 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3354 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head:   3110d41a56792588bd2f64621080948b0fceb6ab
commit: 0de3e8b302495fb40dbdeec425d577618b3be169 [1/36] sysctl: add a new register_sysctl_init() interface
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-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=0de3e8b302495fb40dbdeec425d577618b3be169
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
        git checkout 0de3e8b302495fb40dbdeec425d577618b3be169
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/proc/proc_sysctl.c: In function '__register_sysctl_init':
>> fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak' [-Werror=implicit-function-declaration]
    1415 |         kmemleak_not_leak(hdr);
         |         ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/kmemleak_not_leak +1415 fs/proc/proc_sysctl.c

  1386	
  1387	/**
  1388	 * __register_sysctl_init() - register sysctl table to path
  1389	 * @path: path name for sysctl base
  1390	 * @table: This is the sysctl table that needs to be registered to the path
  1391	 * @table_name: The name of sysctl table, only used for log printing when
  1392	 *              registration fails
  1393	 *
  1394	 * The sysctl interface is used by userspace to query or modify at runtime
  1395	 * a predefined value set on a variable. These variables however have default
  1396	 * values pre-set. Code which depends on these variables will always work even
  1397	 * if register_sysctl() fails. If register_sysctl() fails you'd just loose the
  1398	 * ability to query or modify the sysctls dynamically at run time. Chances of
  1399	 * register_sysctl() failing on init are extremely low, and so for both reasons
  1400	 * this function does not return any error as it is used by initialization code.
  1401	 *
  1402	 * Context: Can only be called after sysctl base path has been registered
  1403	 *          It is recommended to call this interface in core_initcall() and
  1404	 *          later initcall(), not in early_initcall() and earlier stages.
  1405	 */
  1406	void __init __register_sysctl_init(const char *path, struct ctl_table *table,
  1407					 const char *table_name)
  1408	{
  1409		struct ctl_table_header *hdr = register_sysctl(path, table);
  1410	
  1411		if (unlikely(!hdr)) {
  1412			pr_err("failed when register_sysctl %s to %s\n", table_name, path);
  1413			return;
  1414		}
> 1415		kmemleak_not_leak(hdr);
  1416	}
  1417	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 6136 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-19  1:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  1:44 [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 1/36] fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak' kernel test robot
2021-11-19  1:44 ` 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.