From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH for-next 5/7] IB/core: Add macros for declaring types and type groups Date: Wed, 11 Jan 2017 17:10:29 -0700 Message-ID: <20170112001029.GE31682@obsidianresearch.com> References: <1484132033-3346-1-git-send-email-matanb@mellanox.com> <1484132033-3346-6-git-send-email-matanb@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1484132033-3346-6-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Matan Barak Cc: Doug Ledford , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Yishai Hadas , Sean Hefty , Ira Weiny , Christoph Lameter , Majd Dibbiny , Tal Alon , Leon Romanovsky , Liran Liss , Haggai Eran List-Id: linux-rdma@vger.kernel.org On Wed, Jan 11, 2017 at 12:53:51PM +0200, Matan Barak wrote: > In order to initialize and destroy types in a generic way, we need to > provide information about the allocation size, release function and > order. This is done through a macro based DSL (domain specific > language). This patch adds macros to initialize a type and a type > group. > > When we transform the write based commands to use this new locking and > allocation schema, we use these types declarations. > > Signed-off-by: Matan Barak > Reviewed-by: Yishai Hadas > include/rdma/uverbs_ioctl.h | 50 +++++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 48 insertions(+), 2 deletions(-) None of this makes any sense to me at this point in the series. Just use a sane meta-class type and the 'usual' linux static const initializer scheme. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html