Re: [PATCH] powerpc/prom_init: add __init markers to all functions
From: kbuild test robot
Date: Thu Jan 31 2019 - 01:59:19 EST
Hi Masahiro,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.0-rc4 next-20190130]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Masahiro-Yamada/powerpc-prom_init-add-__init-markers-to-all-functions/20190131-134035
config: powerpc-mpc837x_mds_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.2.0 make.cross ARCH=powerpc
All errors (new ones prefixed by >>):
>> arch/powerpc/kernel/prom_init.c:511:19: error: 'prom_getproplen' defined but not used [-Werror=unused-function]
static int __init prom_getproplen(phandle node, const char *pname)
^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/prom_getproplen +511 arch/powerpc/kernel/prom_init.c
510
> 511 static int __init prom_getproplen(phandle node, const char *pname)
512 {
513 return call_prom("getproplen", 2, 1, node, ADDR(pname));
514 }
515
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip