All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip:x86/asm 11/12] arch/x86/include/asm/archrandom.h:95:20: error: redefinition of 'arch_get_random_long'
@ 2016-06-08  0:12 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-06-08  0:12 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, tipbuild, H. Peter Anvin

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/asm
head:   8d0d5a8abd88fa9671867b8b8ab4ee61b85c0c81
commit: b0bdba9825feefa46998f29225736ef9bd77bd2e [11/12] x86, asm: Use CC_SET()/CC_OUT() and static_cpu_has() in archrandom.h
config: x86_64-randconfig-s2-06080621 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout b0bdba9825feefa46998f29225736ef9bd77bd2e
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:95:20: error: redefinition of 'arch_get_random_long'
    static inline bool arch_get_random_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:98:20: note: previous definition of 'arch_get_random_long' was here
    static inline bool arch_get_random_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:100:20: error: redefinition of 'arch_get_random_int'
    static inline bool arch_get_random_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:102:20: note: previous definition of 'arch_get_random_int' was here
    static inline bool arch_get_random_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:105:20: error: redefinition of 'arch_get_random_seed_long'
    static inline bool arch_get_random_seed_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:110:20: note: previous definition of 'arch_get_random_seed_long' was here
    static inline bool arch_get_random_seed_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:110:20: error: redefinition of 'arch_get_random_seed_int'
    static inline bool arch_get_random_seed_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:114:20: note: previous definition of 'arch_get_random_seed_int' was here
    static inline bool arch_get_random_seed_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~

vim +/arch_get_random_long +95 arch/x86/include/asm/archrandom.h

    89	}
    90	
    91	/* Conditional execution based on CPU type */
    92	#define arch_has_random()	static_cpu_has(X86_FEATURE_RDRAND)
    93	#define arch_has_random_seed()	static_cpu_has(X86_FEATURE_RDSEED)
    94	
  > 95	static inline bool arch_get_random_long(unsigned long *v)
    96	{
    97		return arch_has_random() ? rdrand_long(v) : false;
    98	}
    99	
 > 100	static inline bool arch_get_random_int(unsigned int *v)
   101	{
   102		return arch_has_random() ? rdrand_int(v) : false;
   103	}
   104	
 > 105	static inline bool arch_get_random_seed_long(unsigned long *v)
   106	{
   107		return arch_has_random_seed() ? rdseed_long(v) : false;
   108	}
   109	
 > 110	static inline bool arch_get_random_seed_int(unsigned int *v)
   111	{
   112		return arch_has_random_seed() ? rdseed_int(v) : false;
   113	}

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 26276 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-08  0:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08  0:12 [tip:x86/asm 11/12] arch/x86/include/asm/archrandom.h:95:20: error: redefinition of 'arch_get_random_long' kbuild test robot

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.