lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201607121255.xnz2kt1A%fengguang.wu@intel.com>
Date:	Tue, 12 Jul 2016 12:36:16 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Yeshaswi M R Gowda <yeshaswi@...lsio.com>
Cc:	kbuild-all@...org, hariprasad@...lsio.com, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org, herbert@...dor.apana.org.au,
	davem@...emloft.net, linux-crypto@...r.kernel.org,
	jlulla@...lsio.com, atul.gupta@...lsio.com, harsh@...lsio.com,
	Yeshaswi M R Gowda <yeshaswi@...lsio.com>
Subject: Re: [PATCH 3/3] crypto: Added Chelsio Menu to the Kconfig file

Hi,

[auto build test WARNING on net-next/master]
[also build test WARNING on v4.7-rc7 next-20160711]
[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/Yeshaswi-M-R-Gowda/crypto-chcr-Add-Chelsio-Crypto-Driver/20160712-023513
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   In file included from include/linux/swab.h:4:0,
                    from include/uapi/linux/byteorder/little_endian.h:12,
                    from include/linux/byteorder/little_endian.h:4,
                    from arch/sh/include/uapi/asm/byteorder.h:5,
                    from arch/sh/include/asm/bitops.h:11,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from drivers/crypto/chelsio/chcr_algo.c:42:
   drivers/crypto/chelsio/chcr_algo.c: In function 'create_wreq':
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:129:32: note: in definition of macro '__swab64'
     (__builtin_constant_p((__u64)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:23:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:24:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:25:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:26:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0x00000000ff000000ULL) <<  8) | \
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:27:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0x000000ff00000000ULL) >>  8) | \
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:28:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:29:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:30:12: note: in definition of macro '___constant_swab64'
     (((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56)))
               ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of macro '__swab64'
    #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
                                              ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     wreq->cookie = cpu_to_be64((u64)req);
                                ^
   include/uapi/linux/swab.h:131:12: note: in definition of macro '__swab64'
     __fswab64(x))
               ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro '__cpu_to_be64'
    #define cpu_to_be64 __cpu_to_be64
                        ^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 'cpu_to_be64'
     wreq->cookie = cpu_to_be64((u64)req);
                    ^
   drivers/crypto/chelsio/chcr_algo.c: In function 'chcr_register_alg':
   drivers/crypto/chelsio/chcr_algo.c:1471:48: warning: operation on 'driver_algs[i].alg.hash.halg.base.cra_init' may be undefined [-Wsequence-point]
        driver_algs[i].alg.hash.halg.base.cra_init =
                                                   ^

vim +/__swab64 +36 include/uapi/linux/byteorder/little_endian.h

5921e6f8 David Howells  2012-10-13  20  #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8 David Howells  2012-10-13  21  #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8 David Howells  2012-10-13  22  #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8 David Howells  2012-10-13  23  #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8 David Howells  2012-10-13  24  #define __constant_cpu_to_be64(x) ((__force __be64)___constant_swab64((x)))
5921e6f8 David Howells  2012-10-13  25  #define __constant_be64_to_cpu(x) ___constant_swab64((__force __u64)(__be64)(x))
5921e6f8 David Howells  2012-10-13  26  #define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x)))
5921e6f8 David Howells  2012-10-13  27  #define __constant_be32_to_cpu(x) ___constant_swab32((__force __u32)(__be32)(x))
5921e6f8 David Howells  2012-10-13  28  #define __constant_cpu_to_be16(x) ((__force __be16)___constant_swab16((x)))
5921e6f8 David Howells  2012-10-13  29  #define __constant_be16_to_cpu(x) ___constant_swab16((__force __u16)(__be16)(x))
5921e6f8 David Howells  2012-10-13  30  #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
5921e6f8 David Howells  2012-10-13  31  #define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
5921e6f8 David Howells  2012-10-13  32  #define __cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8 David Howells  2012-10-13  33  #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8 David Howells  2012-10-13  34  #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8 David Howells  2012-10-13  35  #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8 David Howells  2012-10-13 @36  #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
5921e6f8 David Howells  2012-10-13  37  #define __be64_to_cpu(x) __swab64((__force __u64)(__be64)(x))
5921e6f8 David Howells  2012-10-13  38  #define __cpu_to_be32(x) ((__force __be32)__swab32((x)))
5921e6f8 David Howells  2012-10-13  39  #define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x))
5921e6f8 David Howells  2012-10-13  40  #define __cpu_to_be16(x) ((__force __be16)__swab16((x)))
5921e6f8 David Howells  2012-10-13  41  #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
5921e6f8 David Howells  2012-10-13  42  
bc27fb68 Denys Vlasenko 2016-03-17  43  static __always_inline __le64 __cpu_to_le64p(const __u64 *p)
5921e6f8 David Howells  2012-10-13  44  {

:::::: The code at line 36 was first introduced by commit
:::::: 5921e6f8809b1616932ca4afd40fe449faa8fd88 UAPI: (Scripted) Disintegrate include/linux/byteorder

:::::: TO: David Howells <dhowells@...hat.com>
:::::: CC: David Howells <dhowells@...hat.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/octet-stream" (40314 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