Patch: 2.3.25 on non-PCI host

Jan Kasprzak (kas@informatics.muni.cz)
Tue, 2 Nov 1999 10:26:01 +0100


Hello Martin,

it seems that 2.3.25 cannot be built without CONFIG_PCI and with
CONFIG_BLKDEV_IDE(I think). It is the missing const in pci.h:

--- linux/include/linux/pci.h.orig Tue Nov 2 10:18:51 1999
+++ linux/include/linux/pci.h Tue Nov 2 10:19:06 1999
@@ -530,8 +530,8 @@
extern inline void pci_set_master(struct pci_dev *dev) { }
extern inline int pci_enable_device(struct pci_dev *dev) { return 0; }

-extern inline int pci_simple_probe (struct pci_simple_probe_entry *list, size_t match_limit,
- pci_simple_probe_callback cb, void *drvr_data)
+extern inline int pci_simple_probe (const struct pci_simple_probe_entry *list,
+ size_t match_limit, pci_simple_probe_callback cb, void *drvr_data)
{ return 0; }

#endif /* !CONFIG_PCI */

-Yenya

-- 
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
/// I'd much prefer a sane architecture that doesn't continually try to  \\\
//  reinvent the bad idea of memory windows.   -Linus on Xeon 36-bit MM   \\

- 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/