public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, x86@kernel.org
Subject: [tip:tmp.tmp2 362/364] arch/x86/include/asm/uaccess_32.h:18:1: error: redefinition of 'raw_copy_to_user'
Date: Mon, 14 Jun 2021 10:56:51 +0800	[thread overview]
Message-ID: <202106141044.Iq3PyGiI-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 9073ccabaa37f3392a6888678ffc6968fcdca9b6 [362/364] sched/headers: Misc dependency fixes
config: i386-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9073ccabaa37f3392a6888678ffc6968fcdca9b6
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout 9073ccabaa37f3392a6888678ffc6968fcdca9b6
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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 >>):

   In file included from arch/x86/include/asm/uaccess.h:464,
                    from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
>> arch/x86/include/asm/uaccess_32.h:18:1: error: redefinition of 'raw_copy_to_user'
      18 | raw_copy_to_user(void __user *to, const void *from, unsigned long n)
         | ^~~~~~~~~~~~~~~~
   In file included from kernel/power/snapshot.c:15:
   arch/x86/include/asm/uaccess_64.h:56:1: note: previous definition of 'raw_copy_to_user' was here
      56 | raw_copy_to_user(void __user *dst, const void *src, unsigned long size)
         | ^~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/uaccess.h:464,
                    from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
>> arch/x86/include/asm/uaccess_32.h:24:1: error: redefinition of 'raw_copy_from_user'
      24 | raw_copy_from_user(void *to, const void __user *from, unsigned long n)
         | ^~~~~~~~~~~~~~~~~~
   In file included from kernel/power/snapshot.c:15:
   arch/x86/include/asm/uaccess_64.h:50:1: note: previous definition of 'raw_copy_from_user' was here
      50 | raw_copy_from_user(void *dst, const void __user *src, unsigned long size)
         | ^~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/uaccess.h:464,
                    from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
>> arch/x86/include/asm/uaccess_32.h:30:1: error: conflicting types for '__copy_from_user_inatomic_nocache'
      30 | __copy_from_user_inatomic_nocache(void *to, const void __user *from,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/power/snapshot.c:15:
   arch/x86/include/asm/uaccess_64.h:76:1: note: previous definition of '__copy_from_user_inatomic_nocache' was here
      76 | __copy_from_user_inatomic_nocache(void *dst, const void __user *src,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/uaccess.h:13,
                    from arch/x86/include/asm/fpu/xstate.h:5,
                    from arch/x86/include/asm/pgtable.h:26,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:35,
                    from kernel/power/snapshot.c:19:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~


vim +/raw_copy_to_user +18 arch/x86/include/asm/uaccess_32.h

^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  11  
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  12  unsigned long __must_check __copy_user_ll
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  13  		(void *to, const void *from, unsigned long n);
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23  14  unsigned long __must_check __copy_from_user_ll_nocache_nozero
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23  15  		(void *to, const void __user *from, unsigned long n);
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  16  
652050aec936fd include/asm-i386/uaccess.h        Ingo Molnar    2006-01-14  17  static __always_inline unsigned long __must_check
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25 @18  raw_copy_to_user(void __user *to, const void *from, unsigned long n)
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  19  {
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  20  	return __copy_user_ll((__force void *)to, from, n);
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  21  }
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  22  
7c12d81134b130 include/asm-i386/uaccess.h        NeilBrown      2006-06-25  23  static __always_inline unsigned long
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25 @24  raw_copy_from_user(void *to, const void __user *from, unsigned long n)
7c12d81134b130 include/asm-i386/uaccess.h        NeilBrown      2006-06-25  25  {
beba3a20bf90ce arch/x86/include/asm/uaccess_32.h Al Viro        2017-03-25  26  	return __copy_user_ll(to, (__force const void *)from, n);
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  27  }
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  28  
652050aec936fd include/asm-i386/uaccess.h        Ingo Molnar    2006-01-14  29  static __always_inline unsigned long
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23 @30  __copy_from_user_inatomic_nocache(void *to, const void __user *from,
b1fcec7f2296c4 include/asm-x86/uaccess_32.h      Joe Perches    2008-03-23  31  				  unsigned long n)
^1da177e4c3f41 include/asm-i386/uaccess.h        Linus Torvalds 2005-04-16  32  {
7c12d81134b130 include/asm-i386/uaccess.h        NeilBrown      2006-06-25  33         return __copy_from_user_ll_nocache_nozero(to, from, n);
c22ce143d15eb2 include/asm-i386/uaccess.h        Hiro Yoshioka  2006-06-23  34  }
c22ce143d15eb2 include/asm-i386/uaccess.h        Hiro Yoshioka  2006-06-23  35  

:::::: The code at line 18 was first introduced by commit
:::::: beba3a20bf90ce1b93e24592c3ebf0d0bb581bbe x86: switch to RAW_COPY_USER

:::::: TO: Al Viro <viro@zeniv.linux.org.uk>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>

---
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: 29247 bytes --]

                 reply	other threads:[~2021-06-14  2:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202106141044.Iq3PyGiI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=x86@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox