Hi Santosh,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on powerpc/next]
[also build test ERROR on v5.7-rc1 next-20200412]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Santosh-Sivaraj/papr-scm-Add-bad...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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=9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/platforms/pseries/papr_scm.c: In function 'papr_scm_init':
> arch/powerpc/platforms/pseries/papr_scm.c:584:3: error: implicit
declaration of function 'mce_register_notifier'; did you mean
'bus_register_notifier'? [-Werror=implicit-function-declaration]
584 |
mce_register_notifier(&mce_ue_nb);
| ^~~~~~~~~~~~~~~~~~~~~
| bus_register_notifier
arch/powerpc/platforms/pseries/papr_scm.c: In function 'papr_scm_exit':
> arch/powerpc/platforms/pseries/papr_scm.c:592:2: error: implicit
declaration of function 'mce_unregister_notifier'; did you mean
'bus_unregister_notifier'? [-Werror=implicit-function-declaration]
592
| mce_unregister_notifier(&mce_ue_nb);
| ^~~~~~~~~~~~~~~~~~~~~~~
| bus_unregister_notifier
cc1: some warnings being treated as errors
vim +584 arch/powerpc/platforms/pseries/papr_scm.c
577
578 static int __init papr_scm_init(void)
579 {
580 int ret;
581
582 ret = platform_driver_register(&papr_scm_driver);
583 if (!ret)
584 mce_register_notifier(&mce_ue_nb);
585
586 return ret;
587 }
588 module_init(papr_scm_init);
589
590 static void __exit papr_scm_exit(void)
591 {
592 mce_unregister_notifier(&mce_ue_nb);
593 platform_driver_unregister(&papr_scm_driver);
594 }
595 module_exit(papr_scm_exit);
596
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org