Re: [PATCH v4 12/13] treewide: convert rdmsrq() from a macro to an inline function

From: K Prateek Nayak

Date: Mon Oct 12 2026 - 02:01:45 EST


Hello Juergen,

On 10/8/2026 12:48 PM, Juergen Gross wrote:
> Today rdmsrq() is a macro using its second parameter as the target for
> storing the read MSR value.
>
> Convert rdmsrq() to an inline function returning the MSR value.
>
> The users have been converted using the following semantic patch:
>
> // Options: --include-headers
>
> virtual patch
> virtual report
>
> @@
> expression msr, val;
> @@
> (
> - rdmsrq(msr,val)
> + val = rdmsrq(msr)
> )
>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> Acked-by: Damien Le Moal <dlemoal@xxxxxxxxxx> # ATA
> Reviewed-by: Michael Kelley <mhklinux@xxxxxxxxxxx> # Hyper-V
> Acked-by: Rafael J. Wysocki (Intel) <rafael@xxxxxxxxxx> # ACPI, cpufreq, powercap, thermal
> Acked-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> Acked-by: Reinette Chatre <reinette.chatre@xxxxxxxxx> # resctrl
> Reviewed-by: Zhongqiu Han <zhongqiu.han@xxxxxxxxxxxxxxxx> # cpufreq
> Acked-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx> # pdx86

Feel free to include:

Reviewed-by: K Prateek Nayak <kprateek.nayak@xxxxxxx> # amd-pstate
Tested-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>

--
Thanks and Regards,
Prateek