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-- 6.8 KB
Makefile -rw-r--r-- 756 bytes
block.c -rw-r--r-- 5.5 KB
cache.c -rw-r--r-- 11.6 KB
decompressor.c -rw-r--r-- 3.5 KB
decompressor.h -rw-r--r-- 1.8 KB
decompressor_multi.c -rw-r--r-- 4.6 KB
decompressor_multi_percpu.c -rw-r--r-- 2.3 KB
decompressor_single.c -rw-r--r-- 1.8 KB
dir.c -rw-r--r-- 5.9 KB
export.c -rw-r--r-- 4.6 KB
file.c -rw-r--r-- 14.1 KB
file_cache.c -rw-r--r-- 961 bytes
file_direct.c -rw-r--r-- 4.4 KB
fragment.c -rw-r--r-- 3.1 KB
id.c -rw-r--r-- 2.9 KB
inode.c -rw-r--r-- 12.4 KB
lzo_wrapper.c -rw-r--r-- 3.0 KB
namei.c -rw-r--r-- 7.5 KB
page_actor.c -rw-r--r-- 2.6 KB
page_actor.h -rw-r--r-- 2.0 KB
squashfs.h -rw-r--r-- 3.9 KB
squashfs_fs.h -rw-r--r-- 10.8 KB
squashfs_fs_i.h -rw-r--r-- 1.4 KB
squashfs_fs_sb.h -rw-r--r-- 2.1 KB
super.c -rw-r--r-- 13.8 KB
symlink.c -rw-r--r-- 3.8 KB
xattr.c -rw-r--r-- 8.4 KB
xattr.h -rw-r--r-- 1.6 KB
xattr_id.c -rw-r--r-- 2.7 KB
xz_wrapper.c -rw-r--r-- 4.3 KB
zlib_wrapper.c -rw-r--r-- 3.1 KB

back to top