diff options
-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 da8b4b73e2..937f9a64cd 100644 --- a/include/common.h +++ b/include/common.h @@ -68,6 +68,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 |