From 67b3b4d24524d576665f893bffd1ad722887644b Mon Sep 17 00:00:00 2001 From: Matt Macy Date: Wed, 13 Jun 2018 23:30:54 +0000 Subject: [PATCH] fix OFED build after r335053 --- sys/ofed/drivers/infiniband/core/ib_user_mad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/ofed/drivers/infiniband/core/ib_user_mad.c b/sys/ofed/drivers/infiniband/core/ib_user_mad.c index 68c53807cba1..2a3eb61a76b0 100644 --- a/sys/ofed/drivers/infiniband/core/ib_user_mad.c +++ b/sys/ofed/drivers/infiniband/core/ib_user_mad.c @@ -130,7 +130,8 @@ struct ib_umad_packet { static struct class *umad_class; -static const dev_t base_dev = MKDEV(IB_UMAD_MAJOR, IB_UMAD_MINOR_BASE); +#define IBMKDEV(x, y) (((dev_t)(x) << 32) | (unsigned)(y)) +static const dev_t base_dev = IBMKDEV(IB_UMAD_MAJOR, IB_UMAD_MINOR_BASE); static DEFINE_SPINLOCK(port_lock); static DECLARE_BITMAP(dev_map, IB_UMAD_MAX_PORTS);