On Tue, Jan 19, 2016 at 04:32:08PM +0000, Mark Brown wrote: > On Tue, Jan 19, 2016 at 03:11:44PM +0100, Johan Hovold wrote: > > On Tue, Jan 19, 2016 at 12:25:24PM +0000, Mark Brown wrote: > > > > This does seem like something that the modules code should be able to > > > cope with - we have a reference from the driver struct to the table > > > which you'd really expect it to be using. We already have some issues > > > there with userspace not handling multiple modaliases terribly well IIRC. > > > That reference is only used for matching, while the aliases are > > generated from the MODULE_DEVICE_TABLE macro (and elf magic). > > Sure, but there's no reason we can't change that.
Might take quite a bit of work to the modpost tools to achieve, though. Johan