tree: https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git k.o/for-next head: d0d62c34fb746eaf68df5b3d6f4877c7d1e6320c commit: e89bf462b6bece63a60723af88c76dce9dbe6b85 [5/34] IB/hns: Support compile test for hns RoCE driver config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout e89bf462b6bece63a60723af88c76dce9dbe6b85 # save the attached .config to linux build tree make.cross ARCH=xtensa All errors (new ones prefixed by >>): In file included from drivers/infiniband/hw/hns/hns_roce_main.c:41:0: drivers/infiniband/hw/hns/hns_roce_device.h: In function 'hns_roce_write64_k': >> drivers/infiniband/hw/hns/hns_roce_device.h:625:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration] __raw_writeq(*(u64 *) val, dest); ^ cc1: some warnings being treated as errors -- In file included from drivers/infiniband/hw/hns/hns_roce_eq.c:35:0: drivers/infiniband/hw/hns/hns_roce_device.h: In function 'hns_roce_write64_k': >> drivers/infiniband/hw/hns/hns_roce_device.h:625:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration] __raw_writeq(*(u64 *) val, dest); ^ drivers/infiniband/hw/hns/hns_roce_eq.c: In function 'hns_roce_create_eq': drivers/infiniband/hw/hns/hns_roce_eq.c:568:2: warning: right shift count >= width of type roce_set_field(eqcuridx_val, ROCEE_CAEP_AEQE_CUR_IDX_CAEP_AEQ_BT_H_M, ^ cc1: some warnings being treated as errors -- In file included from drivers/infiniband/hw/hns/hns_roce_hw_v1.c:39:0: drivers/infiniband/hw/hns/hns_roce_device.h: In function 'hns_roce_write64_k': >> drivers/infiniband/hw/hns/hns_roce_device.h:625:2: error: implicit declaration of function '__raw_writeq' [-Werror=implicit-function-declaration] __raw_writeq(*(u64 *) val, dest); ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_set_sdb_ext': drivers/infiniband/hw/hns/hns_roce_hw_v1.c:496:2: warning: right shift count >= width of type roce_set_field(val, ROCEE_EXT_DB_SQ_H_EXT_DB_SQ_BA_H_M, ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_v1_send_lp_wqe': drivers/infiniband/hw/hns/hns_roce_hw_v1.c:951:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] send_wr.wr_id = (unsigned long long)&send_wr; ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_raq_init': drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1164:2: warning: right shift count >= width of type roce_set_field(val, ROCEE_EXT_RAQ_H_EXT_RAQ_BA_H_M, ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_v1_write_mtpt': drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1834:2: warning: right shift count >= width of type roce_set_field(mpt_entry->mpt_byte_12, MPT_BYTE_12_PBL_ADDR_H_M, ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_v1_write_cqc': drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1994:2: warning: right shift count >= width of type roce_set_field(cq_context->cqc_byte_20, ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_v1_m_sqp': drivers/infiniband/hw/hns/hns_roce_hw_v1.c:2472:3: warning: right shift count >= width of type roce_set_field(context->qp1c_bytes_12, ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_v1_m_qp': drivers/infiniband/hw/hns/hns_roce_hw_v1.c:2760:3: warning: right shift count >= width of type roce_set_field(context->qpc_bytes_24, ^ drivers/infiniband/hw/hns/hns_roce_hw_v1.c:2772:3: warning: right shift count >= width of type roce_set_field(context->qpc_bytes_32, ^ cc1: some warnings being treated as errors vim +/__raw_writeq +625 drivers/infiniband/hw/hns/hns_roce_device.h 9a443537 oulijun 2016-07-21 622 9a443537 oulijun 2016-07-21 623 static inline void hns_roce_write64_k(__be32 val[2], void __iomem *dest) 9a443537 oulijun 2016-07-21 624 { 9a443537 oulijun 2016-07-21 @625 __raw_writeq(*(u64 *) val, dest); 9a443537 oulijun 2016-07-21 626 } 9a443537 oulijun 2016-07-21 627 :::::: The code at line 625 was first introduced by commit :::::: 9a4435375cd151e07c0c38fa601b00115986091b IB/hns: Add driver files for hns RoCE driver :::::: TO: oulijun <oulijun@xxxxxxxxxx> :::::: CC: Doug Ledford <dledford@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip