[RESEND][PATCH] Fix BUG_ON() reporting in real mode on PPC

kbuild test robot lkp at intel.com
Thu Feb 18 13:03:03 AEDT 2016


Hi Balbir,

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.5-rc4 next-20160217]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Balbir-Singh/Fix-BUG_ON-reporting-in-real-mode-on-PPC/20160218-082259
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allnoconfig (attached as .config)
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/kernel/traps.c: In function 'program_check_exception':
>> arch/powerpc/kernel/traps.c:1163:8: error: implicit declaration of function 'REGION_ID' [-Werror=implicit-function-declaration]
      if ((REGION_ID(bugaddr) == 0) && !(regs->msr & MSR_IR))
           ^
   cc1: all warnings being treated as errors

vim +/REGION_ID +1163 arch/powerpc/kernel/traps.c

  1157			/* trap exception */
  1158			if (notify_die(DIE_BPT, "breakpoint", regs, 5, 5, SIGTRAP)
  1159					== NOTIFY_STOP)
  1160				goto bail;
  1161	
  1162			bugaddr = regs->nip;
> 1163			if ((REGION_ID(bugaddr) == 0) && !(regs->msr & MSR_IR))
  1164				bugaddr += PAGE_OFFSET;
  1165	
  1166			if (!(regs->msr & MSR_PR) &&  /* not user-mode */

---
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/octet-stream
Size: 5708 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20160218/24947131/attachment.obj>


More information about the Linuxppc-dev mailing list