Message ID | 1490352343-20075-14-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:6:0, from drivers/infiniband/ulp/ibtrs_server/../ibtrs_lib/ibtrs-proto.c:48: drivers/infiniband/ulp/ibtrs_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../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_server/../ibtrs_lib/ibtrs-proto.c:164:3: note: in expansion of macro 'ERR_NP' ERR_NP("Error message received with invalid length: %d," ^~~~~~ warning: __mcount_loc already exists: drivers/infiniband/ulp/ibtrs_server/../ibtrs_lib/ibtrs-proto.o -- 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_server/../ibtrs_lib/heartbeat.c:47: drivers/infiniband/ulp/ibtrs_server/../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_server/../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_server/../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_server/../ibtrs_lib/heartbeat.c:101:2: note: in expansion of macro 'DEB' DEB("last heartbeat message from %s received %lu, %llums ago\n", ^~~ -- drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c: In function 'ibtrs_srv_stats_rdma_to_str': >> drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:605:33: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'long long int' [-Wformat=] return scnprintf(page, len, "%ld %ld %ld %ld %u %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:605:37: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'long long int' [-Wformat=] return scnprintf(page, len, "%ld %ld %ld %ld %u %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:605:41: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long int' [-Wformat=] return scnprintf(page, len, "%ld %ld %ld %ld %u %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:605:45: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'long long int' [-Wformat=] return scnprintf(page, len, "%ld %ld %ld %ld %u %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:605:52: warning: format '%ld' expects argument of type 'long int', but argument 9 has type 'long long int' [-Wformat=] return scnprintf(page, len, "%ld %ld %ld %ld %u %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c: In function 'ibtrs_srv_stats_user_ib_msgs_to_str': drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:632:31: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'long long int' [-Wformat=] return snprintf(buf, len, "%ld %ld %ld %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:632:35: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'long long int' [-Wformat=] return snprintf(buf, len, "%ld %ld %ld %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:632:39: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long int' [-Wformat=] return snprintf(buf, len, "%ld %ld %ld %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:632:43: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'long long int' [-Wformat=] return snprintf(buf, len, "%ld %ld %ld %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c: In function 'ibtrs_srv_stats_wc_completion_to_str': drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:652:34: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'long long int' [-Wformat=] return snprintf(buf, len, "%d %ld %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:652:38: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long int' [-Wformat=] return snprintf(buf, len, "%d %ld %ld\n", ^ drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c: In function 'process_err_wc': >> drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:2065:7: 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 include/linux/kernel.h:13, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c:47: drivers/infiniband/ulp/ibtrs_server/ibtrs_srv.c: In function 'rdma_con_establish': 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_server/ibtrs_srv.c:2617:3: note: in expansion of macro 'ERR_NP' ERR_NP("Establishing connection failed, " ^~~~~~ include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 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_server/ibtrs_srv.c:2617:3: note: in expansion of macro 'ERR_NP' ERR_NP("Establishing connection failed, " ^~~~~~ vim +/ERR_NP +59 drivers/infiniband/ulp/ibtrs_server/../ibtrs_lib/ibtrs-proto.c f2a5844d Jack Wang 2017-03-24 43 * POSSIBILITY OF SUCH DAMAGES. f2a5844d Jack Wang 2017-03-24 44 * f2a5844d Jack Wang 2017-03-24 45 */ f2a5844d Jack Wang 2017-03-24 46 f2a5844d Jack Wang 2017-03-24 47 #include <linux/errno.h> f2a5844d Jack Wang 2017-03-24 48 #include <linux/printk.h> f2a5844d Jack Wang 2017-03-24 49 #include <rdma/ibtrs.h> f2a5844d Jack Wang 2017-03-24 50 #include <rdma/ibtrs_log.h> f2a5844d Jack Wang 2017-03-24 51 f2a5844d Jack Wang 2017-03-24 52 static int f2a5844d Jack Wang 2017-03-24 53 ibtrs_validate_msg_sess_open_resp(const struct ibtrs_msg_sess_open_resp *msg) f2a5844d Jack Wang 2017-03-24 54 { f2a5844d Jack Wang 2017-03-24 55 static const int min_bufs = 1; f2a5844d Jack Wang 2017-03-24 56 f2a5844d Jack Wang 2017-03-24 57 if (unlikely(msg->hdr.tsize != f2a5844d Jack Wang 2017-03-24 58 IBTRS_MSG_SESS_OPEN_RESP_LEN(msg->cnt))) { f2a5844d Jack Wang 2017-03-24 @59 ERR_NP("Session open resp msg received with unexpected length" f2a5844d Jack Wang 2017-03-24 60 " %dB instead of %luB\n", msg->hdr.tsize, f2a5844d Jack Wang 2017-03-24 61 IBTRS_MSG_SESS_OPEN_RESP_LEN(msg->cnt)); f2a5844d Jack Wang 2017-03-24 62 f2a5844d Jack Wang 2017-03-24 63 return -EINVAL; f2a5844d Jack Wang 2017-03-24 64 } f2a5844d Jack Wang 2017-03-24 65 f2a5844d Jack Wang 2017-03-24 66 if (msg->max_inflight_msg < min_bufs) { f2a5844d Jack Wang 2017-03-24 67 ERR_NP("Sess Open msg received with invalid max_inflight_msg %d" :::::: The code at line 59 was first introduced by commit :::::: f2a5844d27aa77dee51bee108f1654f9ca4a3ac6 ibtrs_lib: add common functions shared by client and server :::::: 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 ERROR on linus/master] [also build test ERROR 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: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-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 # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ib_con_destroy': >> common.c:(.text+0x81bc): multiple definition of `ib_con_destroy' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xcca8): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_malloc': >> common.c:(.text+0x8f0c): multiple definition of `ibtrs_malloc' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd9f8): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_write_empty_imm': >> common.c:(.text+0x7f34): multiple definition of `ibtrs_write_empty_imm' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xca20): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ib_post_rdma_write': >> common.c:(.text+0x8044): multiple definition of `ib_post_rdma_write' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xcb30): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `fill_ibtrs_msg_sess_open': >> common.c:(.text+0x86dc): multiple definition of `fill_ibtrs_msg_sess_open' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd1c8): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_addr_to_str': >> common.c:(.text+0x7e80): multiple definition of `ibtrs_addr_to_str' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xc96c): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_post_send': >> common.c:(.text+0x7f94): multiple definition of `ibtrs_post_send' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xca80): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_iu_put': >> common.c:(.text+0x87d8): multiple definition of `ibtrs_iu_put' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd2c4): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ib_session_init': >> common.c:(.text+0x80e0): multiple definition of `ib_session_init' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xcbcc): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `post_beacon': >> common.c:(.text+0x8244): multiple definition of `post_beacon' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xcd30): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_request_cq_notifications': >> common.c:(.text+0x8194): multiple definition of `ibtrs_request_cq_notifications' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xcc80): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_iu_get': >> common.c:(.text+0x8818): multiple definition of `ibtrs_iu_get' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd304): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_heartbeat_set_send_ts': >> common.c:(.text+0x8b30): multiple definition of `ibtrs_heartbeat_set_send_ts' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd61c): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_iu_free': >> common.c:(.text+0x8a60): multiple definition of `ibtrs_iu_free' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd54c): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_heartbeat_send_ts_diff_ms': >> common.c:(.text+0x8bf0): multiple definition of `ibtrs_heartbeat_send_ts_diff_ms' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd6dc): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ib_get_max_wr_queue_size': >> common.c:(.text+0x80c4): multiple definition of `ib_get_max_wr_queue_size' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xcbb0): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `fill_ibtrs_msg_con_open': >> common.c:(.text+0x8730): multiple definition of `fill_ibtrs_msg_con_open' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd21c): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_set_last_heartbeat': >> common.c:(.text+0x8b90): multiple definition of `ibtrs_set_last_heartbeat' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd67c): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_zalloc': >> common.c:(.text+0x8f44): multiple definition of `ibtrs_zalloc' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xda30): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ibtrs_heartbeat_warn': >> common.c:(.text+0x8c4c): multiple definition of `ibtrs_heartbeat_warn' drivers/infiniband/ulp/ibtrs_client/built-in.o:common.c:(.text+0xd738): first defined here drivers/infiniband/ulp/ibtrs_server/built-in.o: In function `ib_session_destroy': --- 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 cb1b864..07aa050 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -86,6 +86,7 @@ source "drivers/infiniband/ulp/iser/Kconfig" source "drivers/infiniband/ulp/isert/Kconfig" source "drivers/infiniband/ulp/ibtrs_client/Kconfig" +source "drivers/infiniband/ulp/ibtrs_server/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 acd8ce6..eb4da3f 100644 --- a/drivers/infiniband/ulp/Makefile +++ b/drivers/infiniband/ulp/Makefile @@ -4,3 +4,4 @@ obj-$(CONFIG_INFINIBAND_SRPT) += srpt/ obj-$(CONFIG_INFINIBAND_ISER) += iser/ obj-$(CONFIG_INFINIBAND_ISERT) += isert/ obj-$(CONFIG_INFINIBAND_IBTRS_CLT) += ibtrs_client/ +obj-$(CONFIG_INFINIBAND_IBTRS_SRV) += ibtrs_server/ diff --git a/drivers/infiniband/ulp/ibtrs_server/Kconfig b/drivers/infiniband/ulp/ibtrs_server/Kconfig new file mode 100644 index 0000000..6fbdc54 --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs_server/Kconfig @@ -0,0 +1,8 @@ +config INFINIBAND_IBTRS_SRV + tristate "InfiniBand IBTRS SERVER" + depends on INFINIBAND_ADDR_TRANS + ---help--- + Support for the simplified data transfer over InfiniBand. + This offer API to user module IBNBD_SERVER + + The IBTRS protocol is defined by the ProfitBricks GmbH. diff --git a/drivers/infiniband/ulp/ibtrs_server/Makefile b/drivers/infiniband/ulp/ibtrs_server/Makefile new file mode 100644 index 0000000..39d9e1d --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs_server/Makefile @@ -0,0 +1,6 @@ + +obj-$(CONFIG_INFINIBAND_IBTRS_SRV) += ibtrs_server.o + +ibtrs_server-y := ibtrs_srv.o ibtrs_srv_sysfs.o \ + ../ibtrs_lib/ibtrs.o ../ibtrs_lib/ibtrs-proto.o ../ibtrs_lib/iu.o \ + ../ibtrs_lib/heartbeat.o ../ibtrs_lib/common.o