You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] smc ethernet: fix section mismatch warnings
Priority: not critical; makes init code discardable. Removes one duplicate assignment. Fix section mismatch warnings: WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x369) and 'cleanup_card' WARNING: drivers/net/smc-ultra32.o - Section mismatch: reference to .init.text:ultra32_probe from .text between 'init_module' (at offset 0x254) and 'cleanup_module' WARNING: drivers/net/smc9194.o - Section mismatch: reference to .init.text:smc_init from .text between 'init_module' (at offset 0x997) and 'cleanup_module' WARNING: drivers/net/smc9194.o - Section mismatch: reference to .init.data: from .data between 'smcdev.0' (at offset 0x44) and '__param_str_io' Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
29f9f6d234
commit
a2bd2ec8d1
@@ -732,12 +732,9 @@ static int ifport;
|
||||
struct net_device * __init smc_init(int unit)
|
||||
{
|
||||
struct net_device *dev = alloc_etherdev(sizeof(struct smc_local));
|
||||
static struct devlist *smcdev = smc_devlist;
|
||||
struct devlist *smcdev = smc_devlist;
|
||||
int err = 0;
|
||||
|
||||
#ifndef NO_AUTOPROBE
|
||||
smcdev = smc_devlist;
|
||||
#endif
|
||||
if (!dev)
|
||||
return ERR_PTR(-ENODEV);
|
||||
|
||||
@@ -1607,7 +1604,7 @@ MODULE_PARM_DESC(io, "SMC 99194 I/O base address");
|
||||
MODULE_PARM_DESC(irq, "SMC 99194 IRQ number");
|
||||
MODULE_PARM_DESC(ifport, "SMC 99194 interface port (0-default, 1-TP, 2-AUI)");
|
||||
|
||||
int init_module(void)
|
||||
int __init init_module(void)
|
||||
{
|
||||
if (io == 0)
|
||||
printk(KERN_WARNING
|
||||
|
||||
Reference in New Issue
Block a user