lkml.org 
[lkml]   [2013]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 7/9] n_tty: Un-inline single-use functions
    Date
    gcc will likely inline these single-use functions anyway; remove
    inline modifier.

    Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
    ---
    drivers/tty/n_tty.c | 11 +++++------
    1 file changed, 5 insertions(+), 6 deletions(-)

    diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
    index 0f33e0c..f516247 100644
    --- a/drivers/tty/n_tty.c
    +++ b/drivers/tty/n_tty.c
    @@ -263,7 +263,7 @@ static void n_tty_check_throttle(struct tty_struct *tty)
    __tty_set_flow_change(tty, 0);
    }

    -static inline void n_tty_check_unthrottle(struct tty_struct *tty)
    +static void n_tty_check_unthrottle(struct tty_struct *tty)
    {
    if (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
    tty->link->ldisc->ops->write_wakeup == n_tty_write_wakeup) {
    @@ -1109,7 +1109,7 @@ static void eraser(unsigned char c, struct tty_struct *tty)
    * Locking: ctrl_lock
    */

    -static inline void isig(int sig, struct tty_struct *tty)
    +static void isig(int sig, struct tty_struct *tty)
    {
    struct pid *tty_pgrp = tty_get_pgrp(tty);
    if (tty_pgrp) {
    @@ -1132,7 +1132,7 @@ static inline void isig(int sig, struct tty_struct *tty)
    * Note: may get exclusive termios_rwsem if flushing input buffer
    */

    -static inline void n_tty_receive_break(struct tty_struct *tty)
    +static void n_tty_receive_break(struct tty_struct *tty)
    {
    struct n_tty_data *ldata = tty->disc_data;

    @@ -1170,7 +1170,7 @@ static inline void n_tty_receive_break(struct tty_struct *tty)
    * private.
    */

    -static inline void n_tty_receive_overrun(struct tty_struct *tty)
    +static void n_tty_receive_overrun(struct tty_struct *tty)
    {
    struct n_tty_data *ldata = tty->disc_data;
    char buf[64];
    @@ -1198,8 +1198,7 @@ static inline void n_tty_receive_overrun(struct tty_struct *tty)
    * caller holds non-exclusive termios_rwsem
    * publishes read_head via put_tty_queue()
    */
    -static inline void n_tty_receive_parity_error(struct tty_struct *tty,
    - unsigned char c)
    +static void n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c)
    {
    struct n_tty_data *ldata = tty->disc_data;

    --
    1.8.1.2


    \
     
     \ /
      Last update: 2013-07-24 15:21    [W:3.538 / U:0.024 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site