Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 07:55:10 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335123 - head/sys/ofed/drivers/infiniband/core
Message-ID:  <201806140755.w5E7tAQ3004567@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Jun 14 07:55:10 2018
New Revision: 335123
URL: https://svnweb.freebsd.org/changeset/base/335123

Log:
  Revert r335094 and properly fix OFED build after r335053.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/ofed/drivers/infiniband/core/ib_user_mad.c

Modified: head/sys/ofed/drivers/infiniband/core/ib_user_mad.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/core/ib_user_mad.c	Thu Jun 14 07:12:30 2018	(r335122)
+++ head/sys/ofed/drivers/infiniband/core/ib_user_mad.c	Thu Jun 14 07:55:10 2018	(r335123)
@@ -130,8 +130,7 @@ struct ib_umad_packet {
 
 static struct class *umad_class;
 
-#define IBMKDEV(x, y)  (((dev_t)(x) << 32) | (unsigned)(y))
-static const dev_t base_dev = IBMKDEV(IB_UMAD_MAJOR, IB_UMAD_MINOR_BASE);
+#define	base_dev MKDEV(IB_UMAD_MAJOR, IB_UMAD_MINOR_BASE)
 
 static DEFINE_SPINLOCK(port_lock);
 static DECLARE_BITMAP(dev_map, IB_UMAD_MAX_PORTS);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806140755.w5E7tAQ3004567>