Skip to contentSkip to conversation

next-20181008 build: 2 failures 22 warnings (next-20181008)

DISCUSSION Mark Brown 4 participants 9 messages Oct 8, 2018 – Oct 12, 2018 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): E1g9cV0-0008Sg-4U@optimist

Mark Brown

author maintainer
#1 lore raw

On Mon, Oct 08, 2018 at 09:51:30PM +0100, Build bot for Mark Brown wrote:

Today's -next fails to build an arm64 defconfig due to:

Quoted 2 lines

arm64-defconfig
../drivers/acpi/numa.c:34:23: fatal error: asm/kaslr.h: No such file or directory

caused by 3a387c6d96e69 (x86/kaslr, ACPI/NUMA: Fix KASLR build error)
which adds the inclusion unconditionally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181008/f0000753/attachment.sig>

#2 lore raw
Quoted 2 lines · Mark Brown

caused by 3a387c6d96e69 (x86/kaslr, ACPI/NUMA: Fix KASLR build error) which adds the inclusion unconditionally.

This should fix it:

---
 arch/x86/include/asm/kaslr.h | 2 --
 drivers/acpi/numa.c          | 4 +++-
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/include/asm/kaslr.h +0 -2
index 95ef3fc01d12..db7ba2feb947 100644
@@ -6,10 +6,8 @@ unsigned long kaslr_get_random_long(const char *purpose);
 
 #ifdef CONFIG_RANDOMIZE_MEMORY
 void kernel_randomize_memory(void);
-void kaslr_check_padding(void);
 #else
 static inline void kernel_randomize_memory(void) { }
-static inline void kaslr_check_padding(void) { }
 #endif /* CONFIG_RANDOMIZE_MEMORY */
 
 #endif
drivers/acpi/numa.c +3 -1
index 4408e37600ef..ba62004f4d86 100644
@@ -32,7 +32,6 @@
 #include <linux/numa.h>
 #include <linux/nodemask.h>
 #include <linux/topology.h>
-#include <asm/kaslr.h>
 
 static nodemask_t nodes_found_map = NODE_MASK_NONE;
 
@@ -433,6 +432,9 @@ acpi_table_parse_srat(enum acpi_srat_type id,
 					    handler, max_entries);
 }
 
