Skip to contentSkip to conversation

fdomain screwup

DISCUSSION Andrew Morton 1 participant 1 message Jun 22, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

- fdomain_setup() is marked __init, but is called from non-__init fdomain_16x0_detect()

- fdomain_setup() is declared in drivers/scsi/pcmcia/fdomain_stub.c as taking two arguments, but is implemented in fdomain_setup() taking a single argument.

Please, never ever ever put extern function declarations in .c files. Put it in a header file which is visible to the definition and to all callsites.

- fdomain_setup() is declared static, hence the linkage fails.

- fdomain_16x0_bus_reset() is implemented in drivers/scsi/fdomain.c but has static scope, so the call from drivers/scsi/pcmcia/fdomain_stub.c doesn't work.

- fdomain_16x0_bus_reset() has an extern declaration in drivers/scsi/pcmcia/fdomain_stub.c. This should be moved to a header file which is visible to etc...