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

Jürgen Groß jgross at suse.com
Sat Sep 12 22:36:26 PDT 2026


On 11.09.26 11:37, Ilpo Järvinen wrote:
> On Fri, 11 Sep 2026, 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
> 
> Acked-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>		# pdx86
> 
> What is the plan for merging this?

Ingo wanted to take the whole series via the tip tree.


Juergen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xB0DE9DD628BF132F.asc
Type: application/pgp-keys
Size: 3683 bytes
Desc: OpenPGP public key
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20260913/b4e99533/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20260913/b4e99533/attachment.sig>


More information about the linux-mtd mailing list