Commit e85132b2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] struct_cpy compilation warning

From: Ingo Molnar <mingo@elte.hu>

i've attached a minor fix for the 2.6.1 timeframe - we clearly meant
__struct_cpy_bug().  Newest versions of gcc warn about this.
parent 1cdf0eef
...@@ -291,7 +291,7 @@ extern void __struct_cpy_bug (void); ...@@ -291,7 +291,7 @@ extern void __struct_cpy_bug (void);
#define struct_cpy(x,y) \ #define struct_cpy(x,y) \
({ \ ({ \
if (sizeof(*(x)) != sizeof(*(y))) \ if (sizeof(*(x)) != sizeof(*(y))) \
__struct_cpy_bug; \ __struct_cpy_bug(); \
memcpy(x, y, sizeof(*(x))); \ memcpy(x, y, sizeof(*(x))); \
}) })
......
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