linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR
  2004-06-25 11:23 [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR Wojciech 'Sas' Cieciwa
@ 2004-06-25 10:04 ` Andrew Morton
  2004-06-25 10:05 ` Andrew Morton
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2004-06-25 10:04 UTC (permalink / raw)
  To: Wojciech 'Sas' Cieciwa; +Cc: linux-kernel, davem, sparclinux

"Wojciech 'Sas' Cieciwa" <cieciwa@alpha.zarz.agh.edu.pl> wrote:
>
> make[1]: *** [arch/sparc64/kernel/process.o] Error 1
>  make: *** [arch/sparc64/kernel] Error 2

Here's one:



include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:210: warning: passing arg 1 of `find_next_bit' discards qualifiers from pointer target type
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:216: warning: passing arg 1 of `find_next_bit' discards qualifiers from pointer target type

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-sparc64-akpm/arch/sparc64/lib/find_bit.c  |    5 +++--
 25-sparc64-akpm/include/asm-sparc64/bitops.h |    3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff -puN arch/sparc64/lib/find_bit.c~sparc64-find_next_bit-fix arch/sparc64/lib/find_bit.c
--- 25-sparc64/arch/sparc64/lib/find_bit.c~sparc64-find_next_bit-fix	2004-06-25 03:02:00.095102072 -0700
+++ 25-sparc64-akpm/arch/sparc64/lib/find_bit.c	2004-06-25 03:02:00.109099944 -0700
@@ -6,9 +6,10 @@
  * @offset: The bitnumber to start searching at
  * @size: The maximum size to search
  */
-unsigned long find_next_bit(unsigned long *addr, unsigned long size, unsigned long offset)
+unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
+				unsigned long offset)
 {
-	unsigned long *p = addr + (offset >> 6);
+	const unsigned long *p = addr + (offset >> 6);
 	unsigned long result = offset & ~63UL;
 	unsigned long tmp;
 
diff -puN include/asm-sparc64/bitops.h~sparc64-find_next_bit-fix include/asm-sparc64/bitops.h
--- 25-sparc64/include/asm-sparc64/bitops.h~sparc64-find_next_bit-fix	2004-06-25 03:02:00.104100704 -0700
+++ 25-sparc64-akpm/include/asm-sparc64/bitops.h	2004-06-25 03:02:00.110099792 -0700
@@ -204,7 +204,8 @@ static __inline__ unsigned int hweight8(
  * @offset: The bitnumber to start searching at
  * @size: The maximum size to search
  */
-extern unsigned long find_next_bit(unsigned long *, unsigned long, unsigned long);
+extern unsigned long find_next_bit(const unsigned long *, unsigned long,
+					unsigned long);
 
 /**
  * find_first_bit - find the first set bit in a memory region
_


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

* Re: [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR
  2004-06-25 11:23 [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR Wojciech 'Sas' Cieciwa
  2004-06-25 10:04 ` Andrew Morton
@ 2004-06-25 10:05 ` Andrew Morton
  2004-06-25 17:30   ` David S. Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2004-06-25 10:05 UTC (permalink / raw)
  To: Wojciech 'Sas' Cieciwa; +Cc: linux-kernel, davem, sparclinux

"Wojciech 'Sas' Cieciwa" <cieciwa@alpha.zarz.agh.edu.pl> wrote:
>
> make[1]: *** [arch/sparc64/kernel/process.o] Error 1
>  make: *** [arch/sparc64/kernel] Error 2

here's t'other:



include/linux/byteorder/swab.h: In function `__swab16p':
include/linux/byteorder/swab.h:139: warning: passing arg 1 of `___arch__swab16p' discards qualifiers from pointer target type
include/linux/byteorder/swab.h: In function `__swab32p':
include/linux/byteorder/swab.h:152: warning: passing arg 1 of `___arch__swab32p' discards qualifiers from pointer target type
include/linux/byteorder/swab.h: In function `__swab64p':
include/linux/byteorder/swab.h:172: warning: passing arg 1 of `___arch__swab64p' discards qualifiers from pointer target type

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-sparc64-akpm/include/asm-sparc64/byteorder.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN include/asm-sparc64/byteorder.h~sparc64-swab-fix include/asm-sparc64/byteorder.h
--- 25-sparc64/include/asm-sparc64/byteorder.h~sparc64-swab-fix	2004-06-25 03:00:05.667497712 -0700
+++ 25-sparc64-akpm/include/asm-sparc64/byteorder.h	2004-06-25 03:00:05.670497256 -0700
@@ -7,7 +7,7 @@
 
 #ifdef __GNUC__
 
-static __inline__ __u16 ___arch__swab16p(__u16 *addr)
+static __inline__ __u16 ___arch__swab16p(const __u16 *addr)
 {
 	__u16 ret;
 
@@ -17,7 +17,7 @@ static __inline__ __u16 ___arch__swab16p
 	return ret;
 }
 
-static __inline__ __u32 ___arch__swab32p(__u32 *addr)
+static __inline__ __u32 ___arch__swab32p(const __u32 *addr)
 {
 	__u32 ret;
 
@@ -27,7 +27,7 @@ static __inline__ __u32 ___arch__swab32p
 	return ret;
 }
 
-static __inline__ __u64 ___arch__swab64p(__u64 *addr)
+static __inline__ __u64 ___arch__swab64p(const __u64 *addr)
 {
 	__u64 ret;
 
_


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

* [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR
@ 2004-06-25 11:23 Wojciech 'Sas' Cieciwa
  2004-06-25 10:04 ` Andrew Morton
  2004-06-25 10:05 ` Andrew Morton
  0 siblings, 2 replies; 5+ messages in thread
From: Wojciech 'Sas' Cieciwa @ 2004-06-25 11:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: davem, SPARC Linux kernel list

I try to build this on my machine 

cpu		: TI UltraSparc II  (BlackBird)
fpu		: UltraSparc II integrated FPU
promlib		: Version 3 Revision 12
prom		: 3.12.3
type		: sun4u
ncpus probed	: 4
ncpus active	: 4

and:
make image
[...]
  CC      arch/sparc64/kernel/process.o
In file included from include/linux/byteorder/big_endian.h:11,
                 from include/asm/byteorder.h:48,
                 from include/asm/bitops.h:11,
                 from include/linux/bitops.h:4,
                 from include/linux/thread_info.h:20,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from arch/sparc64/kernel/process.c:16:
include/linux/byteorder/swab.h: In function `__swab16p':
include/linux/byteorder/swab.h:139: warning: passing arg 1 of 
`___arch__swab16p' discards qualifiers from pointer target type
include/linux/byteorder/swab.h: In function `__swab32p':
include/linux/byteorder/swab.h:152: warning: passing arg 1 of 
`___arch__swab32p' discards qualifiers from pointer target type
include/linux/byteorder/swab.h: In function `__swab64p':
include/linux/byteorder/swab.h:172: warning: passing arg 1 of 
`___arch__swab64p' discards qualifiers from pointer target type
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from arch/sparc64/kernel/process.c:16:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:210: warning: passing arg 1 of `find_next_bit' 
discards qualifiers from pointer target type
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:216: warning: passing arg 1 of `find_next_bit' 
discards qualifiers from pointer target type
make[1]: *** [arch/sparc64/kernel/process.o] Error 1
make: *** [arch/sparc64/kernel] Error 2

-- 
{Wojciech 'Sas' Cieciwa}  {Member of PLD Team                               }
{e-mail: cieciwa@alpha.zarz.agh.edu.pl, http://www2.zarz.agh.edu.pl/~cieciwa}

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

* Re: [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR
  2004-06-25 10:05 ` Andrew Morton
@ 2004-06-25 17:30   ` David S. Miller
  2004-06-25 18:53     ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: David S. Miller @ 2004-06-25 17:30 UTC (permalink / raw)
  To: Andrew Morton; +Cc: cieciwa, linux-kernel, sparclinux

On Fri, 25 Jun 2004 03:05:02 -0700
Andrew Morton <akpm@osdl.org> wrote:

> "Wojciech 'Sas' Cieciwa" <cieciwa@alpha.zarz.agh.edu.pl> wrote:
> >
> > make[1]: *** [arch/sparc64/kernel/process.o] Error 1
> >  make: *** [arch/sparc64/kernel] Error 2
> 
> here's t'other:

Ok, is it only gcc-3.4 and later that spit out these warnings?
I've been doing gcc-3.3 builds without incident... oh or maybe
only on SMP.  I haven't tried a uniprocessor build in a while.

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

* Re: [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR
  2004-06-25 17:30   ` David S. Miller
@ 2004-06-25 18:53     ` Andrew Morton
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2004-06-25 18:53 UTC (permalink / raw)
  To: David S. Miller; +Cc: cieciwa, linux-kernel, sparclinux

"David S. Miller" <davem@redhat.com> wrote:
>
> On Fri, 25 Jun 2004 03:05:02 -0700
> Andrew Morton <akpm@osdl.org> wrote:
> 
> > "Wojciech 'Sas' Cieciwa" <cieciwa@alpha.zarz.agh.edu.pl> wrote:
> > >
> > > make[1]: *** [arch/sparc64/kernel/process.o] Error 1
> > >  make: *** [arch/sparc64/kernel] Error 2
> > 
> > here's t'other:
> 
> Ok, is it only gcc-3.4 and later that spit out these warnings?
> I've been doing gcc-3.3 builds without incident... oh or maybe
> only on SMP.  I haven't tried a uniprocessor build in a while.

I'm using gcc-3.3.2, CONFIG_SMP=y and was able to reproduce the warnings.

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

end of thread, other threads:[~2004-06-25 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-25 11:23 [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR Wojciech 'Sas' Cieciwa
2004-06-25 10:04 ` Andrew Morton
2004-06-25 10:05 ` Andrew Morton
2004-06-25 17:30   ` David S. Miller
2004-06-25 18:53     ` Andrew Morton

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