lkml.org 
[lkml]   [2000]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: pre2.3.41-4 fails compile (ide.c) i486 w/no pci

Alan I am working a way to prevent this from happening again.
This is the second IDE PCI issue that has bitten me.......
So I hunting to add stubs around the pci dependemces.

On Fri, 28 Jan 2000, Alan Cox wrote:

> > pre2.3.41-4 on i486 with no pci bus.
> >
> > gcc -D__KERNEL__ -I/usr/src/linux-2.3.41/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -DCPU=486 -m486 -DEXPORT_SYMTAB -c ide.c
> > In file included from ide.c:143:
> > /usr/src/linux-2.3.41/include/linux/pci.h:557: conflicting types for `pci_find_device'
> > /usr/src/linux-2.3.41/include/linux/pci.h:475: previous declaration of `pci_find_device'
>
> Someone forgot to update all of pci.h for const I think: try
>
>
> --- include/linux/pci.h~ Wed Jan 26 15:53:29 2000
> +++ include/linux/pci.h Fri Jan 28 11:41:41 2000
> @@ -548,17 +548,17 @@
> _PCI_NOP_ALL(read, *)
> _PCI_NOP_ALL(write,)
>
> -extern inline struct pci_dev *pci_find_device(unsigned int vendor, unsigned int device, struct pci_dev *from)
> +extern inline struct pci_dev *pci_find_device(unsigned int vendor, unsigned int device, const struct pci_dev *from)
> { return NULL; }
>
> -extern inline struct pci_dev *pci_find_class(unsigned int class, struct pci_dev *from)
> +extern inline struct pci_dev *pci_find_class(unsigned int class, const struct pci_dev *from)
> { return NULL; }
>
> extern inline struct pci_dev *pci_find_slot(unsigned int bus, unsigned int devfn)
> { return NULL; }
>
> extern inline struct pci_dev *pci_find_subsys(unsigned int vendor, unsigned int device,
> -unsigned int ss_vendor, unsigned int ss_device, struct pci_dev *from)
> +unsigned int ss_vendor, unsigned int ss_device, const struct pci_dev *from)
> { return NULL; }
>
> extern inline void pci_set_master(struct pci_dev *dev) { }
>
> -
> 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/
>

Andre Hedrick
The Linux ATA/IDE guy

THE USE OF EMAIL FOR THE TRANSMISSION OF UNSOLICITED COMMERCIAL
MATERIAL IS PROHIBITED UNDER FEDERAL LAW (47 USC 227). Violations may
result in civil penalties and claims of $500.00 PER OCCURRENCE
(47 USC 227[c]). Commercial spam WILL be forwarded to postmasters.



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

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.089 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site