[PATCH 3/4] powerpc/powernv: cope with non-synchronous machine checks

kbuild test robot lkp at intel.com
Fri Feb 17 11:04:31 AEDT 2017


Hi Nicholas,

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.10-rc8 next-20170216]
[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/Nicholas-Piggin/POWER9-machine-check-handler/20170217-023423
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/platforms/powernv/opal.c: In function 'opal_recover_mce':
>> arch/powerpc/platforms/powernv/opal.c:398:11: error: unused variable 'ea' [-Werror=unused-variable]
     uint64_t ea = get_mce_fault_addr(evt);
              ^~
   cc1: all warnings being treated as errors

vim +/ea +398 arch/powerpc/platforms/powernv/opal.c

14a43e69 Benjamin Herrenschmidt 2011-09-19  392  }
14a43e69 Benjamin Herrenschmidt 2011-09-19  393  
b63a0ffe Mahesh Salgaonkar      2013-10-30  394  static int opal_recover_mce(struct pt_regs *regs,
b63a0ffe Mahesh Salgaonkar      2013-10-30  395  					struct machine_check_event *evt)
b63a0ffe Mahesh Salgaonkar      2013-10-30  396  {
b63a0ffe Mahesh Salgaonkar      2013-10-30  397  	int recovered = 0;
b63a0ffe Mahesh Salgaonkar      2013-10-30 @398  	uint64_t ea = get_mce_fault_addr(evt);
b63a0ffe Mahesh Salgaonkar      2013-10-30  399  
b63a0ffe Mahesh Salgaonkar      2013-10-30  400  	if (!(regs->msr & MSR_RI)) {
b63a0ffe Mahesh Salgaonkar      2013-10-30  401  		/* If MSR_RI isn't set, we cannot recover */

:::::: The code at line 398 was first introduced by commit
:::::: b63a0ffe35de7e5f9b907bbc2c783e702f7e15af powerpc/powernv: Machine check exception handling.

:::::: TO: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>
:::::: CC: Benjamin Herrenschmidt <benh at kernel.crashing.org>

---
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: 22864 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20170217/3318fac1/attachment-0001.gz>


More information about the Linuxppc-dev mailing list