lkml.org 
[lkml]   [2018]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] build_bug.h: remove all dummy BUILD_BUG_ON stubs for sparse
Hi Masahiro,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc2 next-20181116]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Masahiro-Yamada/build_bug-h-remove-negative-array-fallback-for-BUILD_BUG_ON/20181116-190414
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:260:39: warning: incorrect type in assignment (different base types)
drivers/crypto/chelsio/chcr_algo.c:260:39: expected unsigned int [unsigned] [usertype] <noident>
drivers/crypto/chelsio/chcr_algo.c:260:39: got restricted __be32 [usertype] <noident>
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
drivers/crypto/chelsio/chcr_algo.c:2747:65: warning: incorrect type in assignment (different base types)
drivers/crypto/chelsio/chcr_algo.c:2747:65: expected unsigned short [unsigned] [short] <noident>
drivers/crypto/chelsio/chcr_algo.c:2747:65: got restricted __be16 [usertype] <noident>
drivers/crypto/chelsio/chcr_algo.c:3014:46: warning: incorrect type in assignment (different base types)
drivers/crypto/chelsio/chcr_algo.c:3014:46: expected unsigned int [unsigned] <noident>
drivers/crypto/chelsio/chcr_algo.c:3014:46: got restricted __be32 [usertype] <noident>
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
drivers/crypto/mediatek/mtk-sha.c:251:17: warning: incorrect type in assignment (different base types)
drivers/crypto/mediatek/mtk-sha.c:251:17: expected unsigned long long [unsigned] [long] [long long] <noident>
drivers/crypto/mediatek/mtk-sha.c:251:17: got restricted __be64 [usertype] <noident>
drivers/crypto/mediatek/mtk-sha.c:252:17: warning: incorrect type in assignment (different base types)
drivers/crypto/mediatek/mtk-sha.c:252:17: expected unsigned long long [unsigned] [long] [long long] <noident>
drivers/crypto/mediatek/mtk-sha.c:252:17: got restricted __be64 [usertype] <noident>
include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
--
include/linux/slab.h:332:43: warning: dubious: x & !y
drivers/infiniband/hw/hns/hns_roce_ah.c:72:24: warning: incorrect type in assignment (different base types)
drivers/infiniband/hw/hns/hns_roce_ah.c:72:24: expected restricted __le32 [usertype] port_pd
drivers/infiniband/hw/hns/hns_roce_ah.c:72:24: got restricted __be32 [usertype] <noident>
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
--
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
..

vim +767 include/crypto/hash.h

974959863 Herbert Xu 2009-02-03 764
7b5a080b3 Herbert Xu 2008-08-31 765 static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg)
7b5a080b3 Herbert Xu 2008-08-31 766 {
7b5a080b3 Herbert Xu 2008-08-31 @767 return container_of(alg, struct shash_alg, base);
7b5a080b3 Herbert Xu 2008-08-31 768 }
7b5a080b3 Herbert Xu 2008-08-31 769

:::::: The code at line 767 was first introduced by commit
:::::: 7b5a080b3c46f0cac71c0d0262634c6517d4ee4f crypto: hash - Add shash interface

:::::: TO: Herbert Xu <herbert@gondor.apana.org.au>
:::::: CC: Herbert Xu <herbert@gondor.apana.org.au>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2018-11-17 11:54    [W:0.182 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site