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
tests
Kconfig -rw-r--r-- 2.9 KB
Makefile -rw-r--r-- 880 bytes
acl.c -rw-r--r-- 3.7 KB
async-thread.c -rw-r--r-- 8.2 KB
async-thread.h -rw-r--r-- 1.7 KB
backref.c -rw-r--r-- 48.4 KB
backref.h -rw-r--r-- 2.6 KB
btrfs_inode.h -rw-r--r-- 7.5 KB
check-integrity.c -rw-r--r-- 99.8 KB
check-integrity.h -rw-r--r-- 1.3 KB
compression.c -rw-r--r-- 27.3 KB
compression.h -rw-r--r-- 2.7 KB
ctree.c -rw-r--r-- 152.4 KB
ctree.h -rw-r--r-- 132.4 KB
delayed-inode.c -rw-r--r-- 51.4 KB
delayed-inode.h -rw-r--r-- 4.8 KB
delayed-ref.c -rw-r--r-- 25.4 KB
delayed-ref.h -rw-r--r-- 7.7 KB
dev-replace.c -rw-r--r-- 28.8 KB
dev-replace.h -rw-r--r-- 1.8 KB
dir-item.c -rw-r--r-- 13.1 KB
disk-io.c -rw-r--r-- 113.4 KB
disk-io.h -rw-r--r-- 5.6 KB
export.c -rw-r--r-- 7.5 KB
export.h -rw-r--r-- 301 bytes
extent-tree.c -rw-r--r-- 247.6 KB
extent_io.c -rw-r--r-- 135.0 KB
extent_io.h -rw-r--r-- 13.1 KB
extent_map.c -rw-r--r-- 11.7 KB
extent_map.h -rw-r--r-- 2.4 KB
file-item.c -rw-r--r-- 26.2 KB
file.c -rw-r--r-- 71.1 KB
free-space-cache.c -rw-r--r-- 79.9 KB
free-space-cache.h -rw-r--r-- 4.5 KB
hash.c -rw-r--r-- 1.1 KB
hash.h -rw-r--r-- 1.2 KB
inode-item.c -rw-r--r-- 11.7 KB
inode-map.c -rw-r--r-- 14.0 KB
inode-map.h -rw-r--r-- 455 bytes
inode.c -rw-r--r-- 241.0 KB
ioctl.c -rw-r--r-- 129.2 KB
locking.c -rw-r--r-- 7.6 KB
locking.h -rw-r--r-- 2.0 KB
lzo.c -rw-r--r-- 9.9 KB
math.h -rw-r--r-- 1.1 KB
ordered-data.c -rw-r--r-- 32.6 KB
ordered-data.h -rw-r--r-- 6.7 KB
orphan.c -rw-r--r-- 1.7 KB
print-tree.c -rw-r--r-- 10.7 KB
print-tree.h -rw-r--r-- 906 bytes
props.c -rw-r--r-- 9.7 KB
props.h -rw-r--r-- 1.3 KB
qgroup.c -rw-r--r-- 66.5 KB
qgroup.h -rw-r--r-- 4.2 KB
raid56.c -rw-r--r-- 50.5 KB
raid56.h -rw-r--r-- 1.7 KB
rcu-string.h -rw-r--r-- 1.5 KB
reada.c -rw-r--r-- 24.6 KB
relocation.c -rw-r--r-- 109.3 KB
root-tree.c -rw-r--r-- 12.6 KB
scrub.c -rw-r--r-- 93.0 KB
send.c -rw-r--r-- 132.7 KB
send.h -rw-r--r-- 2.9 KB
struct-funcs.c -rw-r--r-- 4.5 KB
super.c -rw-r--r-- 52.1 KB
sysfs.c -rw-r--r-- 19.3 KB
sysfs.h -rw-r--r-- 2.5 KB
transaction.c -rw-r--r-- 55.0 KB
transaction.h -rw-r--r-- 5.8 KB
tree-defrag.c -rw-r--r-- 3.3 KB
tree-log.c -rw-r--r-- 115.7 KB
tree-log.h -rw-r--r-- 2.7 KB
ulist.c -rw-r--r-- 6.2 KB
ulist.h -rw-r--r-- 1.5 KB
uuid-tree.c -rw-r--r-- 8.1 KB
volumes.c -rw-r--r-- 163.9 KB
volumes.h -rw-r--r-- 11.6 KB
xattr.c -rw-r--r-- 11.5 KB
xattr.h -rw-r--r-- 1.5 KB
zlib.c -rw-r--r-- 10.4 KB

back to top