[PATCH v4 12/13] treewide: convert rdmsrq() from a macro to an inline function
Yazen Ghannam
yazen.ghannam at amd.com
Thu Oct 15 13:25:45 PDT 2026
On Thu, Oct 08, 2026 at 09:18:38AM +0200, 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 at suse.com>
> Acked-by: Damien Le Moal <dlemoal at kernel.org> # ATA
> Reviewed-by: Michael Kelley <mhklinux at outlook.com> # Hyper-V
> Acked-by: Rafael J. Wysocki (Intel) <rafael at kernel.org> # ACPI, cpufreq, powercap, thermal
> Acked-by: Sean Christopherson <seanjc at google.com>
> Acked-by: Reinette Chatre <reinette.chatre at intel.com> # resctrl
> Reviewed-by: Zhongqiu Han <zhongqiu.han at oss.qualcomm.com> # cpufreq
> Acked-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com> # pdx86
> ---
Reviewed-by: Yazen Ghannam <yazen.ghannam at amd.com> # mce, amd64_edac
Thanks,
Yazen
More information about the linux-mtd
mailing list