Skip to contentSkip to conversation

arm64/for-kernelci build: 3 builds: 1 failed, 2 passed, 1 error (v5.6-rc6-67-gcf89e8c383a6)

DISCUSSION kernelci.org bot 4 participants 6 messages Mar 17, 2020 – Mar 18, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

arm64/for-kernelci build: 3 builds: 1 failed, 2 passed, 1 error (v5.6-rc6-67-gcf89e8c383a6)

Full Build Summary: https://kernelci.org/build/arm64/branch/for-kernelci/kernel/v5.6-rc6-67-gcf89e8c383a6/

Tree: arm64
Branch: for-kernelci
Git Describe: v5.6-rc6-67-gcf89e8c383a6
Git Commit: cf89e8c383a6447a635400f669d0cd97e89770d9
Git URL: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Built: 1 unique architecture

Build Failure Detected:

arm64:
allnoconfig: (gcc-8) FAIL

Errors Detected:

arm64:
allnoconfig (gcc-8): 1 error

Errors summary:

1 include/linux/elf.h:79:19: error: redefinition of ‘arch_parse_elf_property’

================================================================================

Detailed per-defconfig build reports:

--------------------------------------------------------------------------------
allmodconfig (arm64, gcc-8) — PASS, 0 errors, 0 warnings, 0 section mismatches

--------------------------------------------------------------------------------
allnoconfig (arm64, gcc-8) — FAIL, 1 error, 0 warnings, 0 section mismatches

Errors:
include/linux/elf.h:79:19: error: redefinition of ‘arch_parse_elf_property’

--------------------------------------------------------------------------------
defconfig (arm64, gcc-8) — PASS, 0 errors, 0 warnings, 0 section mismatches

---
For more info write to <[email protected]>

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#1 lore raw
Quoted 13 lines · kernelci.org bot

arm64/for-kernelci build: 3 builds: 1 failed, 2 passed, 1 error (v5.6-rc6-67-gcf89e8c383a6)

Full Build Summary: https://kernelci.org/build/arm64/branch/for-kernelci/kernel/v5.6-rc6-67-gcf89e8c383a6/

Tree: arm64
Branch: for-kernelci
Git Describe: v5.6-rc6-67-gcf89e8c383a6
Git Commit: cf89e8c383a6447a635400f669d0cd97e89770d9
Git URL: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Built: 1 unique architecture

Build Failure Detected:

Quoted 7 lines

arm64:
allnoconfig: (gcc-8) FAIL

Errors Detected:

arm64:
allnoconfig (gcc-8): 1 error

Looks like this is easily fixed as per below.

Will

--->8

arch/arm64/Kconfig +1 -1
index d65d226a77ec..53c77711f752 100644
@@ -64,7 +64,7 @@ config ARM64
 	select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION
 	select ARCH_KEEP_MEMBLOCK
 	select ARCH_USE_CMPXCHG_LOCKREF
-	select ARCH_USE_GNU_PROPERTY if BINFMT_ELF
+	select ARCH_USE_GNU_PROPERTY
 	select ARCH_USE_QUEUED_RWLOCKS
 	select ARCH_USE_QUEUED_SPINLOCKS
 	select ARCH_SUPPORTS_MEMORY_FAILURE

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#2 lore raw
Quoted 33 lines · Will Deacon
Quoted 13 lines · kernelci.org bot

arm64/for-kernelci build: 3 builds: 1 failed, 2 passed, 1 error (v5.6-rc6-67-gcf89e8c383a6)

Full Build Summary: https://kernelci.org/build/arm64/branch/for-kernelci/kernel/v5.6-rc6-67-gcf89e8c383a6/

Tree: arm64
Branch: for-kernelci
Git Describe: v5.6-rc6-67-gcf89e8c383a6
Git Commit: cf89e8c383a6447a635400f669d0cd97e89770d9
Git URL: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Built: 1 unique architecture

Build Failure Detected:

Quoted 7 lines

arm64:
allnoconfig: (gcc-8) FAIL

Errors Detected:

arm64:
allnoconfig (gcc-8): 1 error

Looks like this is easily fixed as per below.

Will

--->8

arch/arm64/Kconfig +0 -0
index d65d226a77ec..53c77711f752 100644

