[arc:topic-zol-remove 13/23] arch/arc/kernel/kgdb.c:30:35: error: 'struct pt_regs' has no member named 'lp_count'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-zol-remove
head:   79f0a95b85a9af0927252156615ee3a14c2dd8de
commit: 171f761e689641b34c37d1e18ea2cd7905310267 [13/23] ARC: pt_regs: remove ZOL
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-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
        git checkout 171f761e689641b34c37d1e18ea2cd7905310267
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   arch/arc/kernel/kgdb.c: In function 'to_gdb_regs':
>> arch/arc/kernel/kgdb.c:30:35: error: 'struct pt_regs' has no member named 'lp_count'
      30 |  gdb_regs[_LP_COUNT] = kernel_regs->lp_count;
         |                                   ^~
>> arch/arc/kernel/kgdb.c:31:33: error: 'struct pt_regs' has no member named 'lp_end'
      31 |  gdb_regs[_LP_END] = kernel_regs->lp_end;
         |                                 ^~
>> arch/arc/kernel/kgdb.c:32:35: error: 'struct pt_regs' has no member named 'lp_start'
      32 |  gdb_regs[_LP_START] = kernel_regs->lp_start;
         |                                   ^~
   arch/arc/kernel/kgdb.c: In function 'from_gdb_regs':
   arch/arc/kernel/kgdb.c:50:13: error: 'struct pt_regs' has no member named 'lp_count'
      50 |  kernel_regs->lp_count = gdb_regs[_LP_COUNT];
         |             ^~
   arch/arc/kernel/kgdb.c:51:13: error: 'struct pt_regs' has no member named 'lp_end'
      51 |  kernel_regs->lp_end = gdb_regs[_LP_END];
         |             ^~
   arch/arc/kernel/kgdb.c:52:13: error: 'struct pt_regs' has no member named 'lp_start'
      52 |  kernel_regs->lp_start = gdb_regs[_LP_START];
         |             ^~
   arch/arc/kernel/kgdb.c: In function 'kgdb_arch_handle_exception':
   arch/arc/kernel/kgdb.c:141:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
     141 |   if (kgdb_hex2long(&ptr, &addr))
         |      ^
   arch/arc/kernel/kgdb.c:144:2: note: here
     144 |  case 'D':
         |  ^~~~
--
   arch/arc/kernel/disasm.c: In function 'disasm_next_pc':
>> arch/arc/kernel/disasm.c:527:57: error: 'struct pt_regs' has no member named 'lp_end'
     527 |  if (!(regs->status32 & STATUS32_L) && (*next_pc == regs->lp_end)
         |                                                         ^~
>> arch/arc/kernel/disasm.c:528:11: error: 'struct pt_regs' has no member named 'lp_count'
     528 |   && (regs->lp_count > 1)) {
         |           ^~
>> arch/arc/kernel/disasm.c:529:18: error: 'struct pt_regs' has no member named 'lp_start'
     529 |   *next_pc = regs->lp_start;
         |                  ^~

vim +30 arch/arc/kernel/kgdb.c

f46121bd26d7957 Mischa Jonker 2013-01-18  13  
f46121bd26d7957 Mischa Jonker 2013-01-18  14  static void to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs,
f46121bd26d7957 Mischa Jonker 2013-01-18  15  			struct callee_regs *cregs)
f46121bd26d7957 Mischa Jonker 2013-01-18  16  {
f46121bd26d7957 Mischa Jonker 2013-01-18  17  	int regno;
f46121bd26d7957 Mischa Jonker 2013-01-18  18  
f46121bd26d7957 Mischa Jonker 2013-01-18  19  	for (regno = 0; regno <= 26; regno++)
f46121bd26d7957 Mischa Jonker 2013-01-18  20  		gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs);
f46121bd26d7957 Mischa Jonker 2013-01-18  21  
f46121bd26d7957 Mischa Jonker 2013-01-18  22  	for (regno = 27; regno < GDB_MAX_REGS; regno++)
f46121bd26d7957 Mischa Jonker 2013-01-18  23  		gdb_regs[regno] = 0;
f46121bd26d7957 Mischa Jonker 2013-01-18  24  
f46121bd26d7957 Mischa Jonker 2013-01-18  25  	gdb_regs[_FP]		= kernel_regs->fp;
f46121bd26d7957 Mischa Jonker 2013-01-18  26  	gdb_regs[__SP]		= kernel_regs->sp;
f46121bd26d7957 Mischa Jonker 2013-01-18  27  	gdb_regs[_BLINK]	= kernel_regs->blink;
f46121bd26d7957 Mischa Jonker 2013-01-18  28  	gdb_regs[_RET]		= kernel_regs->ret;
f46121bd26d7957 Mischa Jonker 2013-01-18  29  	gdb_regs[_STATUS32]	= kernel_regs->status32;
f46121bd26d7957 Mischa Jonker 2013-01-18 @30  	gdb_regs[_LP_COUNT]	= kernel_regs->lp_count;
f46121bd26d7957 Mischa Jonker 2013-01-18 @31  	gdb_regs[_LP_END]	= kernel_regs->lp_end;
f46121bd26d7957 Mischa Jonker 2013-01-18 @32  	gdb_regs[_LP_START]	= kernel_regs->lp_start;
f46121bd26d7957 Mischa Jonker 2013-01-18  33  	gdb_regs[_BTA]		= kernel_regs->bta;
f46121bd26d7957 Mischa Jonker 2013-01-18  34  	gdb_regs[_STOP_PC]	= kernel_regs->ret;
f46121bd26d7957 Mischa Jonker 2013-01-18  35  }
f46121bd26d7957 Mischa Jonker 2013-01-18  36  

:::::: The code at line 30 was first introduced by commit
:::::: f46121bd26d7957866739313f1e098a682e8d3e4 ARC: kgdb support

:::::: TO: Mischa Jonker <mjonker@xxxxxxxxxxxx>
:::::: CC: Vineet Gupta <vgupta@xxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip

_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux