* [PATCH][v850] const-qualify memory arg in v850's __test_bit
@ 2003-05-27 10:12 Miles Bader
0 siblings, 0 replies; only message in thread
From: Miles Bader @ 2003-05-27 10:12 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
This silences at least one compile-time warning... :-)
diff -ruN -X../cludes linux-2.5.70/include/asm-v850/bitops.h linux-2.5.70-v850-20030527/include/asm-v850/bitops.h
--- linux-2.5.70/include/asm-v850/bitops.h 2003-04-21 10:53:17.000000000 +0900
+++ linux-2.5.70-v850-20030527/include/asm-v850/bitops.h 2003-05-27 18:53:02.000000000 +0900
@@ -1,8 +1,8 @@
/*
* include/asm-v850/bitops.h -- Bit operations
*
- * Copyright (C) 2001,02 NEC Corporation
- * Copyright (C) 2001,02 Miles Bader <miles@gnu.org>
+ * Copyright (C) 2001,02,03 NEC Electronics Corporation
+ * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
* Copyright (C) 1992 Linus Torvalds.
*
* This file is subject to the terms and conditions of the GNU General
@@ -133,7 +133,7 @@
"m" (*((const char *)(addr) + ((nr) >> 3)))); \
__test_bit_res; \
})
-extern __inline__ int __test_bit (int nr, void *addr)
+extern __inline__ int __test_bit (int nr, const void *addr)
{
int res;
__asm__ ("tst1 %1, [%2]; setf nz, %0"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-27 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-27 10:12 [PATCH][v850] const-qualify memory arg in v850's __test_bit Miles Bader
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).