[PATCH] powerpc/prom_init: add __init markers to all functions
kbuild test robot
lkp at intel.com
Thu Jan 31 17:58:53 AEDT 2019
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 15157 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20190131/2ebfb18a/attachment.gz>
More information about the Linuxppc-dev
mailing list