Discussion:
0003-module-remove-MODULE_GENERIC_TABLE.patch
Rusty Russell
2014-10-20 00:28:17 UTC
Permalink
Hi Rusty,
I=E2=80=99ve just been looking at a change that this patch says you i=
https://github.com/jumpstarter-io/pkgbuilds/blob/master/linux/0003-mo=
dule-remove-MODULE_GENERIC_TABLE.patch
chroot:# nm kernel/drivers/scsi/vmw_pvscsi.ko | grep _device_tabl=
e
000000e0 R __mod_pci_device_table
chroot:# nm kernel/drivers/scsi/vmw_pvscsi.ko | grep _device_tabl=
e
000000e0 R __mod_pci__pvscsi_pci_tbl_device_table
This results in depmod from module-init-tools not being able to find =
the __mod_pci_device_table.
This leads to modules.pcimap being generated with no entries, which b=
reaks anything that uses modules.pcimap to decide if it should insert a=
module or not.
Was this unintentional, or is there another way to successfully gener=
ate modules.pcimap?
See https://github.com/vadmium/module-init-tools/blob/master/elfops_c=
ore.c#L351 for details of depmods expectations.

Hi Barry,

Not intentional at all! You're the first to report this though=
:
are you still using the (deprecated) modules.pcimap? The *map files ar=
e
not supported by kmod, and were only inserted as a nod to the older
modutils.

Because it's really hard to fix: we now allow multiple tables, so the
names are now unique.

commit cff26a51da5d206d3baf871e75778da44710219d is the one that broke
this, but commit 21bdd17b21b45ea48e06e23918d681afbe0622e9 relies on it:

commit 21bdd17b21b45ea48e06e23918d681afbe0622e9
Author: Tom Gundersen <***@jklm.no>
Date: Mon Feb 3 11:14:13 2014 +1030

module: allow multiple calls to MODULE_DEVICE_TABLE() per module
=20
Commit 78551277e4df5: "Input: i8042 - add PNP modaliases" had a bug=
, where the
second call to MODULE_DEVICE_TABLE() overrode the first resulting i=
n not all
the modaliases being exposed.
=20
This fixes the problem by including the name of the device_id table=
in the
__mod_*_device_table alias, allowing us to export several device_id=
tables
per module.
=20
Suggested-by: Kay Sievers <***@vrfy.org>
Acked-by: Greg Kroah-Hartman <***@linuxfoundation.org>
Cc: Dmitry Torokhov <***@gmail.com>
Signed-off-by: Tom Gundersen <***@jklm.no>
Signed-off-by: Rusty Russell <***@rustcorp.com.au>

Loading...