[linux-next:master 8465/8758] arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
Vineet Gupta
Vineet.Gupta1 at synopsys.com
Thu Jun 10 14:47:36 PDT 2021
On 6/10/21 2:36 PM, kernel test robot wrote:
> Hi Vineet,
>
> FYI, the error/warning still remains.
I posted the v2 patch but didn't yet push my branch. Now done.
Thx,
-Vineet
>
> tree: https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git__;!!A4F2R9G_pg!OKqfde4ua3ZrR7XYJtEqASSTLKtjW1iEEeBD5V38iLgNZ9l3CBkaluPc9FDW_E5l$ master
> head: 50a1180e6cf12462bbbf3f2ebc5b93094ed9abee
> commit: 98ec2edf58c820ef953fbdfcf98d706aa804b822 [8465/8758] ARCv2: save ABI registers across signal handling
> config: arc-randconfig-r001-20210610 (attached as .config)
> compiler: arceb-elf-gcc (GCC) 9.3.0
> reproduce (this is a W=1 build):
> wget https://urldefense.com/v3/__https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross__;!!A4F2R9G_pg!OKqfde4ua3ZrR7XYJtEqASSTLKtjW1iEEeBD5V38iLgNZ9l3CBkaluPc9Cao0rHM$ -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=98ec2edf58c820ef953fbdfcf98d706aa804b822__;!!A4F2R9G_pg!OKqfde4ua3ZrR7XYJtEqASSTLKtjW1iEEeBD5V38iLgNZ9l3CBkaluPc9J7KfXQN$
> git remote add linux-next https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git__;!!A4F2R9G_pg!OKqfde4ua3ZrR7XYJtEqASSTLKtjW1iEEeBD5V38iLgNZ9l3CBkaluPc9FDW_E5l$
> git fetch --no-tags linux-next master
> git checkout 98ec2edf58c820ef953fbdfcf98d706aa804b822
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp at intel.com>
>
> All errors (new ones prefixed by >>):
>
> arch/arc/kernel/signal.c: In function 'stash_usr_regs':
>>> arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
> 101 | v2abi.r30 = regs->r30;
> | ^~~
> | r10
> arch/arc/kernel/signal.c: In function 'restore_usr_regs':
> arch/arc/kernel/signal.c:134:9: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
> 134 | regs->r30 = v2abi.r30;
> | ^~~
> | r10
> arch/arc/kernel/signal.c: At top level:
> arch/arc/kernel/signal.c:387:6: warning: no previous prototype for 'do_signal' [-Wmissing-prototypes]
> 387 | void do_signal(struct pt_regs *regs)
> | ^~~~~~~~~
> arch/arc/kernel/signal.c:420:6: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
> 420 | void do_notify_resume(struct pt_regs *regs)
> | ^~~~~~~~~~~~~~~~
>
>
> vim +101 arch/arc/kernel/signal.c
>
> 63
> 64 static int
> 65 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,
> 66 sigset_t *set)
> 67 {
> 68 int err;
> 69 struct user_regs_struct uregs;
> 70
> 71 uregs.scratch.bta = regs->bta;
> 72 uregs.scratch.lp_start = regs->lp_start;
> 73 uregs.scratch.lp_end = regs->lp_end;
> 74 uregs.scratch.lp_count = regs->lp_count;
> 75 uregs.scratch.status32 = regs->status32;
> 76 uregs.scratch.ret = regs->ret;
> 77 uregs.scratch.blink = regs->blink;
> 78 uregs.scratch.fp = regs->fp;
> 79 uregs.scratch.gp = regs->r26;
> 80 uregs.scratch.r12 = regs->r12;
> 81 uregs.scratch.r11 = regs->r11;
> 82 uregs.scratch.r10 = regs->r10;
> 83 uregs.scratch.r9 = regs->r9;
> 84 uregs.scratch.r8 = regs->r8;
> 85 uregs.scratch.r7 = regs->r7;
> 86 uregs.scratch.r6 = regs->r6;
> 87 uregs.scratch.r5 = regs->r5;
> 88 uregs.scratch.r4 = regs->r4;
> 89 uregs.scratch.r3 = regs->r3;
> 90 uregs.scratch.r2 = regs->r2;
> 91 uregs.scratch.r1 = regs->r1;
> 92 uregs.scratch.r0 = regs->r0;
> 93 uregs.scratch.sp = regs->sp;
> 94
> 95 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch,
> 96 sizeof(sf->uc.uc_mcontext.regs.scratch));
> 97
> 98 if (is_isa_arcv2()) {
> 99 struct user_regs_arcv2 v2abi;
> 100
> > 101 v2abi.r30 = regs->r30;
> 102 #ifdef CONFIG_ARC_HAS_ACCL_REGS
> 103 v2abi.r58 = regs->r58;
> 104 v2abi.r59 = regs->r59;
> 105 #else
> 106 v2abi.r58 = v2abi.r59 = 0;
> 107 #endif
> 108 err |= __copy_to_user(&(sf->uc.uc_mcontext.v2abi), &v2abi,
> 109 sizeof(sf->uc.uc_mcontext.v2abi));
> 110 }
> 111
> 112 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t));
> 113
> 114 return err ? -EFAULT : 0;
> 115 }
> 116
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://urldefense.com/v3/__https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org__;!!A4F2R9G_pg!OKqfde4ua3ZrR7XYJtEqASSTLKtjW1iEEeBD5V38iLgNZ9l3CBkaluPc9LGECAK4$
More information about the linux-snps-arc
mailing list