summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/elf-em.h
diff options
context:
space:
mode:
authorArnd Bergmann2015-12-21 00:51:01 +0100
committerNeilBrown2016-01-06 01:39:48 +0100
commit3312c951efaba55080958974047414576b9e5d63 (patch)
tree762fd569f28f13dcba3065e4e438616963a2b359 /include/uapi/linux/elf-em.h
parentraid5-cache: free meta_page earlier (diff)
downloadkernel-qcow2-linux-3312c951efaba55080958974047414576b9e5d63.tar.gz
kernel-qcow2-linux-3312c951efaba55080958974047414576b9e5d63.tar.xz
kernel-qcow2-linux-3312c951efaba55080958974047414576b9e5d63.zip
md: avoid warning for 32-bit sector_t
When CONFIG_LBDAF is not set, sector_t is only 32-bits wide, which means we cannot have devices with more than 2TB, and the code that is trying to handle compatibility support for large devices in md version 0.90 is meaningless but also causes a compile-time warning: drivers/md/md.c: In function 'super_90_load': drivers/md/md.c:1029:19: warning: large integer implicitly truncated to unsigned type [-Woverflow] drivers/md/md.c: In function 'super_90_rdev_size_change': drivers/md/md.c:1323:17: warning: large integer implicitly truncated to unsigned type [-Woverflow] This adds a check for CONFIG_LBDAF to avoid even getting into this code path, and also adds an explicit cast to let the compiler know it doesn't have to warn about the truncation. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'include/uapi/linux/elf-em.h')
0 files changed, 0 insertions, 0 deletions