Re: [PATCH v2 5/9] Allow efi_loader header to be included always

2021-07-28 Thread Tom Rini
On Fri, Jul 02, 2021 at 12:36:16PM -0600, Simon Glass wrote: > It is bad practice to put function declarations behind an #ifdef since > it makes it impossible to use IS_ENABLED() in the C code. The main reason > for doing this is when an empty static inline function is desired when > the feature i

[PATCH v2 5/9] Allow efi_loader header to be included always

2021-07-02 Thread Simon Glass
It is bad practice to put function declarations behind an #ifdef since it makes it impossible to use IS_ENABLED() in the C code. The main reason for doing this is when an empty static inline function is desired when the feature is disabled. To this end, this header provides two different versions