linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* compiling 2.2.19 kernel with promise ide card support
@ 2001-07-08 18:28 Robert E Brose II
  2001-07-08 19:33 ` Michel Lanners
  0 siblings, 1 reply; 3+ messages in thread
From: Robert E Brose II @ 2001-07-08 18:28 UTC (permalink / raw)
  To: linuxppc-dev


I'm trying to get a 2.2.19 kernel running to check some differences
I'm having with a 2.4 kernel. I've started with a stock 2.2.19
kernel from kernel.org and added patches I need on the 7600.

The problem I'm having is in getting the kernel to compile after adding
the ide patches (to support the promise line of cards) from

ftp://ftp.kernel.org/pub/linux/kernel/people/hedrick/ide-2.2.20/ide.2.2.19.05042001.patch

I have installed Michel Lanners 2.2 pci patches and the ide patch goes
in fine but when I try to compile the kernel I get....

make[3]: Entering directory `/usr4/linux/drivers/block'
cc -D__KERNEL__ -I/usr4/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__powerpc__ -fsigned-char -msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -DEXPORT_SYMTAB -c ll_rw_blk.c
In file included from ll_rw_blk.c:28:
/usr4/linux/include/asm/ide.h:53: parse error before `*'
/usr4/linux/include/asm/ide.h:56: warning: function declaration isn't a prototype
/usr4/linux/include/asm/ide.h:63: parse error before `*'
/usr4/linux/include/asm/ide.h:63: warning: function declaration isn't a prototype


The problem is at this declaration...

        void        (*ide_init_hwif)(hw_regs_t *hw,
                                     ide_ioreg_t data_port,
                                     ide_ioreg_t ctrl_port,
                                     int *irq);

Can anyone drop me a clue as to the problem here??

Bob
--
Robert E. Brose II    N0QBJ
http://www.jriver.com/~bob/
bob@kunk.jriver.com

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: compiling 2.2.19 kernel with promise ide card support
  2001-07-08 18:28 Robert E Brose II
@ 2001-07-08 19:33 ` Michel Lanners
  0 siblings, 0 replies; 3+ messages in thread
From: Michel Lanners @ 2001-07-08 19:33 UTC (permalink / raw)
  To: bob; +Cc: linuxppc-dev


Hi Bob,

On   8 Jul, this message from Robert E Brose II echoed through cyberspace:
> I'm trying to get a 2.2.19 kernel running to check some differences
> I'm having with a 2.4 kernel. I've started with a stock 2.2.19
> kernel from kernel.org and added patches I need on the 7600.

Sorry, but I'm running only 2.4 kernels on my 7600 for some time now...

> The problem I'm having is in getting the kernel to compile after adding
> the ide patches (to support the promise line of cards) from
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/hedrick/ide-2.2.20/ide.2.2.19.05042001.patch
>
> make[3]: Entering directory `/usr4/linux/drivers/block'
> cc -D__KERNEL__ -I/usr4/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__powerpc__ -fsigned-char -msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -DEXPORT_SYMTAB -c ll_rw_blk.c
> In file included from ll_rw_blk.c:28:
> /usr4/linux/include/asm/ide.h:53: parse error before `*'
> /usr4/linux/include/asm/ide.h:56: warning: function declaration isn't a prototype
> /usr4/linux/include/asm/ide.h:63: parse error before `*'
> /usr4/linux/include/asm/ide.h:63: warning: function declaration isn't a prototype
>
>
> The problem is at this declaration...
>
>         void        (*ide_init_hwif)(hw_regs_t *hw,
>                                      ide_ioreg_t data_port,
>                                      ide_ioreg_t ctrl_port,
>                                      int *irq);

Have a look at all the types used here (*_t); one of them might not be
defined (or uncorrectly). Andre sometimes forgets to update the
definitions in the PPC-arch header files.

Cheers

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: compiling 2.2.19 kernel with promise ide card support
@ 2001-07-13 16:50 Robert E Brose II
  0 siblings, 0 replies; 3+ messages in thread
From: Robert E Brose II @ 2001-07-13 16:50 UTC (permalink / raw)
  To: linuxppc-dev


----- Forwarded message from Michel Lanners -----

> The problem I'm having is in getting the kernel to compile after adding
> the ide patches (to support the promise line of cards) from
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/hedrick/ide-2.2.20/ide.2.2.19.05042001.patch
>
> make[3]: Entering directory `/usr4/linux/drivers/block'
> cc -D__KERNEL__ -I/usr4/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__powerpc__ -fsigned-char -msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -DEXPORT_SYMTAB -c ll_rw_blk.c
> In file included from ll_rw_blk.c:28:
> /usr4/linux/include/asm/ide.h:53: parse error before `*'
> /usr4/linux/include/asm/ide.h:56: warning: function declaration isn't a prototype
> /usr4/linux/include/asm/ide.h:63: parse error before `*'
> /usr4/linux/include/asm/ide.h:63: warning: function declaration isn't a prototype
>
>
> The problem is at this declaration...
>
>         void        (*ide_init_hwif)(hw_regs_t *hw,
>                                      ide_ioreg_t data_port,
>                                      ide_ioreg_t ctrl_port,
>                                      int *irq);

Have a look at all the types used here (*_t); one of them might not be
defined (or uncorrectly). Andre sometimes forgets to update the
definitions in the PPC-arch header files.

Cheers

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "



-- end of forwarded message --

Hi Michel,

Thanks for the help... You were correct, hw_regs_t was undefined. After
looking at the includes I saw that for some reason in
drivers/block/ll_rw_blk.c there is the following conditional..

#ifdef CONFIG_POWERMAC
#include <asm/ide.h>
#endif

And in ide-pmac.c

#include <asm/ide.h>

ide.h in asm is also included by linux/ide.h. It appears that ll_rw_blk.c
and ide-pmac.c should be using linux/ide.h instead of asm/ide.h because
hw_regs_t is defined in linux/ide.h. When I made that change the
kernel compile completes and the kernel works fine.

Bob
--
Robert E. Brose II    N0QBJ
http://www.jriver.com/~bob/
bob@kunk.jriver.com

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-07-13 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-13 16:50 compiling 2.2.19 kernel with promise ide card support Robert E Brose II
  -- strict thread matches above, loose matches on Subject: below --
2001-07-08 18:28 Robert E Brose II
2001-07-08 19:33 ` Michel Lanners

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).