Thread (5 messages) 5 messages, 3 authors, 3d ago

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

flat view

From: K Prateek Nayak <kprateek.nayak@amd.com>
Date: 2026-10-12 06:01:16
Also in: dri-devel, kvm, linux-acpi, linux-coco, linux-crypto, linux-edac, linux-gpio, linux-hwmon, linux-hyperv, linux-ide, linux-pci, linux-perf-users, linux-pm, lkml, platform-driver-x86, virtualization, xen-devel

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@suse.com>
Acked-by: Damien Le Moal <dlemoal@kernel.org>      # ATA
Reviewed-by: Michael Kelley <redacted> # Hyper-V
Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org> # ACPI, cpufreq, powercap, thermal
Acked-by: Sean Christopherson <seanjc@google.com>
Acked-by: Reinette Chatre <reinette.chatre@intel.com> # resctrl
Reviewed-by: Zhongqiu Han <redacted> # cpufreq
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>		# pdx86
Feel free to include:

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

-- 
Thanks and Regards,
Prateek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help