Skip to content
Commit d945b697 authored by David Woodhouse's avatar David Woodhouse Committed by David Woodhouse
Browse files

Automatic MODULE_ALIAS() for DMI match tables.



This makes modpost handle MODULE_DEVICE_TABLE(dmi, xxxx).

I had to change the string pointers in the match table to char arrays,
and picked a size of 79 bytes almost at random -- do we need to make it
bigger than that? I was a bit concerned about the 'bloat' this
introduces into the match tables, but they should all be __initdata so
it shouldn't matter too much.

(Actually, modpost does go through the relocations and look at most of
them; it wouldn't be impossible to make it handle string pointers -- but
doesn't seem to be worth the effort, since they're __initdata).

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 9d5a9e74
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment