Re: [PATCH V2 22/22] bnxt_re: Add bnxt_re driver build support
Hi Selvin, [auto build test ERROR on rdma/master] [also build test ERROR on v4.9-rc8 next-20161208] [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/Selvin-Xavier/Broadcom-RoCE-Driver-bnxt_re/20161209-154823 base: https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git master config: parisc-allyesconfig (attached as .config) compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 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=parisc All errors (new ones prefixed by >>): drivers/infiniband/hw/bnxtre/bnxt_qplib_rcfw.c: In function 'bnxt_qplib_creq_irq': >> drivers/infiniband/hw/bnxtre/bnxt_qplib_rcfw.c:359:2: error: implicit >> declaration of function 'prefetch' [-Werror=implicit-function-declaration] prefetch(_ptr[CREQ_PG(sw_cons)][CREQ_IDX(sw_cons)]); ^~~~ cc1: some warnings being treated as errors -- drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_service_nq': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:145:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] bnxt_qplib_arm_cq_enable((struct bnxt_qplib_cq *) ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:147:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (!nq->cqn_handler(nq, (struct bnxt_qplib_cq *) ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_nq_irq': >> drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:182:2: error: implicit >> declaration of function 'prefetch' [-Werror=implicit-function-declaration] prefetch(_ptr[NQE_PG(sw_cons)][NQE_IDX(sw_cons)]); ^~~~ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_create_qp': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:484:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] psn_search = (unsigned long long int) ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_destroy_qp': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1071:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] __clean_cq(qp->scq, (u64)qp); ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1073:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] __clean_cq(qp->rcq, (u64)qp); ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function '__flush_sq': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1630:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cqe->qp_handle = (u64)qp; ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function '__flush_rq': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1664:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cqe->qp_handle = (u64)qp; ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_cq_process_req': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1688:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] qp = (struct bnxt_qplib_qp *)le64_to_cpu(hwcqe->qp_handle); ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1720:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cqe->qp_handle = (u64)qp; ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_cq_process_res_rc': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1782:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] qp = (struct bnxt_qplib_qp *)le64_to_cpu(hwcqe->qp_handle); ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1794:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cqe->qp_handle = (u64)qp; ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_cq_process_res_ud': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1836:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] qp = (struct bnxt_qplib_qp *)le64_to_cpu(hwcqe->qp_handle); ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1847:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cqe->qp_handle = (u64)qp; ^ drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c: In function 'bnxt_qplib_cq_process_res_raweth_qp1': drivers/infiniband/hw/bnxtre/bnxt_qplib_fp.c:1893:7: warning: cast to
[PATCH V2 22/22] bnxt_re: Add bnxt_re driver build support
Makefile and Kconfig changes for enabling bnxt_re compilation Signed-off-by: Selvin Xavier--- drivers/infiniband/Kconfig| 2 ++ drivers/infiniband/hw/Makefile| 1 + drivers/infiniband/hw/bnxtre/Kconfig | 9 + drivers/infiniband/hw/bnxtre/Makefile | 6 ++ 4 files changed, 18 insertions(+) create mode 100644 drivers/infiniband/hw/bnxtre/Kconfig create mode 100644 drivers/infiniband/hw/bnxtre/Makefile diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index fb3fb89..a4fab22 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -91,4 +91,6 @@ source "drivers/infiniband/hw/hfi1/Kconfig" source "drivers/infiniband/hw/qedr/Kconfig" +source "drivers/infiniband/hw/bnxtre/Kconfig" + endif # INFINIBAND diff --git a/drivers/infiniband/hw/Makefile b/drivers/infiniband/hw/Makefile index e7a5ed9..7227b36 100644 --- a/drivers/infiniband/hw/Makefile +++ b/drivers/infiniband/hw/Makefile @@ -11,3 +11,4 @@ obj-$(CONFIG_INFINIBAND_USNIC)+= usnic/ obj-$(CONFIG_INFINIBAND_HFI1) += hfi1/ obj-$(CONFIG_INFINIBAND_HNS) += hns/ obj-$(CONFIG_INFINIBAND_QEDR) += qedr/ +obj-$(CONFIG_INFINIBAND_BNXTRE)+= bnxtre/ diff --git a/drivers/infiniband/hw/bnxtre/Kconfig b/drivers/infiniband/hw/bnxtre/Kconfig new file mode 100644 index 000..b1f153f --- /dev/null +++ b/drivers/infiniband/hw/bnxtre/Kconfig @@ -0,0 +1,9 @@ +config INFINIBAND_BNXTRE +tristate "Broadcom Netxtreme HCA support" +depends on ETHERNET && NETDEVICES && PCI && INET +select NET_VENDOR_BROADCOM +select BNXT +---help--- + This driver supports Broadcom NetXtreme-E 10/25/40/50 gigabit + RoCE HCAs. To compile this driver as a module, choose M here: + the module will be called bnxt_re. diff --git a/drivers/infiniband/hw/bnxtre/Makefile b/drivers/infiniband/hw/bnxtre/Makefile new file mode 100644 index 000..39df4f1 --- /dev/null +++ b/drivers/infiniband/hw/bnxtre/Makefile @@ -0,0 +1,6 @@ + +ccflags-y := -Idrivers/net/ethernet/broadcom/bnxt +obj-$(CONFIG_INFINIBAND_BNXTRE) += bnxt_re.o +bnxt_re-y := bnxt_re_main.o bnxt_re_ib_verbs.o bnxt_re_debugfs.o \ +bnxt_qplib_res.o bnxt_qplib_rcfw.o \ +bnxt_qplib_sp.o bnxt_qplib_fp.o -- 2.5.5