[parisc-linux] Kernel 2.4.20 help?

Sir Ace chandler@nateng.com
Wed, 22 Jan 2003 17:19:21 -0800 (PST)


I've been playing with the 2.4.20 on my box {debian 3.0 parisc}
I've found a few problems, tried a couple of fixes and got chewed out by a
kernel deveolper so I saw you mentioned on the debian site and thought I
should ask you.

What I get is this:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-D__linux__ -pipe -fno-strength-reduce -mno-space-regs
-mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=1.1
-mschedule=7200   -nostdinc -iwithprefix include
-DKBUILD_BASENAME=scsi_merge  -c -o scsi_merge.o scsi_merge.c
scsi_merge.c: In function `__count_segments':
scsi_merge.c:226: warning: implicit declaration of function `page_to_phys'
scsi_merge.c: In function `initialize_merge_fn':
scsi_merge.c:1199: `PCI_DMA_BUS_IS_PHYS' undeclared (first use in this
function)scsi_merge.c:1199: (Each undeclared identifier is reported only
once
scsi_merge.c:1199: for each function it appears in.)
make[3]: *** [scsi_merge.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20/drivers/scsi'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20/drivers/scsi'
make[1]: *** [_subdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/drivers'
make: *** [_dir_drivers] Error 2

What I did first to fix it was add:
#ifndef PCI_DMA_BUS_IS_PHYS
#define PCI_DMA_BUS_IS_PHYS 1
#endif

I asked the linux-scsi list if that was the proper fix and promptly got
yelled at.  I was told the problem was that asm/pci.h was not included and
that was the fix I should use.  Even though the defines would work...

So I reverted the code back and added the include, now I get the original
error and nothing seems to be resolved.

After adding my defines back I still get errors, just much farther along:
trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-D__linux__ -pipe -fno-strength-reduce -mno-space-regs
-mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=1.1
-mschedule=7200   -nostdinc -iwithprefix include -DKBUILD_BASENAME=traps
-c -o traps.o traps.c
traps.c:125: conflicting types for `dump_stack'
/usr/src/linux-2.4.20/include/linux/kernel.h:111: previous declaration of
`dump_stack'
make[1]: *** [traps.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/parisc/kernel'
make: *** [_dir_arch/parisc/kernel] Error 2

Um, help?