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

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

From: sashiko-bot@kernel.org
Date: 2026-09-11 07:57:58
Also in: dri-devel, kvm, linux-hwmon, linux-ide, linux-pci, linux-perf-users, virtualization

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>
Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260911074530.3140830-1-jgross@suse.com?part=12
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help