linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.5.75: parse error in pci.h if !CONFIG_PCI
@ 2003-07-13 10:27 Adrian Bunk
  2003-07-14  6:07 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2003-07-13 10:27 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel

I got the following compile error when trying to compile 2.5.75 with 
!CONFIG_PCI:

<--  snip  -->

...
  CC      drivers/message/fusion/mptscsih.o
In file included from drivers/message/fusion/linux_compat.h:10,
                 from drivers/message/fusion/mptbase.h:58,
                 from drivers/message/fusion/mptscsih.c:82:
include/linux/pci.h:718: error: syntax error before "int"
drivers/message/fusion/mptscsih.c:6924: warning: `mptscsih_setup' 
defined but not used
make[3]: *** [drivers/message/fusion/mptscsih.o] Error 1

<--  snip  -->

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.5.75: parse error in pci.h if !CONFIG_PCI
  2003-07-13 10:27 2.5.75: parse error in pci.h if !CONFIG_PCI Adrian Bunk
@ 2003-07-14  6:07 ` Greg KH
  2003-07-14 18:36   ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2003-07-14  6:07 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Sun, Jul 13, 2003 at 12:27:41PM +0200, Adrian Bunk wrote:
> I got the following compile error when trying to compile 2.5.75 with 
> !CONFIG_PCI:
> 
> <--  snip  -->
> 
> ...
>   CC      drivers/message/fusion/mptscsih.o
> In file included from drivers/message/fusion/linux_compat.h:10,
>                  from drivers/message/fusion/mptbase.h:58,
>                  from drivers/message/fusion/mptscsih.c:82:
> include/linux/pci.h:718: error: syntax error before "int"
> drivers/message/fusion/mptscsih.c:6924: warning: `mptscsih_setup' 
> defined but not used
> make[3]: *** [drivers/message/fusion/mptscsih.o] Error 1
> 
> <--  snip  -->

Thanks, the patch below should fix this problem.  I'll send it on to
Linus in a bit.

greg k-h


# PCI: fix up error for when CONFIG_PCI=n and scsi.h is included.

diff -Nru a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h	Sun Jul 13 23:07:44 2003
+++ b/include/linux/pci.h	Sun Jul 13 23:07:44 2003
@@ -715,7 +715,6 @@
 static inline int pci_assign_resource(struct pci_dev *dev, int i) { return -EBUSY;}
 static inline int pci_register_driver(struct pci_driver *drv) { return 0;}
 static inline void pci_unregister_driver(struct pci_driver *drv) { }
-static inline int scsi_to_pci_dma_dir(unsigned char scsi_dir) { return scsi_dir; }
 static inline int pci_find_capability (struct pci_dev *dev, int cap) {return 0; }
 static inline const struct pci_device_id *pci_match_device(const struct pci_device_id *ids, const struct pci_dev *dev) { return NULL; }
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.5.75: parse error in pci.h if !CONFIG_PCI
  2003-07-14  6:07 ` Greg KH
@ 2003-07-14 18:36   ` Adrian Bunk
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2003-07-14 18:36 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

On Sun, Jul 13, 2003 at 11:07:54PM -0700, Greg KH wrote:
> On Sun, Jul 13, 2003 at 12:27:41PM +0200, Adrian Bunk wrote:
> > I got the following compile error when trying to compile 2.5.75 with 
> > !CONFIG_PCI:
> > 
> > <--  snip  -->
> > 
> > ...
> >   CC      drivers/message/fusion/mptscsih.o
> > In file included from drivers/message/fusion/linux_compat.h:10,
> >                  from drivers/message/fusion/mptbase.h:58,
> >                  from drivers/message/fusion/mptscsih.c:82:
> > include/linux/pci.h:718: error: syntax error before "int"
> > drivers/message/fusion/mptscsih.c:6924: warning: `mptscsih_setup' 
> > defined but not used
> > make[3]: *** [drivers/message/fusion/mptscsih.o] Error 1
> > 
> > <--  snip  -->
> 
> Thanks, the patch below should fix this problem.  I'll send it on to
> Linus in a bit.

Thanks, this patch fixed it.

> greg k-h
>...

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-14 18:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-13 10:27 2.5.75: parse error in pci.h if !CONFIG_PCI Adrian Bunk
2003-07-14  6:07 ` Greg KH
2003-07-14 18:36   ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).