diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-07 01:15:42 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-07 01:15:42 -0500 |
| commit | a2e5790d841658485d642196dbb0927303d6c22f (patch) | |
| tree | b3d28c9bcb7da6880806146fd22a88a7ee7f733e /include/linux/genl_magic_func.h | |
| parent | ab2d92ad881da11331280aedf612d82e61cb6d41 (diff) | |
| parent | 60c3e026d73ccabb075fb70ba02f8512ab40cf2c (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge misc updates from Andrew Morton:
- kasan updates
- procfs
- lib/bitmap updates
- other lib/ updates
- checkpatch tweaks
- rapidio
- ubsan
- pipe fixes and cleanups
- lots of other misc bits
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (114 commits)
Documentation/sysctl/user.txt: fix typo
MAINTAINERS: update ARM/QUALCOMM SUPPORT patterns
MAINTAINERS: update various PALM patterns
MAINTAINERS: update "ARM/OXNAS platform support" patterns
MAINTAINERS: update Cortina/Gemini patterns
MAINTAINERS: remove ARM/CLKDEV SUPPORT file pattern
MAINTAINERS: remove ANDROID ION pattern
mm: docs: add blank lines to silence sphinx "Unexpected indentation" errors
mm: docs: fix parameter names mismatch
mm: docs: fixup punctuation
pipe: read buffer limits atomically
pipe: simplify round_pipe_size()
pipe: reject F_SETPIPE_SZ with size over UINT_MAX
pipe: fix off-by-one error when checking buffer limits
pipe: actually allow root to exceed the pipe buffer limits
pipe, sysctl: remove pipe_proc_fn()
pipe, sysctl: drop 'min' parameter from pipe-max-size converter
kasan: rework Kconfig settings
crash_dump: is_kdump_kernel can be boolean
kernel/mutex: mutex_is_locked can be boolean
...
Diffstat (limited to 'include/linux/genl_magic_func.h')
| -rw-r--r-- | include/linux/genl_magic_func.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/linux/genl_magic_func.h b/include/linux/genl_magic_func.h index 604967609e55..83f81ac53282 100644 --- a/include/linux/genl_magic_func.h +++ b/include/linux/genl_magic_func.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #ifndef GENL_MAGIC_FUNC_H | 2 | #ifndef GENL_MAGIC_FUNC_H |
| 3 | #define GENL_MAGIC_FUNC_H | 3 | #define GENL_MAGIC_FUNC_H |
| 4 | 4 | ||
| 5 | #include <linux/build_bug.h> | ||
| 5 | #include <linux/genl_magic_struct.h> | 6 | #include <linux/genl_magic_struct.h> |
| 6 | 7 | ||
| 7 | /* | 8 | /* |
| @@ -132,17 +133,6 @@ static void dprint_array(const char *dir, int nla_type, | |||
| 132 | * use one static buffer for parsing of nested attributes */ | 133 | * use one static buffer for parsing of nested attributes */ |
| 133 | static struct nlattr *nested_attr_tb[128]; | 134 | static struct nlattr *nested_attr_tb[128]; |
| 134 | 135 | ||
| 135 | #ifndef BUILD_BUG_ON | ||
| 136 | /* Force a compilation error if condition is true */ | ||
| 137 | #define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition)) | ||
| 138 | /* Force a compilation error if condition is true, but also produce a | ||
| 139 | result (of value 0 and type size_t), so the expression can be used | ||
| 140 | e.g. in a structure initializer (or where-ever else comma expressions | ||
| 141 | aren't permitted). */ | ||
| 142 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) | ||
| 143 | #define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); })) | ||
| 144 | #endif | ||
| 145 | |||
| 146 | #undef GENL_struct | 136 | #undef GENL_struct |
| 147 | #define GENL_struct(tag_name, tag_number, s_name, s_fields) \ | 137 | #define GENL_struct(tag_name, tag_number, s_name, s_fields) \ |
| 148 | /* *_from_attrs functions are static, but potentially unused */ \ | 138 | /* *_from_attrs functions are static, but potentially unused */ \ |
