[dm-devel] [dm:for-next 7/8] include/uapi/linux/byteorder/little_endian.h:32:42: warning: cast from pointer to integer of different size
kernel test robot
lkp at intel.com
Thu May 20 16:14:09 UTC 2021
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head: 68040817337fda98196974401391f2d1b9f87e49
commit: def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36 [7/8] dm space maps: improve performance with inc/dec on ranges of blocks
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?id=def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36
git remote add dm https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
git fetch --no-tags dm for-next
git checkout def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/byteorder/little_endian.h:5,
from arch/x86/include/uapi/asm/byteorder.h:5,
from include/asm-generic/bitops/le.h:7,
from arch/x86/include/asm/bitops.h:395,
from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/current.h:6,
from include/linux/sched.h:12,
from include/linux/blkdev.h:5,
from drivers/md/persistent-data/dm-block-manager.h:11,
from drivers/md/persistent-data/dm-btree.h:9,
from drivers/md/persistent-data/dm-array.h:9,
from drivers/md/persistent-data/dm-array.c:7:
drivers/md/persistent-data/dm-array.c: In function 'block_inc':
>> include/uapi/linux/byteorder/little_endian.h:32:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
32 | #define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
| ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^~~~~~~~~~~~~
drivers/md/persistent-data/dm-array.c:578:34: note: in expansion of macro 'le64_to_cpu'
578 | dm_tm_inc(info->btree_info.tm, le64_to_cpu(block_le));
| ^~~~~~~~~~~
vim +32 include/uapi/linux/byteorder/little_endian.h
5921e6f8809b161 David Howells 2012-10-13 14
5921e6f8809b161 David Howells 2012-10-13 15 #define __constant_htonl(x) ((__force __be32)___constant_swab32((x)))
5921e6f8809b161 David Howells 2012-10-13 16 #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x))
5921e6f8809b161 David Howells 2012-10-13 17 #define __constant_htons(x) ((__force __be16)___constant_swab16((x)))
5921e6f8809b161 David Howells 2012-10-13 18 #define __constant_ntohs(x) ___constant_swab16((__force __be16)(x))
5921e6f8809b161 David Howells 2012-10-13 19 #define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x))
5921e6f8809b161 David Howells 2012-10-13 20 #define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x))
5921e6f8809b161 David Howells 2012-10-13 21 #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8809b161 David Howells 2012-10-13 22 #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8809b161 David Howells 2012-10-13 23 #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8809b161 David Howells 2012-10-13 24 #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8809b161 David Howells 2012-10-13 25 #define __constant_cpu_to_be64(x) ((__force __be64)___constant_swab64((x)))
5921e6f8809b161 David Howells 2012-10-13 26 #define __constant_be64_to_cpu(x) ___constant_swab64((__force __u64)(__be64)(x))
5921e6f8809b161 David Howells 2012-10-13 27 #define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x)))
5921e6f8809b161 David Howells 2012-10-13 28 #define __constant_be32_to_cpu(x) ___constant_swab32((__force __u32)(__be32)(x))
5921e6f8809b161 David Howells 2012-10-13 29 #define __constant_cpu_to_be16(x) ((__force __be16)___constant_swab16((x)))
5921e6f8809b161 David Howells 2012-10-13 30 #define __constant_be16_to_cpu(x) ___constant_swab16((__force __u16)(__be16)(x))
5921e6f8809b161 David Howells 2012-10-13 31 #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
5921e6f8809b161 David Howells 2012-10-13 @32 #define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
5921e6f8809b161 David Howells 2012-10-13 33 #define __cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8809b161 David Howells 2012-10-13 34 #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8809b161 David Howells 2012-10-13 35 #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8809b161 David Howells 2012-10-13 36 #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8809b161 David Howells 2012-10-13 37 #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
5921e6f8809b161 David Howells 2012-10-13 38 #define __be64_to_cpu(x) __swab64((__force __u64)(__be64)(x))
5921e6f8809b161 David Howells 2012-10-13 39 #define __cpu_to_be32(x) ((__force __be32)__swab32((x)))
5921e6f8809b161 David Howells 2012-10-13 40 #define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x))
5921e6f8809b161 David Howells 2012-10-13 41 #define __cpu_to_be16(x) ((__force __be16)__swab16((x)))
5921e6f8809b161 David Howells 2012-10-13 42 #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
5921e6f8809b161 David Howells 2012-10-13 43
:::::: The code at line 32 was first introduced by commit
:::::: 5921e6f8809b1616932ca4afd40fe449faa8fd88 UAPI: (Scripted) Disintegrate include/linux/byteorder
:::::: TO: David Howells <dhowells at redhat.com>
:::::: CC: David Howells <dhowells at redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 65239 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20210521/02a1d6d9/attachment.gz>
More information about the dm-devel
mailing list