hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/tty/tty_port.c
....@@ -280,7 +280,6 @@
280280 * Return a refcount protected tty instance or NULL if the port is not
281281 * associated with a tty (eg due to close or hangup)
282282 */
283
-
284283 struct tty_struct *tty_port_tty_get(struct tty_port *port)
285284 {
286285 unsigned long flags;
....@@ -301,7 +300,6 @@
301300 * Associate the port and tty pair. Manages any internal refcounts.
302301 * Pass NULL to deassociate a port
303302 */
304
-
305303 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty)
306304 {
307305 unsigned long flags;
....@@ -344,7 +342,6 @@
344342 *
345343 * Caller holds tty lock.
346344 */
347
-
348345 void tty_port_hangup(struct tty_port *port)
349346 {
350347 struct tty_struct *tty;
....@@ -400,7 +397,6 @@
400397 * to hide some internal details. This will eventually become entirely
401398 * internal to the tty port.
402399 */
403
-
404400 int tty_port_carrier_raised(struct tty_port *port)
405401 {
406402 if (port->ops->carrier_raised == NULL)
....@@ -417,7 +413,6 @@
417413 * to hide some internal details. This will eventually become entirely
418414 * internal to the tty port.
419415 */
420
-
421416 void tty_port_raise_dtr_rts(struct tty_port *port)
422417 {
423418 if (port->ops->dtr_rts)
....@@ -433,7 +428,6 @@
433428 * to hide some internal details. This will eventually become entirely
434429 * internal to the tty port.
435430 */
436
-
437431 void tty_port_lower_dtr_rts(struct tty_port *port)
438432 {
439433 if (port->ops->dtr_rts)
....@@ -465,7 +459,6 @@
465459 * NB: May drop and reacquire tty lock when blocking, so tty and tty_port
466460 * may have changed state (eg., may have been hung up).
467461 */
468
-
469462 int tty_port_block_til_ready(struct tty_port *port,
470463 struct tty_struct *tty, struct file *filp)
471464 {