Re: SPARC include problem

2001-05-09 Thread Erik Mouw

On Tue, May 08, 2001 at 10:17:35PM -0500, Sean Jones wrote:
> The include error was in kernel/sched.c . Should I rewrite the includes
> for this file to include include/asm/irq.h over include/linux/irq.h? I
> temporarily bypassed this problem by creating a blank asm/hw_irq.h . 

You shouldn't expect to be able to compile the main kernel source on
Sparc at all. See http://www.tux.org/lkml/#s6-6 .


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-09 Thread Erik Mouw

On Tue, May 08, 2001 at 10:17:35PM -0500, Sean Jones wrote:
 The include error was in kernel/sched.c . Should I rewrite the includes
 for this file to include include/asm/irq.h over include/linux/irq.h? I
 temporarily bypassed this problem by creating a blank asm/hw_irq.h . 

You shouldn't expect to be able to compile the main kernel source on
Sparc at all. See http://www.tux.org/lkml/#s6-6 .


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-08 Thread Sean Jones

The include error was in kernel/sched.c . Should I rewrite the includes
for this file to include include/asm/irq.h over include/linux/irq.h? I
temporarily bypassed this problem by creating a blank asm/hw_irq.h . 

I also ran into a compile problem in arch/sparc/kernel/sparc_ksyms.c .
The rw semaphores seem to be undeclared. Here are the warnings:

D__KERNEL__ -I/usr/src/linux-2.4.4/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -m32 -pipe -mno-fpu
-fcall-used-g5 -fcall-used-g7-DEXPORT_SYMTAB -c sparc_ksyms.c
In file included from /usr/src/linux-2.4.4/include/linux/sched.h:9,
 from sparc_ksyms.c:17:
