From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH v2 2/2] rdma: Autoload netlink client modules Date: Tue, 15 Aug 2017 09:35:23 -0600 Message-ID: <20170815153523.GA14623@obsidianresearch.com> References: <1502744259-16966-1-git-send-email-jgunthorpe@obsidianresearch.com> <1502744259-16966-3-git-send-email-jgunthorpe@obsidianresearch.com> <20170815095651.GQ24282@mtr-leonro.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170815095651.GQ24282-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Doug Ledford List-Id: linux-rdma@vger.kernel.org On Tue, Aug 15, 2017 at 12:56:51PM +0300, Leon Romanovsky wrote: > Can it be something like that (untested)? > #define MODULE_ALIAS_RDMA_NETLINK(_index) No, MODULE_ALIAS does something like static const char __UNIQUE_ID(name)[] __used __attribute__((section(".modinfo"), unused, aligned(1))) = __stringify(tag) "=" info; So it must accept a string produced by the pre-processor, not by code. 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