Re: [PATCH vRFC 5/8] firmware: Convert minor inline function to macro

From: Greg KH
Date: Fri Feb 23 2024 - 01:22:26 EST


On Thu, Feb 22, 2024 at 11:30:30PM +0530, Mukesh Ojha wrote:
> Convert to_fw_priv() inline function to macro.

Why?

> No functional change.

You lost good error messages if you pass in the wrong pointer :(

There is a good reason to convert this type of function to a macro, but
you aren't using that here, so I'm not going to tell you why it would be
ok :)

thanks,

greg k-h