Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757856AbZDGOuZ (ORCPT ); Tue, 7 Apr 2009 10:50:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755169AbZDGOtr (ORCPT ); Tue, 7 Apr 2009 10:49:47 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:34152 "EHLO t61.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754493AbZDGOtq (ORCPT ); Tue, 7 Apr 2009 10:49:46 -0400 From: Alan Cox Subject: [PATCH 01/11] tty: Correct inline types for tty_driver_kref_get() To: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Date: Tue, 07 Apr 2009 16:48:07 +0100 Message-ID: <20090407154804.18020.83059.stgit@t61.ukuu.org.uk> In-Reply-To: <20090407154715.18020.44616.stgit@t61.ukuu.org.uk> References: <20090407154715.18020.44616.stgit@t61.ukuu.org.uk> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1172 Lines: 33 From: Adrian Bunk 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 Signed-off-by: Alan Cox --- 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; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/