Message ID | 1490352343-20075-9-git-send-email-jinpu.wangl@profitbricks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Jack, [auto build test WARNING on linus/master] [also build test WARNING on v4.11-rc3 next-20170324] [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/Jack-Wang/INFINIBAND-NETWORK-BLOCK-DEVICE-IBNBD/20170325-101629 config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:329:0, from include/linux/kernel.h:13, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:47: drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'process_open_rsp': >> drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:859:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)sess->srv_rdma_addr[i], ^ include/linux/dynamic_debug.h:127:10: note: in definition of macro 'dynamic_pr_debug' ##__VA_ARGS__); \ ^~~~~~~~~~~ >> include/rdma/ibtrs_log.h:51:23: note: in expansion of macro 'pr_debug' #define DEB(fmt, ...) pr_debug("ibtrs L%d " fmt, __LINE__, ##__VA_ARGS__) ^~~~~~~~ >> drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:857:3: note: in expansion of macro 'DEB' DEB("Adding contiguous buffer %d, size %u, addr: 0x%p," ^~~ In file included from include/linux/kernel.h:13:0, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:47: drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'ibtrs_map_desc': >> include/rdma/ibtrs_log.h:51:32: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t {aka unsigned int}' [-Wformat=] #define DEB(fmt, ...) pr_debug("ibtrs L%d " fmt, __LINE__, ##__VA_ARGS__) ^ include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt' #define pr_fmt(fmt) fmt ^~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~ >> include/rdma/ibtrs_log.h:51:23: note: in expansion of macro 'pr_debug' #define DEB(fmt, ...) pr_debug("ibtrs L%d " fmt, __LINE__, ##__VA_ARGS__) ^~~~~~~~ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1106:2: note: in expansion of macro 'DEB' DEB("dma_addr %llu, key %u, dma_len %u\n", dma_addr, rkey, dma_len); ^~~ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'ibtrs_post_send_rdma': >> drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1440:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] addr + off, (u64)req->iu, imm, ^ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'ibtrs_post_send_rdma_desc': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1565:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] addr, (u64)req->iu, imm, ^ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'process_err_wc': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1882:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] iu = (struct ibtrs_iu *)wc->wr_id; ^ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'process_wcs': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1922:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] iu = (struct ibtrs_iu *)wc.wr_id; ^ -- In file included from include/linux/printk.h:6:0, from drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:48: drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_sess_open_resp': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/rdma/ibtrs_log.h:62:26: note: in expansion of macro 'pr_err' #define ERR_NP(fmt, ...) pr_err("ibtrs L%d ERR: " fmt, \ ^~~~~~ >> drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:59:3: note: in expansion of macro 'ERR_NP' ERR_NP("Session open resp msg received with unexpected length" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_rdma_write': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/rdma/ibtrs_log.h:62:26: note: in expansion of macro 'pr_err' #define ERR_NP(fmt, ...) pr_err("ibtrs L%d ERR: " fmt, \ ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:99:3: note: in expansion of macro 'ERR_NP' ERR_NP("RDMA-Write msg received with invalid length %d" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_req_rdma_write': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/rdma/ibtrs_log.h:62:26: note: in expansion of macro 'pr_err' #define ERR_NP(fmt, ...) pr_err("ibtrs L%d ERR: " fmt, \ ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:112:3: note: in expansion of macro 'ERR_NP' ERR_NP("Request-RDMA-Write msg request received with invalid" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_con_open': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/rdma/ibtrs_log.h:62:26: note: in expansion of macro 'pr_err' #define ERR_NP(fmt, ...) pr_err("ibtrs L%d ERR: " fmt, \ ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:125:3: note: in expansion of macro 'ERR_NP' ERR_NP("Con Open msg received with invalid length: %d" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_sess_open': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/rdma/ibtrs_log.h:62:26: note: in expansion of macro 'pr_err' #define ERR_NP(fmt, ...) pr_err("ibtrs L%d ERR: " fmt, \ ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:137:3: note: in expansion of macro 'ERR_NP' ERR_NP("Sess open msg received with invalid length: %d" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_sess_info': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/rdma/ibtrs_log.h:62:26: note: in expansion of macro 'pr_err' #define ERR_NP(fmt, ...) pr_err("ibtrs L%d ERR: " fmt, \ ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:153:3: note: in expansion of macro 'ERR_NP' ERR_NP("Error message received with invalid length: %d," ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_error': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/rdma/ibtrs_log.h:62:26: note: in expansion of macro 'pr_err' #define ERR_NP(fmt, ...) pr_err("ibtrs L%d ERR: " fmt, \ ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:164:3: note: in expansion of macro 'ERR_NP' ERR_NP("Error message received with invalid length: %d," ^~~~~~ -- In file included from include/linux/kernel.h:13:0, from include/linux/uio.h:12, from include/rdma/ibtrs.h:50, from drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c:47: drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c: In function 'ibtrs_heartbeat_warn': >> include/rdma/ibtrs_log.h:51:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'long long int' [-Wformat=] #define DEB(fmt, ...) pr_debug("ibtrs L%d " fmt, __LINE__, ##__VA_ARGS__) ^ include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt' #define pr_fmt(fmt) fmt ^~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~ >> include/rdma/ibtrs_log.h:51:23: note: in expansion of macro 'pr_debug' #define DEB(fmt, ...) pr_debug("ibtrs L%d " fmt, __LINE__, ##__VA_ARGS__) ^~~~~~~~ >> drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c:84:2: note: in expansion of macro 'DEB' DEB("last heartbeat message from %s was received %lu, %llums" ^~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c: In function 'ibtrs_heartbeat_timeout_is_expired': >> include/rdma/ibtrs_log.h:51:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'long long int' [-Wformat=] #define DEB(fmt, ...) pr_debug("ibtrs L%d " fmt, __LINE__, ##__VA_ARGS__) ^ include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt' #define pr_fmt(fmt) fmt ^~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~ >> include/rdma/ibtrs_log.h:51:23: note: in expansion of macro 'pr_debug' #define DEB(fmt, ...) pr_debug("ibtrs L%d " fmt, __LINE__, ##__VA_ARGS__) ^~~~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c:101:2: note: in expansion of macro 'DEB' DEB("last heartbeat message from %s received %lu, %llums ago\n", ^~~ vim +859 drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c 89b85024 Jack Wang 2017-03-24 851 return -ENOMEM; 89b85024 Jack Wang 2017-03-24 852 } 89b85024 Jack Wang 2017-03-24 853 } 89b85024 Jack Wang 2017-03-24 854 89b85024 Jack Wang 2017-03-24 855 for (i = 0; i < msg->cnt; i++) { 89b85024 Jack Wang 2017-03-24 856 sess->srv_rdma_addr[i] = msg->addr[i]; 89b85024 Jack Wang 2017-03-24 @857 DEB("Adding contiguous buffer %d, size %u, addr: 0x%p," 89b85024 Jack Wang 2017-03-24 858 " rkey: 0x%x\n", i, sess->chunk_size, 89b85024 Jack Wang 2017-03-24 @859 (void *)sess->srv_rdma_addr[i], 89b85024 Jack Wang 2017-03-24 860 sess->srv_rdma_buf_rkey); 89b85024 Jack Wang 2017-03-24 861 } 89b85024 Jack Wang 2017-03-24 862 :::::: The code at line 859 was first introduced by commit :::::: 89b85024b8ff15d239ba06be993378fe6a940693 ibtrs_clt: main functionality of ibtrs_client :::::: TO: Jack Wang <jinpu.wang@profitbricks.com> :::::: CC: 0day robot <fengguang.wu@intel.com> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Hi Jack, [auto build test WARNING on linus/master] [also build test WARNING on v4.11-rc3 next-20170324] [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/Jack-Wang/INFINIBAND-NETWORK-BLOCK-DEVICE-IBNBD/20170325-101629 config: i386-allyesconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'process_open_rsp': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:857:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] DEB("Adding contiguous buffer %d, size %u, addr: 0x%p," ^ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'ibtrs_map_desc': >> drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1106:24: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'dma_addr_t {aka unsigned int}' [-Wformat=] DEB("dma_addr %llu, key %u, dma_len %u\n", dma_addr, rkey, dma_len); ^~~~~~ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'ibtrs_post_send_rdma': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1440:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] addr + off, (u64)req->iu, imm, ^ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'ibtrs_post_send_rdma_desc': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1565:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] addr, (u64)req->iu, imm, ^ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'process_err_wc': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1882:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] iu = (struct ibtrs_iu *)wc->wr_id; ^ drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c: In function 'process_wcs': drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c:1922:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] iu = (struct ibtrs_iu *)wc.wr_id; ^ -- drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_sess_open_resp': >> drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:59:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] ERR_NP("Session open resp msg received with unexpected length" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_rdma_write': drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:99:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] ERR_NP("RDMA-Write msg received with invalid length %d" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_req_rdma_write': drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:112:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] ERR_NP("Request-RDMA-Write msg request received with invalid" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_con_open': drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:125:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] ERR_NP("Con Open msg received with invalid length: %d" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_sess_open': drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:137:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] ERR_NP("Sess open msg received with invalid length: %d" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_sess_info': drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:153:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] ERR_NP("Error message received with invalid length: %d," ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c: In function 'ibtrs_validate_msg_error': drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/ibtrs-proto.c:164:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] ERR_NP("Error message received with invalid length: %d," ^~~~~~ -- drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c: In function 'ibtrs_heartbeat_warn': >> drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c:84:24: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=] DEB("last heartbeat message from %s was received %lu, %llums" ^~~~~~ drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c: In function 'ibtrs_heartbeat_timeout_is_expired': drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.c:101:24: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=] DEB("last heartbeat message from %s received %lu, %llums ago\n", ^~~~~~ warning: __mcount_loc already exists: drivers/infiniband/ulp/ibtrs_client/../ibtrs_lib/heartbeat.o vim +1106 drivers/infiniband/ulp/ibtrs_client/ibtrs_clt.c 89b85024 Jack Wang 2017-03-24 1090 list_add(&desc[i]->entry, &pool->free_list); 89b85024 Jack Wang 2017-03-24 1091 spin_unlock_bh(&pool->lock); 89b85024 Jack Wang 2017-03-24 1092 } 89b85024 Jack Wang 2017-03-24 1093 89b85024 Jack Wang 2017-03-24 1094 static inline struct ibtrs_fr_pool *alloc_fr_pool(struct ibtrs_session *sess) 89b85024 Jack Wang 2017-03-24 1095 { 89b85024 Jack Wang 2017-03-24 1096 return ibtrs_create_fr_pool(sess->ib_device, sess->ib_sess.pd, 89b85024 Jack Wang 2017-03-24 1097 sess->queue_depth, 89b85024 Jack Wang 2017-03-24 1098 sess->max_pages_per_mr); 89b85024 Jack Wang 2017-03-24 1099 } 89b85024 Jack Wang 2017-03-24 1100 89b85024 Jack Wang 2017-03-24 1101 static void ibtrs_map_desc(struct ibtrs_map_state *state, dma_addr_t dma_addr, 89b85024 Jack Wang 2017-03-24 1102 u32 dma_len, u32 rkey, u32 max_desc) 89b85024 Jack Wang 2017-03-24 1103 { 89b85024 Jack Wang 2017-03-24 1104 struct ibtrs_sg_desc *desc = state->desc; 89b85024 Jack Wang 2017-03-24 1105 89b85024 Jack Wang 2017-03-24 @1106 DEB("dma_addr %llu, key %u, dma_len %u\n", dma_addr, rkey, dma_len); 89b85024 Jack Wang 2017-03-24 1107 desc->addr = dma_addr; 89b85024 Jack Wang 2017-03-24 1108 desc->key = rkey; 89b85024 Jack Wang 2017-03-24 1109 desc->len = dma_len; 89b85024 Jack Wang 2017-03-24 1110 89b85024 Jack Wang 2017-03-24 1111 state->total_len += dma_len; 89b85024 Jack Wang 2017-03-24 1112 if (state->ndesc < max_desc) { 89b85024 Jack Wang 2017-03-24 1113 state->desc++; 89b85024 Jack Wang 2017-03-24 1114 state->ndesc++; :::::: The code at line 1106 was first introduced by commit :::::: 89b85024b8ff15d239ba06be993378fe6a940693 ibtrs_clt: main functionality of ibtrs_client :::::: TO: Jack Wang <jinpu.wang@profitbricks.com> :::::: CC: 0day robot <fengguang.wu@intel.com> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index 66f8602..cb1b864 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -85,6 +85,8 @@ source "drivers/infiniband/ulp/srpt/Kconfig" source "drivers/infiniband/ulp/iser/Kconfig" source "drivers/infiniband/ulp/isert/Kconfig" +source "drivers/infiniband/ulp/ibtrs_client/Kconfig" + source "drivers/infiniband/sw/rdmavt/Kconfig" source "drivers/infiniband/sw/rxe/Kconfig" diff --git a/drivers/infiniband/ulp/Makefile b/drivers/infiniband/ulp/Makefile index f3c7dcf..acd8ce6 100644 --- a/drivers/infiniband/ulp/Makefile +++ b/drivers/infiniband/ulp/Makefile @@ -3,3 +3,4 @@ obj-$(CONFIG_INFINIBAND_SRP) += srp/ obj-$(CONFIG_INFINIBAND_SRPT) += srpt/ obj-$(CONFIG_INFINIBAND_ISER) += iser/ obj-$(CONFIG_INFINIBAND_ISERT) += isert/ +obj-$(CONFIG_INFINIBAND_IBTRS_CLT) += ibtrs_client/ diff --git a/drivers/infiniband/ulp/ibtrs_client/Kconfig b/drivers/infiniband/ulp/ibtrs_client/Kconfig new file mode 100644 index 0000000..3cf0728 --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs_client/Kconfig @@ -0,0 +1,8 @@ +config INFINIBAND_IBTRS_CLT + tristate "InfiniBand IBTRS CLIENT" + depends on INFINIBAND_ADDR_TRANS + ---help--- + Support for the simplified data transfer over InfiniBand. + This offer API to user module IBNBD_CLIENT + + The IBTRS protocol is defined by the ProfitBricks GmbH. diff --git a/drivers/infiniband/ulp/ibtrs_client/Makefile b/drivers/infiniband/ulp/ibtrs_client/Makefile new file mode 100644 index 0000000..d0fb226 --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs_client/Makefile @@ -0,0 +1,6 @@ + +obj-$(CONFIG_INFINIBAND_IBTRS_CLT) += ibtrs_client.o + +ibtrs_client-y := ibtrs_clt.o ibtrs_clt_sysfs.o \ + ../ibtrs_lib/ibtrs.o ../ibtrs_lib/ibtrs-proto.o ../ibtrs_lib/iu.o \ + ../ibtrs_lib/heartbeat.o ../ibtrs_lib/common.o