Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73291
b: refs/heads/master
c: 6f78a19
h: refs/heads/master
i:
  73289: 5eeff79
  73287: 6423d84
v: v3
  • Loading branch information
Robert P. J. Day authored and David S. Miller committed Nov 7, 2007
1 parent b47d00f commit 750bda7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c969ffe1f1bb349e118a299f76f6bb0bbd6b05a
refs/heads/master: 6f78a19702574008bbd333237380fa85be1c9e5d
4 changes: 2 additions & 2 deletions trunk/include/asm-sparc64/vio.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/list.h>
#include <linux/log2.h>

#include <asm/ldc.h>
#include <asm/mdesc.h>
Expand Down Expand Up @@ -257,8 +258,7 @@ 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)
{
/* Ensure build-time power-of-2. */
BUILD_BUG_ON(ring_size & (ring_size - 1));
BUILD_BUG_ON(!is_power_of_2(ring_size));

return (dr->pending -
((dr->prod - dr->cons) & (ring_size - 1)));
Expand Down

0 comments on commit 750bda7

Please sign in to comment.