Module Name: src Committed By: riastradh Date: Sun Dec 19 11:14:27 UTC 2021
Modified Files: src/sys/external/bsd/common/include/linux: build_bug.h Log Message: stub BUILD_BUG_ON_ZERO, from openbsd. This is a dual purpose macro that asserts but can also be used in expressions. Provide the expression implementation. Author: Maya Rashish <m...@netbsd.org> Committer: Taylor R Campbell <riastr...@netbsd.org> To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/sys/external/bsd/common/include/linux/build_bug.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/common/include/linux/build_bug.h diff -u src/sys/external/bsd/common/include/linux/build_bug.h:1.2 src/sys/external/bsd/common/include/linux/build_bug.h:1.3 --- src/sys/external/bsd/common/include/linux/build_bug.h:1.2 Sun Dec 19 11:10:48 2021 +++ src/sys/external/bsd/common/include/linux/build_bug.h Sun Dec 19 11:14:26 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: build_bug.h,v 1.2 2021/12/19 11:10:48 riastradh Exp $ */ +/* $NetBSD: build_bug.h,v 1.3 2021/12/19 11:14:26 riastradh Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -41,5 +41,6 @@ #define BUILD_BUG() do {} while (0) #define BUILD_BUG_ON_MSG(EXPR,MSG) BUILD_BUG_ON(EXPR) #define BUILD_BUG_ON_INVALID(EXPR) ((void)sizeof((long)(EXPR))) +#define BUILD_BUG_ON_ZERO(EXPR) 0 #endif /* _LINUX_BUILD_BUG_H_ */