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
Kconfig -rw-r--r-- 4.1 KB
Makefile -rw-r--r-- 426 bytes
dir.c -rw-r--r-- 30.8 KB
file.c -rw-r--r-- 6.4 KB
getopt.c -rw-r--r-- 1.8 KB
getopt.h -rw-r--r-- 367 bytes
inode.c -rw-r--r-- 27.3 KB
ioctl.c -rw-r--r-- 22.7 KB
mmap.c -rw-r--r-- 2.9 KB
ncp_fs.h -rw-r--r-- 2.8 KB
ncp_fs_i.h -rw-r--r-- 540 bytes
ncp_fs_sb.h -rw-r--r-- 5.0 KB
ncplib_kernel.c -rw-r--r-- 32.4 KB
ncplib_kernel.h -rw-r--r-- 7.7 KB
ncpsign_kernel.c -rw-r--r-- 3.6 KB
ncpsign_kernel.h -rw-r--r-- 700 bytes
sock.c -rw-r--r-- 22.5 KB
symlink.c -rw-r--r-- 4.2 KB

back to top