From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> These functions are never called. Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> --- libibnetdisc/src/chassis.c | 5 ----- src/smpdump.c | 35 ----------------------------------- 2 files changed, 40 deletions(-) diff --git a/libibnetdisc/src/chassis.c b/libibnetdisc/src/chassis.c index 5726f8e32b4625..b0d272de9c5a29 100644 --- a/libibnetdisc/src/chassis.c +++ b/libibnetdisc/src/chassis.c @@ -354,11 +354,6 @@ static int is_line(ibnd_node_t * n) is_line_2024(n) || is_line_4700(n)); } -int is_chassis_switch(ibnd_node_t * n) -{ - return (is_spine(n) || is_line(n)); -} - /* these structs help find Line (Anafa) slot number while using spine portnum */ char line_slot_2_sfb4[37] = { 0, diff --git a/src/smpdump.c b/src/smpdump.c index 8b1a1eeb4996e5..e3f541085be31b 100644 --- a/src/smpdump.c +++ b/src/smpdump.c @@ -123,41 +123,6 @@ void smp_get_init(void *umad, int lid, int attr, int mod) umad_set_addr(umad, lid, 0, 0, 0); } -void drsmp_set_init(void *umad, DRPath * path, int attr, int mod, void *data) -{ - struct drsmp *smp = (struct drsmp *)(umad_get_mad(umad)); - - memset(smp, 0, sizeof(*smp)); - - smp->method = 2; /* SET */ - smp->attr_id = (uint16_t) htons((uint16_t) attr); - smp->attr_mod = htonl(mod); - smp->tid = htobe64(drmad_tid++); - smp->dr_slid = 0xffff; - smp->dr_dlid = 0xffff; - - umad_set_addr(umad, 0xffff, 0, 0, 0); - - if (path) - memcpy(smp->initial_path, path->path, path->hop_cnt + 1); - - if (data) - memcpy(smp->data, data, sizeof smp->data); - - smp->hop_cnt = (uint8_t) path->hop_cnt; -} - -char *drmad_status_str(struct drsmp *drsmp) -{ - switch (drsmp->status) { - case 0: - return "success"; - case ETIMEDOUT: - return "timeout"; - } - return "unknown error"; -} - int str2DRPath(char *str, DRPath * path) { char *s; -- 2.21.0