Re: [PATCH v2] staging: greybus: use inline function for macros

From: Deepak R Varma
Date: Thu Mar 23 2023 - 01:06:48 EST


On Thu, Mar 23, 2023 at 05:58:02AM +0100, Greg KH wrote:
> Nice, that shows that it is the same both ways as the compiler version
> you are using is smart enough
>
> Which compiler and version is this? Does it work the same for all of
> the supported versions we have to support (i.e. really old gcc?)
>
> For the most part, sysfs files are not on any sort of "fast path" so a

Hello,
Is there a guideline/documentation on how to identify if a code is part of
fast/slow path?

> function call is fine, but as I mentioned before, sometimes we are
> forced to move calls to container_of() to container_of_const() and that
> can not be an inline function, but must remain a macro :(
>
> thanks,
>
> greg k-h
>