Skip to contentSkip to conversation

linux-next: build failure after merge of the kbuild tree

PATCH Stephen Rothwell 3 participants 3 messages Jul 5, 2019 – Jul 6, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the kbuild tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from <command-line>:
include/clocksource/hyperv_timer.h:18:10: fatal error: asm/mshyperv.h: No such file or directory

 #include <asm/mshyperv.h>
          ^~~~~~~~~~~~~~~~

Caused by commit

34085aeb5816 ("kbuild: compile-test kernel headers to ensure they are self-contained")

interacting with commit

dd2cb348613b ("clocksource/drivers: Continue making Hyper-V clocksource ISA agnostic")

from the tip tree.

I have added the following patch for today.

From: Stephen Rothwell <[email protected]>
Date: Fri, 5 Jul 2019 18:17:44 +1000
Subject: [PATCH] kbuild: only compile test clocksource/hyperv_timer.h on X86

---
 include/Kbuild | 1 +
 1 file changed, 1 insertion(+)
include/Kbuild +1 -0
index 4f9524d92a75..a7ab060552c2 100644
@@ -29,6 +29,7 @@ header-test-			+= acpi/platform/acintel.h
 header-test-			+= acpi/platform/aclinux.h
 header-test-			+= acpi/platform/aclinuxex.h
 header-test-			+= acpi/processor.h
+header-test-$(CONFIG_X86)	+= clocksource/hyperv_timer.h
 header-test-			+= clocksource/timer-sp804.h
 header-test-			+= crypto/cast_common.h
 header-test-			+= crypto/internal/cryptouser.h
Signature · 7 lines
2.20.1



-- 
Cheers,
Stephen Rothwell
#1 lore raw

From: Stephen Rothwell <[email protected]> Sent: Friday, July 5, 2019 1:31 AM

Quoted 12 lines

After merging the kbuild tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from <command-line>:
include/clocksource/hyperv_timer.h:18:10: fatal error: asm/mshyperv.h: No such file or directory

 #include <asm/mshyperv.h>
          ^~~~~~~~~~~~~~~~

Caused by commit

Quoted 8 lines

34085aeb5816 ("kbuild: compile-test kernel headers to ensure they are self-contained")

interacting with commit

dd2cb348613b ("clocksource/drivers: Continue making Hyper-V clocksource ISA agnostic")

from the tip tree.

Thomas -- let's remove my two clocksource patches from your 'tip' tree. I'll need a little time to fully understand the self-contained header requirements and restructure hyperv_timer.h to avoid this problem.

Michael

#2 lore raw

Hi Michael,

Quoted 18 lines · Michael Kelley

From: Stephen Rothwell <[email protected]> Sent: Friday, July 5, 2019 1:31 AM

Quoted 16 lines

After merging the kbuild tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from <command-line>:
include/clocksource/hyperv_timer.h:18:10: fatal error: asm/mshyperv.h: No such file or directory

 #include <asm/mshyperv.h>
          ^~~~~~~~~~~~~~~~

Caused by commit

34085aeb5816 ("kbuild: compile-test kernel headers to ensure they are self-contained")

interacting with commit

Quoted 8 lines
Quoted 4 lines

dd2cb348613b ("clocksource/drivers: Continue making Hyper-V clocksource ISA agnostic")

from the tip tree.

Thomas -- let's remove my two clocksource patches from your 'tip' tree. I'll need a little time to fully understand the self-contained header requirements and restructure hyperv_timer.h to avoid this problem.

I do not think you have to drop your patches.

Since <asm/mshyperv.h> only exists in x86, guarding it by CONFIG_X86 is OK.
So, I think Stephen's patch is OK as-is.

Perhaps, Kbuild is imposing too much burden, but I'd like to try it and see how it goes.

Signature · 2 lines
Best Regards
Masahiro Yamada