Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] pci.h pb with gcc-4.0
@ 2006-01-19 12:44 Joel Soete
  2006-01-19 18:28 ` Grant Grundler
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Soete @ 2006-01-19 12:44 UTC (permalink / raw)
  To: parisc-linux

hello *,

mmm don't know if because I use gcc 4.0 but here is a pb I encounter to b=
uild
2.6.16-rc1-pa1 (+patch):

  gcc -Wp,-MD,arch/parisc/kernel/.pci.o.d  -nostdinc -isystem
/usr/lib/gcc/hppa-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -Iinc
lude2 -I/CAD/linux-2.6.16-rc1-pa1/include -include include/linux/autoconf=
.h
-I/CAD/linux-2.6.16-rc1-pa1/arch/parisc/kernel -Iarch/pa
risc/kernel -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointe
r -pipe -mno-space-regs -mfast-indirect-calls -mdisable-fpregs
-ffunction-sections -march=3D2.0 -mschedule=3D8000 -Wdeclaration-after-st=

atement -Wno-pointer-sign  -D"KBUILD_STR(s)=3D#s"
-D"KBUILD_BASENAME=3DKBUILD_STR(pci)"  -D"KBUILD_MODNAME=3DKBUILD_STR(pci=
)" -c -o
arch/p
arisc/kernel/.tmp_pci.o /CAD/linux-2.6.16-rc1-pa1/arch/parisc/kernel/pci.=
c
/CAD/linux-2.6.16-rc1-pa1/arch/parisc/kernel/pci.c:56: error: static
declaration of \xe2\x80\x98pci_hba_count\xe2\x80\x99 follows no
n-static declaration
include2/asm/pci.h:206: error: previous declaration of
\xe2\x80\x98pci_hba_count\xe2\x80\x99 was here

as it doesn't seems to be used elsewhere I just apply following matter:
--- linux-2.6.16-rc1-pa1/include/asm-parisc/pci.h       2006-01-17
19:48:12.000000000 +0100
+++ linux-2.6.16-rc1-pa1-20060119/include/asm-parisc/pci.h      2006-01-1=
8
17:51:07.000000000 +0100
@@ -203,7 +203,7 @@
 */
 extern struct pci_port_ops *pci_port;
 extern struct pci_bios_ops *pci_bios;
-extern int pci_hba_count;
+/* extern int pci_hba_count; */
 extern struct pci_hba_data *parisc_pci_hba[];
 
 #ifdef CONFIG_PCI
=3D=3D=3D=3D<>=3D=3D=3D=3D

If agreed please fill free to apply (no cvs access ;-( )

TIA,
    Joel=0A=0A-------------------------------------------------------=0AN=
OTE! My email address is changing to ... @scarlet.be=0APlease make the ne=
cessary changes in your address book. =0A=0A

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] pci.h pb with gcc-4.0
  2006-01-19 12:44 [parisc-linux] pci.h pb with gcc-4.0 Joel Soete
@ 2006-01-19 18:28 ` Grant Grundler
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Grundler @ 2006-01-19 18:28 UTC (permalink / raw)
  To: Joel Soete; +Cc: parisc-linux

On Thu, Jan 19, 2006 at 01:44:23PM +0100, Joel Soete wrote:
> hello *,
> 
> mmm don't know if because I use gcc 4.0 but here is a pb I encounter to build
> 2.6.16-rc1-pa1 (+patch):
...
> /CAD/linux-2.6.16-rc1-pa1/arch/parisc/kernel/pci.c:56: error: static
> declaration of \xe2\x80\x98pci_hba_count\xe2\x80\x99 follows no
> n-static declaration
> include2/asm/pci.h:206: error: previous declaration of
> \xe2\x80\x98pci_hba_count\xe2\x80\x99 was here

We can also remove the extern declaration of parisc_pci_hbap[].
I'll fix this by this weekend.

thanks,
grant
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

end of thread, other threads:[~2006-01-19 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-19 12:44 [parisc-linux] pci.h pb with gcc-4.0 Joel Soete
2006-01-19 18:28 ` Grant Grundler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox