lkml.org 
[lkml]   [2009]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 01/11] tty: Correct inline types for tty_driver_kref_get()
    Date
    From: Adrian Bunk <bunk@kernel.org>

    tty_driver_kref_get() should be static inline and not extern inline
    (the latter even changed it's semantics in gcc >= 4.3).

    Signed-off-by: Adrian Bunk <bunk@kernel.org>
    Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
    ---

    include/linux/tty_driver.h | 3 ++-
    1 files changed, 2 insertions(+), 1 deletions(-)


    diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h
    index 8615d66..bcba84e 100644
    --- a/include/linux/tty_driver.h
    +++ b/include/linux/tty_driver.h
    @@ -309,7 +309,8 @@ extern void tty_set_operations(struct tty_driver *driver,
    extern struct tty_driver *tty_find_polling_driver(char *name, int *line);

    extern void tty_driver_kref_put(struct tty_driver *driver);
    -extern inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d)
    +
    +static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d)
    {
    kref_get(&d->kref);
    return d;


    \
     
     \ /
      Last update: 2009-04-07 16:53    [W:5.594 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site