linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: [PATCH 01/11] tty: Correct inline types for tty_driver_kref_get()
Date: Tue, 07 Apr 2009 16:40:15 +0100	[thread overview]
Message-ID: <20090407154008.17182.77930.stgit@t61.ukuu.org.uk> (raw)
In-Reply-To: <20090407153824.17182.81672.stgit@t61.ukuu.org.uk>

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;


  reply	other threads:[~2009-04-07 14:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 15:40 [PATCH 00/11] Series short description Alan Cox
2009-04-07 15:40 ` Alan Cox [this message]
2009-04-07 15:40 ` [PATCH 02/11] tty: Use the generic RS485 ioctl on CRIS Alan Cox
2009-04-07 15:40 ` [PATCH 03/11] serqt: initial clean up pass for tty side Alan Cox
2009-04-07 15:41 ` [PATCH 04/11] lanana: assign a device name and numbering for MAX3100 Alan Cox
2009-04-07 15:41 ` [PATCH 05/11] Add support for the MAX3100 SPI UART Alan Cox
2009-04-07 15:41 ` [PATCH 06/11] Only CTS bit is affected Alan Cox
2009-04-07 15:41 ` [PATCH 07/11] Both software emulated and hardware based CTS and RTS are enabled in Alan Cox
2009-04-07 15:41 ` [PATCH 08/11] Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Alan Cox
2009-04-07 15:42 ` Mike Frysinger
2009-04-07 15:47 [PATCH 00/11] Second serial updates (please discard previous) Alan Cox
2009-04-07 15:48 ` [PATCH 01/11] tty: Correct inline types for tty_driver_kref_get() Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090407154008.17182.77930.stgit@t61.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).