]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tty: Correct inline types for tty_driver_kref_get()
authorAdrian Bunk <bunk@kernel.org>
Tue, 7 Apr 2009 15:48:07 +0000 (16:48 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2009 15:44:04 +0000 (08:44 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/tty_driver.h

index 8615d661ab60c042fe8e8b5df420a4fde66a03d3..bcba84ea2d86ae280a2778ebcce9dc617c0b7e9c 100644 (file)
@@ -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;