diff options
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index f6bf9b1308..70243dcb26 100644 --- a/include/common.h +++ b/include/common.h @@ -66,6 +66,17 @@ #endif /* + * __maybe_unused is equivalent to the Linux kernel definition, so we + * can follow the Kernel style guide more closely. + * + * An example use case is a function which is only used under certain + * CONFIG options. + */ +#ifndef __maybe_unused +#define __maybe_unused __attribute__((unused)) +#endif + +/* * externally_visible is required by GCC to avoid kicking out memset. */ #ifndef __visible |