diff options
author | Takashi Iwai <tiwai@suse.de> | 2025-06-26 07:59:33 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2025-06-26 07:59:33 +0200 |
commit | 346bd8a977fc559ef41099f727cdb0805f66bd10 (patch) | |
tree | ea2304801566b4a498957a5be469be8e0cc51686 /tools/include/linux/build_bug.h | |
parent | 5e9571750c4e53d16727a04159455c693d7b31cb (diff) | |
parent | 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e (diff) |
Merge tag 'asoc-fix-v6.16-rc3' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.16
A small collection of fixes, the main one being a fix for resume from
hibernation on AMD systems, plus a few new quirk entries for AMD
systems.
Diffstat (limited to 'tools/include/linux/build_bug.h')
-rw-r--r-- | tools/include/linux/build_bug.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/include/linux/build_bug.h b/tools/include/linux/build_bug.h index b4898ff085de..ab2aa97bd8ce 100644 --- a/tools/include/linux/build_bug.h +++ b/tools/include/linux/build_bug.h @@ -4,17 +4,17 @@ #include <linux/compiler.h> -#ifdef __CHECKER__ -#define BUILD_BUG_ON_ZERO(e) (0) -#else /* __CHECKER__ */ /* * Force a compilation error if condition is true, but also produce a * result (of value 0 and type int), so the expression can be used * e.g. in a structure initializer (or where-ever else comma expressions * aren't permitted). + * + * Take an error message as an optional second argument. If omitted, + * default to the stringification of the tested expression. */ -#define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) -#endif /* __CHECKER__ */ +#define BUILD_BUG_ON_ZERO(e, ...) \ + __BUILD_BUG_ON_ZERO_MSG(e, ##__VA_ARGS__, #e " is true") /* Force a compilation error if a constant expression is not a power of 2 */ #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) \ |