arch/arm64/Kconfig config ARM64 · line 70

Quoted 8 lines
arch/arm64/Kconfig +1 -1
@@ -64,7 +64,7 @@ config ARM64
 	select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION
 	select ARCH_KEEP_MEMBLOCK
 	select ARCH_USE_CMPXCHG_LOCKREF
-	select ARCH_USE_GNU_PROPERTY if BINFMT_ELF
+	select ARCH_USE_GNU_PROPERTY
 	select ARCH_USE_QUEUED_RWLOCKS
 	select ARCH_USE_QUEUED_SPINLOCKS
 	select ARCH_SUPPORTS_MEMORY_FAILURE

If ARCH_USE_GNU_PROPERTY is specific to ELF only, I'd rather not select it unconditionally (and the option should probably depend on BINFMT_ELF). Following the pattern of ARCH_HAVE_EXTRA_ELF_NOTES, we could fix it up as below:

arch/arm64/include/asm/elf.h +2 -0
index 4f00d50585a4..2eef3672de50 100644
@@ -238,6 +238,7 @@ struct arch_elf_state {
 	.flags = 0,				\
 }
 
+#ifdef CONFIG_ARCH_USE_GNU_PROPERTY
 static inline int arch_parse_elf_property(u32 type, const void *data,
 					  size_t datasz, bool compat,
 					  struct arch_elf_state *arch)
@@ -259,6 +260,7 @@ static inline int arch_parse_elf_property(u32 type, const void *data,
 
 	return 0;
 }
+#endif
 
 static inline int arch_elf_pt_proc(void *ehdr, void *phdr,
 				   struct file *f, bool is_interp,
Signature · 6 lines
Catalin

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw
Quoted 10 lines · Catalin Marinas

If ARCH_USE_GNU_PROPERTY is specific to ELF only, I'd rather not select it unconditionally (and the option should probably depend on BINFMT_ELF). Following the pattern of ARCH_HAVE_EXTRA_ELF_NOTES, we could fix it up as below:

arch/arm64/include/asm/elf.h +0 -0
index 4f00d50585a4..2eef3672de50 100644

arch/arm64/include/asm/elf.h struct arch_elf_state { · line 241

Quoted 4 lines
arch/arm64/include/asm/elf.h +1 -0
@@ -238,6 +238,7 @@ struct arch_elf_state {
 	.flags = 0,				\
 }
 
+#ifdef CONFIG_ARCH_USE_GNU_PROPERTY

That makes sense to me.

arch/arm64/include/asm/elf.h static inline int arch_parse_elf_property(u32 type, const void *data, · line 266

Quoted 4 lines
arch/arm64/include/asm/elf.h +1 -0
+#endif
 
 static inline int arch_elf_pt_proc(void *ehdr, void *phdr,
 				   struct file *f, bool is_interp,

Though presumably this is all eventually dead code too?

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#4 lore raw
Quoted 19 lines · Mark Brown
Quoted 10 lines · Catalin Marinas

If ARCH_USE_GNU_PROPERTY is specific to ELF only, I'd rather not select it unconditionally (and the option should probably depend on BINFMT_ELF). Following the pattern of ARCH_HAVE_EXTRA_ELF_NOTES, we could fix it up as below:

arch/arm64/include/asm/elf.h +0 -0
index 4f00d50585a4..2eef3672de50 100644

arch/arm64/include/asm/elf.h struct arch_elf_state { · line 241

Quoted 4 lines
arch/arm64/include/asm/elf.h +1 -0
@@ -238,6 +238,7 @@ struct arch_elf_state {
 	.flags = 0,				\
 }
 
+#ifdef CONFIG_ARCH_USE_GNU_PROPERTY

That makes sense to me.

Quoted 6 lines

arch/arm64/include/asm/elf.h static inline int arch_parse_elf_property(u32 type, const void *data, · line 266

Quoted 4 lines
arch/arm64/include/asm/elf.h +1 -0
+#endif
 
 static inline int arch_elf_pt_proc(void *ehdr, void *phdr,
 				   struct file *f, bool is_interp,

Though presumably this is all eventually dead code too?

I'll let you pick one ;), I don't have a strong preference either way.

Signature · 6 lines
Catalin

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel