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

From
Jürgen Groß <jgross@suse.com>
Date
2026-09-13 05:36:33
Also in
dri-devel, kvm, linux-acpi, linux-coco, linux-crypto, linux-edac, linux-fbdev, linux-gpio, linux-hwmon, linux-ide, linux-pci, linux-perf-users, linux-pm, lkml, platform-driver-x86, virtualization, xen-devel
Reply to
Ilpo Järvinen, 2026-09-11
On 11.09.26 11:37, Ilpo Järvinen wrote:
On Fri, 11 Sep 2026, Juergen Gross wrote:
quoted
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@suse.com>
Acked-by: Damien Le Moal <dlemoal@kernel.org>      # ATA
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>		# pdx86

What is the plan for merging this?
Ingo wanted to take the whole series via the tip tree.


Juergen

Attachments

Thread (13 messages) 13 messages, 7 authors, last reply 2026-09-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help