提交 4f9a6e10 编写于 作者: M Miles Bader 提交者: Linus Torvalds

[PATCH] v850: const-qualify first parameter of find_next_zero_bit

Signed-off-by: NMiles Bader <miles@gnu.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e9c3d6b9
/* /*
* include/asm-v850/bitops.h -- Bit operations * include/asm-v850/bitops.h -- Bit operations
* *
* Copyright (C) 2001,02,03,04 NEC Electronics Corporation * Copyright (C) 2001,02,03,04,05 NEC Electronics Corporation
* Copyright (C) 2001,02,03,04 Miles Bader <miles@gnu.org> * Copyright (C) 2001,02,03,04,05 Miles Bader <miles@gnu.org>
* Copyright (C) 1992 Linus Torvalds. * Copyright (C) 1992 Linus Torvalds.
* *
* This file is subject to the terms and conditions of the GNU General * This file is subject to the terms and conditions of the GNU General
...@@ -157,7 +157,7 @@ extern __inline__ int __test_bit (int nr, const void *addr) ...@@ -157,7 +157,7 @@ extern __inline__ int __test_bit (int nr, const void *addr)
#define find_first_zero_bit(addr, size) \ #define find_first_zero_bit(addr, size) \
find_next_zero_bit ((addr), (size), 0) 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 *p = ((unsigned long *) addr) + (offset >> 5);
unsigned long result = offset & ~31UL; unsigned long result = offset & ~31UL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册