Skip to content

Commit 7e1e71d

Browse files
peterhurleygregkh
authored andcommitted
tty: Remove tty_prepare_flip_string_flags()
There is no in-tree user of tty_prepare_flip_string_flags(); remove. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5dda4ca commit 7e1e71d

2 files changed

Lines changed: 0 additions & 30 deletions

File tree

‎drivers/tty/tty_buffer.c‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -373,34 +373,6 @@ int tty_prepare_flip_string(struct tty_port *port, unsigned char **chars,
373373
}
374374
EXPORT_SYMBOL_GPL(tty_prepare_flip_string);
375375

376-
/**
377-
* tty_prepare_flip_string_flags - make room for characters
378-
* @port: tty port
379-
* @chars: return pointer for character write area
380-
* @flags: return pointer for status flag write area
381-
* @size: desired size
382-
*
383-
* Prepare a block of space in the buffer for data. Returns the length
384-
* available and buffer pointer to the space which is now allocated and
385-
* accounted for as ready for characters. This is used for drivers
386-
* that need their own block copy routines into the buffer. There is no
387-
* guarantee the buffer is a DMA target!
388-
*/
389-
390-
int tty_prepare_flip_string_flags(struct tty_port *port,
391-
unsigned char **chars, char **flags, size_t size)
392-
{
393-
int space = tty_buffer_request_room(port, size);
394-
if (likely(space)) {
395-
struct tty_buffer *tb = port->buf.tail;
396-
*chars = char_buf_ptr(tb, tb->used);
397-
*flags = flag_buf_ptr(tb, tb->used);
398-
tb->used += space;
399-
}
400-
return space;
401-
}
402-
EXPORT_SYMBOL_GPL(tty_prepare_flip_string_flags);
403-
404376

405377
static int
406378
receive_buf(struct tty_struct *tty, struct tty_buffer *head, int count)

‎include/linux/tty_flip.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ extern int tty_insert_flip_string_fixed_flag(struct tty_port *port,
1010
const unsigned char *chars, char flag, size_t size);
1111
extern int tty_prepare_flip_string(struct tty_port *port,
1212
unsigned char **chars, size_t size);
13-
extern int tty_prepare_flip_string_flags(struct tty_port *port,
14-
unsigned char **chars, char **flags, size_t size);
1513
extern void tty_flip_buffer_push(struct tty_port *port);
1614
void tty_schedule_flip(struct tty_port *port);
1715

0 commit comments

Comments
 (0)