diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 13:10:29 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 15:07:19 +0100 |
commit | 6e4ae0db6ae7b5f84db3cf9f7569f650793ece4e (patch) | |
tree | 01ea5209107834175e620ca620294230d14fb0a3 | |
parent | 9f6fe7d9cb7f0af694cab339523b587b96555763 (diff) |
backports: add BUILD_BUG_ON_MSG
Add it without the message, since that's easier.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | backport/backport-include/linux/bug.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backport/backport-include/linux/bug.h b/backport/backport-include/linux/bug.h index d870afff..8595fd2b 100644 --- a/backport/backport-include/linux/bug.h +++ b/backport/backport-include/linux/bug.h @@ -11,4 +11,8 @@ #endif /* __CHECKER__ */ #endif /* __BUILD_BUG_ON_NOT_POWER_OF_2 */ +#ifndef BUILD_BUG_ON_MSG +#define BUILD_BUG_ON_MSG(x, msg) BUILD_BUG_ON(x) +#endif + #endif /* __BP_BUG_H */ |