Commit 38ab2cd5 authored by Miles Bader's avatar Miles Bader Committed by Arnaldo Carvalho de Melo

[PATCH] const-qualify memory arg in v850's __test_bit

This silences at least one compile-time warning... :-)
parent abd6b373
/*
* 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 @@ extern __inline__ unsigned long ffz (unsigned long word)
"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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment