]> granicus.if.org Git - zfs/commit
Fix compile warning on 32-bit systems
authorYing Zhu <casualfisher@gmail.com>
Sat, 15 Jun 2013 14:25:48 +0000 (22:25 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Jun 2013 00:11:55 +0000 (17:11 -0700)
commit6822a0d0582f580a21f70615f29ffe2869be8265
tree1394a5841cc982172ef8c1302fbc4644facfe158
parente51be06697762215dc3b679f8668987034a5a048
Fix compile warning on 32-bit systems

The definition of zfs_vdev_holder casts VDEV_HOLDER into a function pointer
passing to linux kernel's block layer function blkdev_get_by_path.
However current VDEV_HOLDER is defined to be wider than 32 bits and the compiler
warns about potential overflows. Instead of specifying different values for 32-bit and
64-bit systems using ifdefs, choose the common factor 32-bit addresses.
Redefine VDEV_HOLDER to 0x2401de7("zholder") here.

Signed-off-by: Ying Zhu <casualfisher@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1520
include/linux/blkdev_compat.h