/usr/src/linux-2.4.4/include/linux/binfmts.h:45: warning: `struct
mm_struct' declared inside parameter list
/usr/src/linux-2.4.4/include/linux/binfmts.h:45: warning: its scope is
only this definition or declaration, which is probably not what you
want.
sparc_ksyms.c:121: `___down_read' undeclared here (not in a function)
sparc_ksyms.c:121: initializer element is not constant
sparc_ksyms.c:121: (near initialization for
`__ksymtabdown_read.value')
sparc_ksyms.c:122: `___down_write' undeclared here (not in a function)
sparc_ksyms.c:122: initializer element is not constant
sparc_ksyms.c:122: (near initialization for
`__ksymtabdown_write.value')
sparc_ksyms.c:123: `___up_read' undeclared here (not in a function)
sparc_ksyms.c:123: initializer element is not constant
sparc_ksyms.c:123: (near initialization for
`__ksymtabup_read.value')
sparc_ksyms.c:124: `___up_write' undeclared here (not in a function)
sparc_ksyms.c:124: initializer element is not constant
sparc_ksyms.c:124: (near initialization for
`__ksymtabup_write.value')
make[1]: *** [sparc_ksyms.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.4/arch/sparc/kernel'
make: *** [_dir_arch/sparc/kernel] Error 2

Thank you,

Sean


Erik Mouw wrote:
> 
> On Mon, May 07, 2001 at 05:01:03PM -0500, Sean Jones wrote:
> > In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
> > compile resulting from the inability to find a hw_irq.h in the
> > include/asm directory. Do you know where I may be able to find such a
> > file?
> 
> You don't. I discussed this last week with Russell King: the ARM port
> also doesn't have the file hw_irq.h in include/asm-arm. According to
> Russell it is only needed in the arch dependent subdirectories, and not
> in the drivers.
> 
> Any driver that includes linux/irq.h is not written to be portable. The
> only generic driver that includes it is driver/pcmcia/hd64465_ss.c, but
> on second glance it's a Hitachi HD64465 specific driver anyway.
> 
> Erik
> 
> --
> J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
> of Electrical Engineering, Faculty of Information Technology and Systems,
> Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
> Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
> WWW: http://www-ict.its.tudelft.nl/~erik/
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-08 Thread Sean Jones

Sean Jones wrote:
> 
> "David S. Miller" wrote:
> >
> > Sean Jones writes:
> >  > In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
> >  > compile resulting from the inability to find a hw_irq.h in the
> >  > include/asm directory. Do you know where I may be able to find such a
> >  > file?
> >
> > How did you find this problem if the build couldn't find the
> > "bzImage" rule? :-)
> >
> > Later,
> > David S. Miller
> > [EMAIL PROTECTED]
> 
> I found it by kicking the make stuff around one more time after I sent
> that e-mail.
> 
> Sean
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [EMAIL PROTECTED]
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-08 Thread Erik Mouw

On Mon, May 07, 2001 at 05:01:03PM -0500, Sean Jones wrote:
> In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
> compile resulting from the inability to find a hw_irq.h in the
> include/asm directory. Do you know where I may be able to find such a
> file?

You don't. I discussed this last week with Russell King: the ARM port
also doesn't have the file hw_irq.h in include/asm-arm. According to
Russell it is only needed in the arch dependent subdirectories, and not
in the drivers.

Any driver that includes linux/irq.h is not written to be portable. The
only generic driver that includes it is driver/pcmcia/hd64465_ss.c, but
on second glance it's a Hitachi HD64465 specific driver anyway.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-08 Thread Erik Mouw

On Mon, May 07, 2001 at 05:01:03PM -0500, Sean Jones wrote:
 In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
 compile resulting from the inability to find a hw_irq.h in the
 include/asm directory. Do you know where I may be able to find such a
 file?

You don't. I discussed this last week with Russell King: the ARM port
also doesn't have the file hw_irq.h in include/asm-arm. According to
Russell it is only needed in the arch dependent subdirectories, and not
in the drivers.

Any driver that includes linux/irq.h is not written to be portable. The
only generic driver that includes it is driver/pcmcia/hd64465_ss.c, but
on second glance it's a Hitachi HD64465 specific driver anyway.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-08 Thread Sean Jones

Sean Jones wrote:
 
 David S. Miller wrote:
 
  Sean Jones writes:
In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
compile resulting from the inability to find a hw_irq.h in the
include/asm directory. Do you know where I may be able to find such a
file?
 
  How did you find this problem if the build couldn't find the
  bzImage rule? :-)
 
  Later,
  David S. Miller
  [EMAIL PROTECTED]
 
 I found it by kicking the make stuff around one more time after I sent
 that e-mail.
 
 Sean
  -
  To unsubscribe from this list: send the line unsubscribe linux-kernel in
  the body of a message to [EMAIL PROTECTED]
  More majordomo info at  http://vger.kernel.org/majordomo-info.html
  Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-08 Thread Sean Jones

The include error was in kernel/sched.c . Should I rewrite the includes
for this file to include include/asm/irq.h over include/linux/irq.h? I
temporarily bypassed this problem by creating a blank asm/hw_irq.h . 

I also ran into a compile problem in arch/sparc/kernel/sparc_ksyms.c .
The rw semaphores seem to be undeclared. Here are the warnings:

D__KERNEL__ -I/usr/src/linux-2.4.4/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -m32 -pipe -mno-fpu
-fcall-used-g5 -fcall-used-g7-DEXPORT_SYMTAB -c sparc_ksyms.c
In file included from /usr/src/linux-2.4.4/include/linux/sched.h:9,
 from sparc_ksyms.c:17:
/usr/src/linux-2.4.4/include/linux/binfmts.h:45: warning: `struct
mm_struct' declared inside parameter list
/usr/src/linux-2.4.4/include/linux/binfmts.h:45: warning: its scope is
only this definition or declaration, which is probably not what you
want.
sparc_ksyms.c:121: `___down_read' undeclared here (not in a function)
sparc_ksyms.c:121: initializer element is not constant
sparc_ksyms.c:121: (near initialization for
`__ksymtabdown_read.value')
sparc_ksyms.c:122: `___down_write' undeclared here (not in a function)
sparc_ksyms.c:122: initializer element is not constant
sparc_ksyms.c:122: (near initialization for
`__ksymtabdown_write.value')
sparc_ksyms.c:123: `___up_read' undeclared here (not in a function)
sparc_ksyms.c:123: initializer element is not constant
sparc_ksyms.c:123: (near initialization for
`__ksymtabup_read.value')
sparc_ksyms.c:124: `___up_write' undeclared here (not in a function)
sparc_ksyms.c:124: initializer element is not constant
sparc_ksyms.c:124: (near initialization for
`__ksymtabup_write.value')
make[1]: *** [sparc_ksyms.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.4/arch/sparc/kernel'
make: *** [_dir_arch/sparc/kernel] Error 2

Thank you,

Sean


Erik Mouw wrote:
 
 On Mon, May 07, 2001 at 05:01:03PM -0500, Sean Jones wrote:
  In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
  compile resulting from the inability to find a hw_irq.h in the
  include/asm directory. Do you know where I may be able to find such a
  file?
 
 You don't. I discussed this last week with Russell King: the ARM port
 also doesn't have the file hw_irq.h in include/asm-arm. According to
 Russell it is only needed in the arch dependent subdirectories, and not
 in the drivers.
 
 Any driver that includes linux/irq.h is not written to be portable. The
 only generic driver that includes it is driver/pcmcia/hd64465_ss.c, but
 on second glance it's a Hitachi HD64465 specific driver anyway.
 
 Erik
 
 --
 J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
 of Electrical Engineering, Faculty of Information Technology and Systems,
 Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
 Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
 WWW: http://www-ict.its.tudelft.nl/~erik/
 -
 To unsubscribe from this list: send the line unsubscribe linux-kernel in
 the body of a message to [EMAIL PROTECTED]
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-07 Thread David S. Miller


Sean Jones writes:
 > In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
 > compile resulting from the inability to find a hw_irq.h in the
 > include/asm directory. Do you know where I may be able to find such a
 > file?

How did you find this problem if the build couldn't find the
"bzImage" rule? :-)

Later,
David S. Miller
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: SPARC include problem

2001-05-07 Thread David S. Miller


Sean Jones writes:
  In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the
  compile resulting from the inability to find a hw_irq.h in the
  include/asm directory. Do you know where I may be able to find such a
  file?

How did you find this problem if the build couldn't find the
bzImage rule? :-)

Later,
David S. Miller
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/