+/* To be overridden by architectures */
+void __init __weak kaslr_check_padding(void) { }
+
 int __init acpi_numa_init(void)
 {
 	int cnt = 0;
Signature · 8 lines
2.19.0.271.gfe8321ec057f


-- 
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imend?rffer, Jane Smithard, Graham Norton, HRB 21284 (AG N?rnberg)
#3 lore raw

Hi Borislav,

Quoted 40 lines · On Mon, 8 Oct 2018 23:30:18 +0200 Borislav Petkov <[email protected]> wrote:
Quoted 2 lines · Mark Brown

caused by 3a387c6d96e69 (x86/kaslr, ACPI/NUMA: Fix KASLR build error) which adds the inclusion unconditionally.

This should fix it:

---
 arch/x86/include/asm/kaslr.h | 2 --
 drivers/acpi/numa.c          | 4 +++-
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/include/asm/kaslr.h +0 -2
index 95ef3fc01d12..db7ba2feb947 100644
@@ -6,10 +6,8 @@ unsigned long kaslr_get_random_long(const char *purpose);
 
 #ifdef CONFIG_RANDOMIZE_MEMORY
 void kernel_randomize_memory(void);
-void kaslr_check_padding(void);
 #else
 static inline void kernel_randomize_memory(void) { }
-static inline void kaslr_check_padding(void) { }
 #endif /* CONFIG_RANDOMIZE_MEMORY */
 
 #endif
drivers/acpi/numa.c +0 -1
index 4408e37600ef..ba62004f4d86 100644
@@ -32,7 +32,6 @@
 #include <linux/numa.h>
 #include <linux/nodemask.h>
 #include <linux/topology.h>
-#include <asm/kaslr.h>
 
 static nodemask_t nodes_found_map = NODE_MASK_NONE;
 

drivers/acpi/numa.c acpi_table_parse_srat(enum acpi_srat_type id, · line 440

Quoted 9 lines
drivers/acpi/numa.c +3 -0
@@ -433,6 +432,9 @@ acpi_table_parse_srat(enum acpi_srat_type id,
 					    handler, max_entries);
 }
 
+/* To be overridden by architectures */
+void __init __weak kaslr_check_padding(void) { }
+
 int __init acpi_numa_init(void)
 {
 	int cnt = 0;

I have added that to linux-next today (pending this or something else turning up in the tip tree).

Signature · 9 lines
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181010/db7f4bad/attachment-0001.sig>
#5 lore raw

Hi Boris,

Quoted 8 lines · On Wed, 10 Oct 2018 06:33:59 +0200 Borislav Petkov <[email protected]> wrote:
Quoted 2 lines · Stephen Rothwell

I have added that to linux-next today (pending this or something else turning up in the tip tree).

I have queued a fixed version in the meantime:

https://git.kernel.org/tip/9d94e8b1d4f94a3c4cee5ad11a1be460cd070839

OK, I will use that until it turns up in the tip auto-latest branch.

Signature · 9 lines
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181012/d6f35306/attachment.sig>
#6 lore raw

Hi Boris,

Quoted 4 lines · On Fri, 12 Oct 2018 10:37:58 +1100 Stephen Rothwell <[email protected]>…
Quoted 2 lines · On Wed, 10 Oct 2018 06:33:59 +0200 Borislav Petkov <[email protected]> wrote:

On Wed, Oct 10, 2018 at 03:27:04PM +1100, Stephen Rothwell wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I have added that to linux-next today (pending this or something else turning up in the tip tree).

I have queued a fixed version in the meantime:

https://git.kernel.org/tip/9d94e8b1d4f94a3c4cee5ad11a1be460cd070839

OK, I will use that until it turns up in the tip auto-latest branch.

It turns out that I can't use that since it is mostly already in the tip tree as commit

3a387c6d96e6 ("x86/kaslr, ACPI/NUMA: Fix KASLR build error")

So I will stick with my incremental patch for now.

Signature · 9 lines
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181012/2ee2a938/attachment.sig>
author maintainer
#7 lore raw
In reply to a message not in the archive

On Mon, Oct 08, 2018 at 09:51:30PM +0100, Build bot for Mark Brown wrote:

Today's -next fails to build an arm allmodconfig caused by:

Quoted 2 lines

arm-allmodconfig
../drivers/pci/pcie/aer_inject.c:444:6: error: 'struct pt_regs' has no member named 'ip'

introduced in e3fbcc7c4b130(PCI/AER: Covertly inject errors with ftrace
hooks). This field is not present on arm.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181008/1ecd49d3/attachment-0001.sig>

#8 lore raw
Quoted 9 lines · Mark Brown

On Mon, Oct 08, 2018 at 09:51:30PM +0100, Build bot for Mark Brown wrote:

Today's -next fails to build an arm allmodconfig caused by:

Quoted 2 lines

arm-allmodconfig
../drivers/pci/pcie/aer_inject.c:444:6: error: 'struct pt_regs' has no member named 'ip'

introduced in e3fbcc7c4b130(PCI/AER: Covertly inject errors with ftrace hooks). This field is not present on arm.

I dropped e3fbcc7c4b130 and related patches already, so this should be gone in my current "next" branch (18b4baa4d9fc).

author maintainer
#9 lore raw
Quoted 7 lines · Bjorn Helgaas
Quoted 2 lines · Mark Brown

introduced in e3fbcc7c4b130(PCI/AER: Covertly inject errors with ftrace hooks). This field is not present on arm.

I dropped e3fbcc7c4b130 and related patches already, so this should be gone in my current "next" branch (18b4baa4d9fc).

Great, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181008/457d0805/attachment.sig>