Skip to contentSkip to conversation

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

PATCH Mark Brown 2 participants 3 messages Nov 24 – Nov 25

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this:

/tmp/next/build/drivers/thermal/intel/intel_hfi.c:407:38: error: too many arguments to function call, expected single argument 'msr', have 2 arguments

  407 |         rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG, msr_val);
      |         ~~~~~~                              ^~~~~~~

/tmp/next/build/arch/x86/include/asm/paravirt.h:153:28: note: 'rdmsrq' declared here
153 | static __always_inline u64 rdmsrq(u32 msr)
| ^ ~~~~~~~

Caused by commit

437ce3015e51c (thermal: intel: hfi: Disable HFI on shutdown and kexec)

from the pm tree interacting with

e7f9f17e00130 (treewide: Convert rdmsrq() from a macro to an inline function)

I have applied Sasha's fix below.

From eed7d9a619595e153de4f0faca0ff0186b8a4c1b Mon Sep 17 00:00:00 2001
From: Sasha Levin <[email protected]>
Date: Tue, 24 Nov 2026 09:56:46 -0500
Subject: [PATCH] linux-next: semantic conflict between the pm and tip trees

Hi Mark,

The current pm tree has a semantic conflict with the tip tree that breaks the x86 build:

drivers/thermal/intel/intel_hfi.c:407:38: error: too many arguments to function call, expected single argument 'msr', have 2 arguments

437ce3015e51 ("thermal: intel: hfi: Disable HFI on shutdown and kexec") in the pm tree uses rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG, msr_val), and e7f9f17e0013 ("treewide: Convert rdmsrq() from a macro to an inline function") in the tip tree makes rdmsrq() take only the MSR and return the value.

The fix for the merge:

---
 drivers/thermal/intel/intel_hfi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/intel/intel_hfi.c +1 -1
index e7657d2c4298f..b70f6f7263c5d 100644
@@ -404,7 +404,7 @@ static bool hfi_disable_if_enabled(void)
 {
 	u64 msr_val;
 
-	rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG, msr_val);
+	msr_val = rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG);
 	if (!(msr_val & HW_FEEDBACK_CONFIG_HFI_ENABLE_BIT))
 		return false;
 
Signature · 1 line
2.47.3
#1 lore raw
Quoted 14 lines · Mark Brown

Hi all,

After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this:

/tmp/next/build/drivers/thermal/intel/intel_hfi.c:407:38: error: too many arguments to function call, expected single argument 'msr', have 2 arguments

  407 |         rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG, msr_val);
      |         ~~~~~~                              ^~~~~~~

/tmp/next/build/arch/x86/include/asm/paravirt.h:153:28: note: 'rdmsrq' declared here
153 | static __always_inline u64 rdmsrq(u32 msr)
| ^ ~~~~~~~

Caused by commit

Quoted 7 lines

437ce3015e51c (thermal: intel: hfi: Disable HFI on shutdown and kexec)

from the pm tree interacting with

e7f9f17e00130 (treewide: Convert rdmsrq() from a macro to an inline function)

I have applied Sasha's fix below.

Sasha's fix looks good to me.

Technically this is not a 'build failure after the merge of the tip tree', but a 'manual merge of the tip tree with the pm tree', with the semantic conflict that went unnoticed, right?

Thanks,

Ingo

author maintainer
#2 lore raw
Quoted 3 lines · Ingo Molnar

Technically this is not a 'build failure after the merge of the tip tree', but a 'manual merge of the tip tree with the pm tree', with the semantic conflict that went unnoticed, right?

Not really, a build failure is something that breaks the build after doing a straight up git merge. Some of those are due to semantic conflicts like this one but they all come to my attention as build failures.