Re: [RFC] change format of LSM hooks

From: Greg KH (greg@kroah.com)
Date: Wed Oct 16 2002 - 18:46:53 EST


On Wed, Oct 16, 2002 at 12:33:50PM -0400, joe perches wrote:
> On Wed, 2002-10-16 at 14:59, Greg KH wrote:
>
> I think something like:
>
> #define check_security(type,args...) security_##type(##args)
>
> would be cleaner and would prefer not collapsing the
>
> ret = check_security()
> if (ret)
>
> function use

No, I have to collapse the if and assign lines in order to take
advantage of the compiler when CONFIG_SERIAL=n. Then anything within
the if {} will just be compiled away if the return value of a static
inline function is 0.

As for using a macro, that doesn't really have any advantages over the
existing different functions.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:30 EST