Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87ba0051 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a375d75
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)));
}