mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6 patch] make tty_driver_kref_get() static inline
@ 2009-04-05 16:31 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2009-04-05 16:31 UTC (permalink / raw)
  To: Alan Cox; +Cc: Andrew Morton, linux-kernel

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>

---

diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h
index 08e0883..4116817 100644
--- a/include/linux/tty_driver.h
+++ b/include/linux/tty_driver.h
@@ -310,7 +310,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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-05 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-05 16:31 [2.6 patch] make tty_driver_kref_get() static inline Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome