mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Andi Kleen <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c1e13f2567
commit
e64c026dd0
13 changed files with 55 additions and 73 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ static int usb_serial_generic_write_start(struct usb_serial_port *port)
|
|||
if (port->write_urb_busy)
|
||||
start_io = false;
|
||||
else {
|
||||
start_io = (__kfifo_len(port->write_fifo) != 0);
|
||||
start_io = (kfifo_len(port->write_fifo) != 0);
|
||||
port->write_urb_busy = start_io;
|
||||
}
|
||||
spin_unlock_irqrestore(&port->lock, flags);
|
||||
|
|
@ -370,7 +370,7 @@ int usb_serial_generic_write_room(struct tty_struct *tty)
|
|||
(serial->type->max_in_flight_urbs -
|
||||
port->urbs_in_flight);
|
||||
} else if (serial->num_bulk_out)
|
||||
room = port->write_fifo->size - __kfifo_len(port->write_fifo);
|
||||
room = port->write_fifo->size - kfifo_len(port->write_fifo);
|
||||
spin_unlock_irqrestore(&port->lock, flags);
|
||||
|
||||
dbg("%s - returns %d", __func__, room);
|
||||
|
|
|
|||
Loading…
Reference in a new issue