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
@@ -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);
|
||||
|
Reference in New Issue
Block a user