From e85132b27178b4a791e2f075bb298eaa1d9dfeba Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 29 Dec 2003 05:53:25 -0800 Subject: [PATCH] [PATCH] struct_cpy compilation warning From: Ingo Molnar 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-i386/string.h b/include/asm-i386/string.h index 831082f2365e5..daecfc479f355 100644 --- a/include/asm-i386/string.h +++ b/include/asm-i386/string.h @@ -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))); \ }) -- 2.53.0