From: Andrew Morton Make this: drivers/char/ip2/ip2main.c: In function 'ip2_loadmain': drivers/char/ip2/ip2main.c:654: warning: control may reach end of non-void function 'iiSetAddress' being inlined drivers/char/ip2/ip2main.c:808: warning: control may reach end of non-void function 'iiInitialize' being inlined go away. Signed-off-by: Andrew Morton --- drivers/char/ip2/i2ellis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/char/ip2/i2ellis.h~ip2-warning-fix drivers/char/ip2/i2ellis.h --- a/drivers/char/ip2/i2ellis.h~ip2-warning-fix +++ a/drivers/char/ip2/i2ellis.h @@ -606,9 +606,9 @@ static int iiDownloadAll(i2eBordStrPtr, // code and returning. // #define COMPLETE(pB,code) \ - if(1){ \ + do { \ pB->i2eError = code; \ return (code == I2EE_GOOD);\ - } + } while (0) #endif // I2ELLIS_H _