Thread (11 messages) flat view 11 messages, 6 authors, 6d ago

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

From: Reinette Chatre <reinette.chatre@intel.com>
Date: 2026-09-14 15:54:58
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

Hi Juergen,

On 9/11/26 12:45 AM, 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
---
...
 arch/x86/kernel/cpu/resctrl/core.c            |  2 +->  arch/x86/kernel/cpu/resctrl/monitor.c         |  4 +--
 arch/x86/kernel/cpu/resctrl/pseudo_lock.c     |  4 +--
 arch/x86/kernel/cpu/resctrl/rdtgroup.c        |  2 +-
Thank you.

Acked-by: Reinette Chatre <reinette.chatre@intel.com> # resctrl

Reinette
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help