diff options
author | David S. Miller <davem@davemloft.net> | 2009-09-17 20:46:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-17 20:46:46 -0400 |
commit | 87ba00515657eede6077fa195ca6592b98cc31e3 (patch) | |
tree | 7570cd50b5fbc1a4f77ef8308b3d324162bf3294 /arch/sparc | |
parent | 0a375d75902c522ea36c6dc409296622f93db4a7 (diff) |
sparc64: vio: Kill BUILD_BUG_ON() in vio_dring_avail().
GCC can't see the 'constant' properly as computed by
is_power_of_2() etc.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/vio.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sparc/include/asm/vio.h b/arch/sparc/include/asm/vio.h index d4de32f0f8af..9d83d3bcb494 100644 --- 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, | |||
258 | static inline u32 vio_dring_avail(struct vio_dring_state *dr, | 258 | static inline u32 vio_dring_avail(struct vio_dring_state *dr, |
259 | unsigned int ring_size) | 259 | unsigned int ring_size) |
260 | { | 260 | { |
261 | BUILD_BUG_ON(!is_power_of_2(ring_size)); | ||
262 | |||
263 | return (dr->pending - | 261 | return (dr->pending - |
264 | ((dr->prod - dr->cons) & (ring_size - 1))); | 262 | ((dr->prod - dr->cons) & (ring_size - 1))); |
265 | } | 263 | } |