../drivers/infiniband/hw/ionic/ionic_datapath.c:898:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 898 | wqe->base.op = IONIC_OP(dev->rdma_version, SEND); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:901:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 901 | wqe->base.op = IONIC_OP(dev->rdma_version, SEND_IMM); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:905:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 905 | wqe->base.op = IONIC_OP(dev->rdma_version, SEND_INV); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:942:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 942 | wqe->base.op = IONIC_OP(dev->rdma_version, SEND); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:945:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 945 | wqe->base.op = IONIC_OP(dev->rdma_version, SEND_IMM); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:974:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 974 | wqe->base.op = IONIC_OP(dev->rdma_version, RDMA_READ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:979:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 979 | wqe->base.op = IONIC_OP(dev->rdma_version, RDMA_WRITE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:982:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 982 | wqe->base.op = IONIC_OP(dev->rdma_version, RDMA_WRITE_IMM); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:1019:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 1019 | wqe->base.op = IONIC_OP(dev->rdma_version, ATOMIC_CS); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:1027:18: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 1027 | wqe->base.op = IONIC_OP(dev->rdma_version, ATOMIC_FA); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:1062:17: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 1062 | wqe->base.op = IONIC_OP(dev->rdma_version, LOCAL_INV); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:1097:17: warning: conditional expression between different enumeration types ('enum ionic_v1_op' and 'enum ionic_v2_op') [-Wenum-compare-conditional] 1097 | wqe->base.op = IONIC_OP(dev->rdma_version, REG_MR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/ionic/ionic_datapath.c:13:17: note: expanded from macro 'IONIC_OP' 13 | ((version) < 2 ? IONIC_V1_OP_##opname : IONIC_V2_OP_##opname) | ^ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ 12 warnings generated. In file included from ../drivers/infiniband/hw/ionic/ionic_controlpath.c:4: In file included from ../include/linux/module.h:13: In file included from ../include/linux/stat.h:19: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:6: In file included from ../arch/x86/include/asm/cpuid/api.h:57: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:392: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated.