Commit 995cdaa4 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Jeff Garzik

[PATCH] prism54: use BUILD_BUG_ON

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3b31dc32
...@@ -104,14 +104,14 @@ struct obj_attachment { ...@@ -104,14 +104,14 @@ struct obj_attachment {
static inline void static inline void
__bug_on_wrong_struct_sizes(void) __bug_on_wrong_struct_sizes(void)
{ {
BUG_ON(sizeof (struct obj_ssid) != 34); BUILD_BUG_ON(sizeof (struct obj_ssid) != 34);
BUG_ON(sizeof (struct obj_key) != 34); BUILD_BUG_ON(sizeof (struct obj_key) != 34);
BUG_ON(sizeof (struct obj_mlme) != 12); BUILD_BUG_ON(sizeof (struct obj_mlme) != 12);
BUG_ON(sizeof (struct obj_mlmeex) != 14); BUILD_BUG_ON(sizeof (struct obj_mlmeex) != 14);
BUG_ON(sizeof (struct obj_buffer) != 8); BUILD_BUG_ON(sizeof (struct obj_buffer) != 8);
BUG_ON(sizeof (struct obj_bss) != 60); BUILD_BUG_ON(sizeof (struct obj_bss) != 60);
BUG_ON(sizeof (struct obj_bsslist) != 4); BUILD_BUG_ON(sizeof (struct obj_bsslist) != 4);
BUG_ON(sizeof (struct obj_frequencies) != 2); BUILD_BUG_ON(sizeof (struct obj_frequencies) != 2);
} }
enum dot11_state_t { enum dot11_state_t {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment