lkml.org 
[lkml]   [2004]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [SPARC64] kernel 2.6.7+cset-20040625_0611 = ERROR
"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
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.088 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site