tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   796b40c6171456274b02447e1dbbea97456403fe
commit: 990672d48515ce09c76fcf1ceccee48b0dd1942b [42/60] crypto: ccp - Enable 
3DES function on v5 CCPs
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 990672d48515ce09c76fcf1ceccee48b0dd1942b
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/byteorder/big_endian.h:4:0,
                    from arch/arm64/include/uapi/asm/byteorder.h:20,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/arm64/include/asm/bitops.h:50,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from drivers/crypto/ccp/ccp-dev-v5.c:13:
   drivers/crypto/ccp/ccp-dev-v5.c: In function 'ccp5_perform_des3':
   include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer 
implicitly truncated to unsigned type [-Woverflow]
    #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                             ^
   include/linux/byteorder/generic.h:87:21: note: in expansion of macro 
'__cpu_to_le32'
    #define cpu_to_le32 __cpu_to_le32
                        ^~~~~~~~~~~~~
>> drivers/crypto/ccp/ccp-dev-v5.c:436:28: note: in expansion of macro 
>> 'cpu_to_le32'
     CCP5_CMD_KEY_MEM(&desc) = cpu_to_le32(CCP_MEMTYPE_SB);
                               ^~~~~~~~~~~

vim +/cpu_to_le32 +436 drivers/crypto/ccp/ccp-dev-v5.c

   420          CCP_DES3_MODE(&function) = op->u.des3.mode;
   421          CCP_DES3_TYPE(&function) = op->u.des3.type;
   422          CCP5_CMD_FUNCTION(&desc) = cpu_to_le32(function.raw);
   423  
   424          CCP5_CMD_LEN(&desc) = cpu_to_le32(op->src.u.dma.length);
   425  
   426          CCP5_CMD_SRC_LO(&desc) = 
cpu_to_le32(ccp_addr_lo(&op->src.u.dma));
   427          CCP5_CMD_SRC_HI(&desc) = 
cpu_to_le32(ccp_addr_hi(&op->src.u.dma));
   428          CCP5_CMD_SRC_MEM(&desc) = cpu_to_le32(CCP_MEMTYPE_SYSTEM);
   429  
   430          CCP5_CMD_DST_LO(&desc) = 
cpu_to_le32(ccp_addr_lo(&op->dst.u.dma));
   431          CCP5_CMD_DST_HI(&desc) = 
cpu_to_le32(ccp_addr_hi(&op->dst.u.dma));
   432          CCP5_CMD_DST_MEM(&desc) = cpu_to_le32(CCP_MEMTYPE_SYSTEM);
   433  
   434          CCP5_CMD_KEY_LO(&desc) = cpu_to_le32(lower_32_bits(key_addr));
   435          CCP5_CMD_KEY_HI(&desc) = 0;
 > 436          CCP5_CMD_KEY_MEM(&desc) = cpu_to_le32(CCP_MEMTYPE_SB);
   437          CCP5_CMD_LSB_ID(&desc) = cpu_to_le32(op->sb_ctx);
   438  
   439          return ccp5_do_cmd(&desc, op->cmd_q);
   440  }
   441  
   442  static int ccp5_perform_rsa(struct ccp_op *op)
   443  {
   444          struct ccp5_desc desc;

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

Attachment: .config.gz
Description: application/gzip

Reply via email to