Re: [PATCH v2 2/2] rdma: Autoload netlink client modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux