projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a375d7
)
sparc64: vio: Kill BUILD_BUG_ON() in vio_dring_avail().
author
David S. Miller
<davem@davemloft.net>
Fri, 18 Sep 2009 00:46:46 +0000
(17:46 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Sep 2009 00:46:46 +0000
(17:46 -0700)
GCC can't see the 'constant' properly as computed by
is_power_of_2() etc.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/vio.h
patch
|
blob
|
history
diff --git
a/arch/sparc/include/asm/vio.h
b/arch/sparc/include/asm/vio.h
index
d4de32f
..
9d83d3b
100644
(file)
--- a/
arch/sparc/include/asm/vio.h
+++ b/
arch/sparc/include/asm/vio.h
@@
-258,8
+258,6
@@
static inline void *vio_dring_entry(struct vio_dring_state *dr,
static inline u32 vio_dring_avail(struct vio_dring_state *dr,
unsigned int ring_size)
{
- BUILD_BUG_ON(!is_power_of_2(ring_size));
-
return (dr->pending -
((dr->prod - dr->cons) & (ring_size - 1)));
}