From 87ba00515657eede6077fa195ca6592b98cc31e3 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 17 Sep 2009 17:46:46 -0700 Subject: 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 --- arch/sparc/include/asm/vio.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'arch/sparc') diff --git a/arch/sparc/include/asm/vio.h b/arch/sparc/include/asm/vio.h index d4de32f0f8a..9d83d3bcb49 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, 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))); } -- cgit