https://github.com/torvalds/linux
Revision c4960cf01f70d86c6440ad5dd540d0c82381785d authored by Jean Delvare on 16 June 2014, 09:55:13 UTC, committed by Matthew Garrett on 16 August 2014, 08:23:49 UTC
When CONFIG_FUJITSU_LAPTOP_DEBUG is disabled and W=1, the
fujitsu-laptop driver builds with the following warnings:

drivers/platform/x86/fujitsu-laptop.c: In function "bl_update_status":
drivers/platform/x86/fujitsu-laptop.c:409:8: warning: suggest braces around empty body in an "if" statement [-Wempty-body]
    ret);
        ^
drivers/platform/x86/fujitsu-laptop.c:418:8: warning: suggest braces around empty body in an "if" statement [-Wempty-body]
    ret);
        ^

Rework the debug printk helper macro to get rid of these. I verified
that this change has no effect on the generated binary, both in the
debug and non-debug case.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Jonathan Woithe <jwoithe@just42.net>
Cc: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
1 parent bdc3ae7
History
Tip revision: c4960cf01f70d86c6440ad5dd540d0c82381785d authored by Jean Delvare on 16 June 2014, 09:55:13 UTC
fujitsu-laptop: Clear build warnings
Tip revision: c4960cf
File Mode Size
Makefile -rw-r--r-- 313 bytes
clnt4xdr.c -rw-r--r-- 13.1 KB
clntlock.c -rw-r--r-- 7.5 KB
clntproc.c -rw-r--r-- 20.9 KB
clntxdr.c -rw-r--r-- 13.4 KB
grace.c -rw-r--r-- 1.7 KB
host.c -rw-r--r-- 16.9 KB
mon.c -rw-r--r-- 14.7 KB
netns.h -rw-r--r-- 426 bytes
svc.c -rw-r--r-- 15.6 KB
svc4proc.c -rw-r--r-- 14.0 KB
svclock.c -rw-r--r-- 26.2 KB
svcproc.c -rw-r--r-- 14.8 KB
svcshare.c -rw-r--r-- 2.4 KB
svcsubs.c -rw-r--r-- 10.1 KB
xdr.c -rw-r--r-- 7.2 KB
xdr4.c -rw-r--r-- 7.3 KB

back to top