diff options
author | Stefani Seibold <stefani@seibold.net> | 2009-12-21 17:37:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-22 17:17:56 -0500 |
commit | e64c026dd09b73faf20707711402fc5ed55a8e70 (patch) | |
tree | 4780736e021824f15329a0826eff3cc27d3f9646 /drivers/infiniband/hw | |
parent | c1e13f25674ed564948ecb7dfe5f83e578892896 (diff) |
kfifo: cleanup namespace
change name of __kfifo_* functions to kfifo_*, because the prefix __kfifo
should be reserved for internal functions only.
Signed-off-by: Stefani Seibold <stefani@seibold.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/cxio_resource.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/cxgb3/cxio_resource.c b/drivers/infiniband/hw/cxgb3/cxio_resource.c index 98f24e6d906e..d7d18fb02c93 100644 --- a/drivers/infiniband/hw/cxgb3/cxio_resource.c +++ b/drivers/infiniband/hw/cxgb3/cxio_resource.c | |||
@@ -59,7 +59,7 @@ static int __cxio_init_resource_fifo(struct kfifo *fifo, | |||
59 | return -ENOMEM; | 59 | return -ENOMEM; |
60 | 60 | ||
61 | for (i = 0; i < skip_low + skip_high; i++) | 61 | for (i = 0; i < skip_low + skip_high; i++) |
62 | __kfifo_put(fifo, (unsigned char *) &entry, sizeof(u32)); | 62 | kfifo_put(fifo, (unsigned char *) &entry, sizeof(u32)); |
63 | if (random) { | 63 | if (random) { |
64 | j = 0; | 64 | j = 0; |
65 | random_bytes = random32(); | 65 | random_bytes = random32(); |
@@ -71,19 +71,19 @@ static int __cxio_init_resource_fifo(struct kfifo *fifo, | |||
71 | random_bytes = random32(); | 71 | random_bytes = random32(); |
72 | } | 72 | } |
73 | idx = (random_bytes >> (j * 2)) & 0xF; | 73 | idx = (random_bytes >> (j * 2)) & 0xF; |
74 | __kfifo_put(fifo, | 74 | kfifo_put(fifo, |
75 | (unsigned char *) &rarray[idx], | 75 | (unsigned char *) &rarray[idx], |
76 | sizeof(u32)); | 76 | sizeof(u32)); |
77 | rarray[idx] = i; | 77 | rarray[idx] = i; |
78 | j++; | 78 | j++; |
79 | } | 79 | } |
80 | for (i = 0; i < RANDOM_SIZE; i++) | 80 | for (i = 0; i < RANDOM_SIZE; i++) |
81 | __kfifo_put(fifo, | 81 | kfifo_put(fifo, |
82 | (unsigned char *) &rarray[i], | 82 | (unsigned char *) &rarray[i], |
83 | sizeof(u32)); | 83 | sizeof(u32)); |
84 | } else | 84 | } else |
85 | for (i = skip_low; i < nr - skip_high; i++) | 85 | for (i = skip_low; i < nr - skip_high; i++) |
86 | __kfifo_put(fifo, (unsigned char *) &i, sizeof(u32)); | 86 | kfifo_put(fifo, (unsigned char *) &i, sizeof(u32)); |
87 | 87 | ||
88 | for (i = 0; i < skip_low + skip_high; i++) | 88 | for (i = 0; i < skip_low + skip_high; i++) |
89 | kfifo_get_locked(fifo, (unsigned char *) &entry, | 89 | kfifo_get_locked(fifo, (unsigned char *) &entry, |
@@ -119,7 +119,7 @@ static int cxio_init_qpid_fifo(struct cxio_rdev *rdev_p) | |||
119 | 119 | ||
120 | for (i = 16; i < T3_MAX_NUM_QP; i++) | 120 | for (i = 16; i < T3_MAX_NUM_QP; i++) |
121 | if (!(i & rdev_p->qpmask)) | 121 | if (!(i & rdev_p->qpmask)) |
122 | __kfifo_put(&rdev_p->rscp->qpid_fifo, | 122 | kfifo_put(&rdev_p->rscp->qpid_fifo, |
123 | (unsigned char *) &i, sizeof(u32)); | 123 | (unsigned char *) &i, sizeof(u32)); |
124 | return 0; | 124 | return 0; |
125 | } | 125 | } |