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-- | 2.5 KB |
Makefile | -rw-r--r-- | 480 bytes |
acl.c | -rw-r--r-- | 6.2 KB |
acl.h | -rw-r--r-- | 1.5 KB |
balloc.c | -rw-r--r-- | 25.5 KB |
bitmap.c | -rw-r--r-- | 2.8 KB |
block_validity.c | -rw-r--r-- | 6.1 KB |
dir.c | -rw-r--r-- | 15.6 KB |
ext4.h | -rw-r--r-- | 99.8 KB |
ext4_extents.h | -rw-r--r-- | 8.6 KB |
ext4_jbd2.c | -rw-r--r-- | 7.8 KB |
ext4_jbd2.h | -rw-r--r-- | 14.9 KB |
extents.c | -rw-r--r-- | 149.4 KB |
extents_status.c | -rw-r--r-- | 30.2 KB |
extents_status.h | -rw-r--r-- | 3.8 KB |
file.c | -rw-r--r-- | 15.3 KB |
fsync.c | -rw-r--r-- | 4.3 KB |
hash.c | -rw-r--r-- | 4.4 KB |
ialloc.c | -rw-r--r-- | 36.9 KB |
indirect.c | -rw-r--r-- | 44.5 KB |
inline.c | -rw-r--r-- | 48.8 KB |
inode.c | -rw-r--r-- | 147.6 KB |
ioctl.c | -rw-r--r-- | 16.7 KB |
mballoc.c | -rw-r--r-- | 143.5 KB |
mballoc.h | -rw-r--r-- | 5.3 KB |
migrate.c | -rw-r--r-- | 16.8 KB |
mmp.c | -rw-r--r-- | 10.0 KB |
move_extent.c | -rw-r--r-- | 44.0 KB |
namei.c | -rw-r--r-- | 91.6 KB |
page-io.c | -rw-r--r-- | 12.9 KB |
resize.c | -rw-r--r-- | 57.9 KB |
super.c | -rw-r--r-- | 158.2 KB |
symlink.c | -rw-r--r-- | 1.3 KB |
truncate.h | -rw-r--r-- | 1.2 KB |
xattr.c | -rw-r--r-- | 45.8 KB |
xattr.h | -rw-r--r-- | 4.4 KB |
xattr_security.c | -rw-r--r-- | 2.1 KB |
xattr_trusted.c | -rw-r--r-- | 1.5 KB |
xattr_user.c | -rw-r--r-- | 1.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...