* [PATCH] v850: const-qualify first parameter of find_next_zero_bit
@ 2005-07-20 8:38 Miles Bader
2005-07-20 8:46 ` Bernd Petrovitsch
0 siblings, 1 reply; 2+ messages in thread
From: Miles Bader @ 2005-07-20 8:38 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Signed-off-by: Miles Bader <miles@gnu.org>
include/asm-v850/bitops.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -ruN -X../cludes linux-2.6.12-uc0/include/asm-v850/bitops.h linux-2.6.12-uc0-v850-20050720/include/asm-v850/bitops.h
--- linux-2.6.12-uc0/include/asm-v850/bitops.h 2004-08-16 14:48:15.606748000 +0900
+++ linux-2.6.12-uc0-v850-20050720/include/asm-v850/bitops.h 2005-07-20 17:08:31.442593000 +0900
@@ -1,8 +1,8 @@
/*
* include/asm-v850/bitops.h -- Bit operations
*
- * Copyright (C) 2001,02,03,04 NEC Electronics Corporation
- * Copyright (C) 2001,02,03,04 Miles Bader <miles@gnu.org>
+ * Copyright (C) 2001,02,03,04,05 NEC Electronics Corporation
+ * Copyright (C) 2001,02,03,04,05 Miles Bader <miles@gnu.org>
* Copyright (C) 1992 Linus Torvalds.
*
* This file is subject to the terms and conditions of the GNU General
@@ -157,7 +157,7 @@
#define find_first_zero_bit(addr, size) \
find_next_zero_bit ((addr), (size), 0)
-extern __inline__ int find_next_zero_bit (void *addr, int size, int offset)
+extern __inline__ int find_next_zero_bit(const void *addr, int size, int offset)
{
unsigned long *p = ((unsigned long *) addr) + (offset >> 5);
unsigned long result = offset & ~31UL;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] v850: const-qualify first parameter of find_next_zero_bit
2005-07-20 8:38 [PATCH] v850: const-qualify first parameter of find_next_zero_bit Miles Bader
@ 2005-07-20 8:46 ` Bernd Petrovitsch
0 siblings, 0 replies; 2+ messages in thread
From: Bernd Petrovitsch @ 2005-07-20 8:46 UTC (permalink / raw)
To: Miles Bader; +Cc: Linus Torvalds, linux-kernel
On Wed, 2005-07-20 at 17:38 +0900, Miles Bader wrote:
[...]
> @@ -157,7 +157,7 @@
> #define find_first_zero_bit(addr, size) \
> find_next_zero_bit ((addr), (size), 0)
>
> -extern __inline__ int find_next_zero_bit (void *addr, int size, int offset)
> +extern __inline__ int find_next_zero_bit(const void *addr, int size, int offset)
> {
> unsigned long *p = ((unsigned long *) addr) + (offset >> 5);
Why not const-qualify *p and the cast also (avoiding warnings and
actually making the change complete)?
Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-20 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-20 8:38 [PATCH] v850: const-qualify first parameter of find_next_zero_bit Miles Bader
2005-07-20 8:46 ` Bernd Petrovitsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®