]> git.hungrycats.org Git - linux/commitdiff
[PATCH] struct_cpy compilation warning
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:53:25 +0000 (05:53 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:53:25 +0000 (05:53 -0800)
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.

include/asm-i386/string.h

index 831082f2365e57fb0ceb98a61f2c55bd0ea8995f..daecfc479f3558e0a6500fbaa450768959fae462 100644 (file)
@@ -291,7 +291,7 @@ extern void __struct_cpy_bug (void);
 #define struct_cpy(x,y)                        \
 ({                                             \
        if (sizeof(*(x)) != sizeof(*(y)))       \
-               __struct_cpy_bug;               \
+               __struct_cpy_bug();             \
        memcpy(x, y, sizeof(*(x)));             \
 })