All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vineet Gupta <vgupta@synopsys.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	linux-snps-arc@lists.infradead.org
Subject: [linux-next:pending-fixes 265/302] arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
Date: Thu, 10 Jun 2021 12:17:58 +0800	[thread overview]
Message-ID: <202106101254.80jqhB9j-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4059 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head:   2413b547bbb10e9b0d9da0e15040d2228ef17a76
commit: 98ec2edf58c820ef953fbdfcf98d706aa804b822 [265/302] 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://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=98ec2edf58c820ef953fbdfcf98d706aa804b822
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next pending-fixes
        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@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://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38751 bytes --]

[-- Attachment #3: Type: text/plain, Size: 170 bytes --]

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Vineet Gupta <vgupta@synopsys.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	linux-snps-arc@lists.infradead.org
Subject: [linux-next:pending-fixes 265/302] arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
Date: Thu, 10 Jun 2021 12:17:58 +0800	[thread overview]
Message-ID: <202106101254.80jqhB9j-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4059 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head:   2413b547bbb10e9b0d9da0e15040d2228ef17a76
commit: 98ec2edf58c820ef953fbdfcf98d706aa804b822 [265/302] 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://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=98ec2edf58c820ef953fbdfcf98d706aa804b822
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next pending-fixes
        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@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://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38751 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:pending-fixes 265/302] arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
Date: Thu, 10 Jun 2021 12:17:58 +0800	[thread overview]
Message-ID: <202106101254.80jqhB9j-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4160 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head:   2413b547bbb10e9b0d9da0e15040d2228ef17a76
commit: 98ec2edf58c820ef953fbdfcf98d706aa804b822 [265/302] 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://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=98ec2edf58c820ef953fbdfcf98d706aa804b822
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next pending-fixes
        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@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://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38751 bytes --]

             reply	other threads:[~2021-06-10  4:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10  4:17 kernel test robot [this message]
2021-06-10  4:17 ` [linux-next:pending-fixes 265/302] arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'? kernel test robot
2021-06-10  4:17 ` kernel test robot
2021-06-10 19:12 ` [PATCH v2] ARCv2: save ABI registers across signal handling Vineet Gupta
2021-06-10 19:12   ` Vineet Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202106101254.80jqhB9j-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-snps-arc@lists.infradead.org \
    --cc=vgupta@synopsys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.