Re: [PATCH] headers: don't depend on errno.h being available

2024-01-25 Thread Tom Rini
On Thu, Jan 18, 2024 at 07:10:47PM +0100, max.oss...@gmail.com wrote: > From: Max Krummenacher > > These headers follow the pattern: > > | #if CONFIG_IS_ENABLED(FANCY_FEATURE) > | void foo(void); > | #else > | static inline void foo(void) { return -ENOSYS; } > | #endif > > In the #else

Re: [PATCH] headers: don't depend on errno.h being available

2024-01-19 Thread Tom Rini
On Thu, Jan 18, 2024 at 07:10:47PM +0100, max.oss...@gmail.com wrote: > From: Max Krummenacher > > These headers follow the pattern: > > | #if CONFIG_IS_ENABLED(FANCY_FEATURE) > | void foo(void); > | #else > | static inline void foo(void) { return -ENOSYS; } > | #endif > > In the #else

Re: [PATCH] headers: don't depend on errno.h being available

2024-01-18 Thread Francesco Dolcini
On Thu, Jan 18, 2024 at 07:10:47PM +0100, max.oss...@gmail.com wrote: > From: Max Krummenacher > > These headers follow the pattern: > > | #if CONFIG_IS_ENABLED(FANCY_FEATURE) > | void foo(void); > | #else > | static inline void foo(void) { return -ENOSYS; } > | #endif > > In the #else

[PATCH] headers: don't depend on errno.h being available

2024-01-18 Thread max . oss . 09
From: Max Krummenacher These headers follow the pattern: | #if CONFIG_IS_ENABLED(FANCY_FEATURE) | void foo(void); | #else | static inline void foo(void) { return -ENOSYS; } | #endif In the #else path ENOSYS is used, however linux/errno.h is not included. If errno.h has not been included