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
Tip revision: c4960cf01f70d86c6440ad5dd540d0c82381785d authored by Jean Delvare on 16 June 2014, 09:55:13 UTC
fujitsu-laptop: Clear build warnings
fujitsu-laptop: Clear build warnings
Tip revision: c4960cf
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 5.7 KB |
LICENCE | -rw-r--r-- | 1.4 KB |
Makefile | -rw-r--r-- | 751 bytes |
README.Locking | -rw-r--r-- | 7.0 KB |
TODO | -rw-r--r-- | 1.9 KB |
acl.c | -rw-r--r-- | 6.8 KB |
acl.h | -rw-r--r-- | 929 bytes |
background.c | -rw-r--r-- | 4.3 KB |
build.c | -rw-r--r-- | 10.9 KB |
compr.c | -rw-r--r-- | 11.6 KB |
compr.h | -rw-r--r-- | 3.1 KB |
compr_lzo.c | -rw-r--r-- | 2.2 KB |
compr_rtime.c | -rw-r--r-- | 2.8 KB |
compr_rubin.c | -rw-r--r-- | 8.8 KB |
compr_zlib.c | -rw-r--r-- | 5.5 KB |
debug.c | -rw-r--r-- | 25.7 KB |
debug.h | -rw-r--r-- | 7.9 KB |
dir.c | -rw-r--r-- | 22.4 KB |
erase.c | -rw-r--r-- | 14.2 KB |
file.c | -rw-r--r-- | 9.4 KB |
fs.c | -rw-r--r-- | 20.0 KB |
gc.c | -rw-r--r-- | 42.9 KB |
ioctl.c | -rw-r--r-- | 557 bytes |
jffs2_fs_i.h | -rw-r--r-- | 1.6 KB |
jffs2_fs_sb.h | -rw-r--r-- | 5.8 KB |
malloc.c | -rw-r--r-- | 7.5 KB |
nodelist.c | -rw-r--r-- | 21.3 KB |
nodelist.h | -rw-r--r-- | 17.8 KB |
nodemgmt.c | -rw-r--r-- | 28.4 KB |
os-linux.h | -rw-r--r-- | 7.3 KB |
read.c | -rw-r--r-- | 6.7 KB |
readinode.c | -rw-r--r-- | 43.2 KB |
scan.c | -rw-r--r-- | 35.1 KB |
security.c | -rw-r--r-- | 2.3 KB |
summary.c | -rw-r--r-- | 23.6 KB |
summary.h | -rw-r--r-- | 6.3 KB |
super.c | -rw-r--r-- | 10.3 KB |
symlink.c | -rw-r--r-- | 1.8 KB |
wbuf.c | -rw-r--r-- | 37.4 KB |
write.c | -rw-r--r-- | 21.0 KB |
writev.c | -rw-r--r-- | 1.1 KB |
xattr.c | -rw-r--r-- | 38.2 KB |
xattr.h | -rw-r--r-- | 4.3 KB |
xattr_trusted.c | -rw-r--r-- | 1.4 KB |
xattr_user.c | -rw-r--r-- | 1.4 KB |
Computing file changes ...