Skip to content

Commit 05de87e

Browse files
peterhurleygregkh
authored andcommitted
tty: Re-declare tty_driver_remove_tty() file scope
tty_driver_remove_tty() is only local-scope; declare as static. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a3123fd commit 05de87e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/tty/tty_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ static int tty_driver_install_tty(struct tty_driver *driver,
14371437
*
14381438
* Locking: tty_mutex for now
14391439
*/
1440-
void tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty)
1440+
static void tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty)
14411441
{
14421442
if (driver->ops->remove)
14431443
driver->ops->remove(driver, tty);

include/linux/tty.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,6 @@ extern void tty_unthrottle(struct tty_struct *tty);
446446
extern int tty_throttle_safe(struct tty_struct *tty);
447447
extern int tty_unthrottle_safe(struct tty_struct *tty);
448448
extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
449-
extern void tty_driver_remove_tty(struct tty_driver *driver,
450-
struct tty_struct *tty);
451449
extern int is_current_pgrp_orphaned(void);
452450
extern int is_ignored(int sig);
453451
extern int tty_signal(int sig, struct tty_struct *tty);

0 commit comments

Comments
 (0)