From: Ingo Molnar <mingo@kernel.org>
To: Sasha Levin <sashal@kernel.org>
Cc: Mark Brown <broonie@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Jez Ng <jez@sfcompute.com>,
Ricardo Neri <ricardo.neri-calderon@linux.intel.com>,
Juergen Gross <jgross@suse.com>,
Daniel Lezcano <daniel.lezcano@kernel.org>,
x86@kernel.org, linux-pm@vger.kernel.org,
Linux Next Mailing List <linux-next@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: linux-next: semantic conflict between the pm and tip trees
Date: Wed, 25 Nov 2026 11:06:00 +0100 [thread overview]
Message-ID: <awazCCauTdRXg_-i@gmail.com> (raw)
In-Reply-To: <20261124145646.3655959-1-sashal@kernel.org>
* Sasha Levin <sashal@kernel.org> wrote:
> 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:
>
> diff --git a/drivers/thermal/intel/intel_hfi.c b/drivers/thermal/intel/intel_hfi.c
> --- a/drivers/thermal/intel/intel_hfi.c
> +++ b/drivers/thermal/intel/intel_hfi.c
> @@ -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;
LGTM, thank you!
Ingo
prev parent reply other threads:[~2026-11-25 10:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 14:56 linux-next: semantic conflict between the pm and tip trees Sasha Levin
2026-11-24 15:06 ` Jürgen Groß
2026-11-25 10:06 ` Ingo Molnar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awazCCauTdRXg_-i@gmail.com \
--to=mingo@kernel.org \
--cc=broonie@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=jez@sfcompute.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=ricardo.neri-calderon@linux.intel.com \
--cc=sashal@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox