[PATCH] Little typo in isapnp.h

From: Rainer Keller (Rainer.Keller@studmail.uni-stuttgart.de)
Date: Tue Jan 11 2000 - 18:36:02 EST


Hi Y'all

The two macros isapnp_for_each_dev and isapnp_for_each_card were
undefined, when compiling with isapnp compiled as module.

There seems to be a bug in include/linux/isapnp.h in line 131.

Instead of

#if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) &&
defined(MODULE))

it should read:

#if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) &&
defined(CONFIG_MODULES))

and the two macros

#define isapnp_for_each_card(card) \
        for(card = pci_bus_b(isapnp_cards.next); card !=
pci_bus_b(&isapnp_cards); card = pci_bus_b(card->node.next))
#define isapnp_for_each_dev(dev) \
        for(dev = pci_dev_g(isapnp_devices.next); dev !=
pci_dev_g(&isapnp_devices); dev = pci_dev_g(dev->global_list.next))

should be defined to some empty code in the !CONFIG_ISAPNP-part in
isapnp.h?

Greetings Rainer

PS: CC me, cause I'm not subscribed to linux-kernel.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:19 EST