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>
This commit is contained in:

committed by
Linus Torvalds

parent
c1e13f2567
commit
e64c026dd0
@@ -505,19 +505,19 @@ static inline void cq_delete(struct kfifo *kfifo)
|
||||
|
||||
static inline unsigned int cq_howmany(struct kfifo *kfifo)
|
||||
{
|
||||
return __kfifo_len(kfifo) / sizeof(void *);
|
||||
return kfifo_len(kfifo) / sizeof(void *);
|
||||
}
|
||||
|
||||
static inline int cq_put(struct kfifo *kfifo, void *p)
|
||||
{
|
||||
return __kfifo_put(kfifo, (void *)&p, sizeof(p));
|
||||
return kfifo_put(kfifo, (void *)&p, sizeof(p));
|
||||
}
|
||||
|
||||
static inline void *cq_get(struct kfifo *kfifo)
|
||||
{
|
||||
void *p = NULL;
|
||||
|
||||
__kfifo_get(kfifo, (void *)&p, sizeof(p));
|
||||
kfifo_get(kfifo, (void *)&p, sizeof(p));
|
||||
return p;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user