Message ID | 1384326119-3491-1-git-send-email-olof@lixom.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 581469F3A0 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 13 Nov 2013 07:01:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8059E2057F for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 13 Nov 2013 07:01:49 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5E3D8204B0 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 13 Nov 2013 07:01:48 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgUSL-0005N6-OA; Wed, 13 Nov 2013 07:01:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgUSJ-00066F-9H; Wed, 13 Nov 2013 07:01:39 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgUSH-00065u-5b for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2013 07:01:37 +0000 Received: by mail-pd0-f182.google.com with SMTP id y13so5279871pdi.27 for <linux-arm-kernel@lists.infradead.org>; Tue, 12 Nov 2013 23:01:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=a+sUla69kwSCLdSAcJrUFXjTn87mPOb41ZxjZrifI58=; b=XpR1HHVmteEuImTeveOh3Jo2N+QZcF0ev4cLdl0EAGRaKX+8jaUMNenaEuBRxmdSj0 RSyur5Er/d0EGLGSrV7G1LQGlN4rwKwmcTp3sJKotJKL8a7TM7lXhpMaOEpYtLTy54EJ eWPGPTwraezpg7EIkcPtUdkZcBHIYALldo+FuEwdaZ9xaLrFQwVXO2gEvFV6s9NoqcaP pKsAbJIogzScKXdh20Mi3F4DKVB+3R2M/dYPzyYoK+OENSWl/jFT+AaSTPA9WDEaSlSk Bs/QIzuZjJPhYj7Vl2nEY/EpznGv84IEQhX6+XEo7AZw+hRoRDVGVxea1h64hhvJtZkd BIwQ== X-Gm-Message-State: ALoCoQkbbb3yIrpzUxKOzIAaR5U5Vf6NgRoH/Syhq4sv9LihLYOlZ0bpilTelpeQNMrZl0j32g5m X-Received: by 10.66.65.234 with SMTP id a10mr11869568pat.165.1384326075648; Tue, 12 Nov 2013 23:01:15 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id so2sm42203091pbc.5.2013.11.12.23.01.14 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Nov 2013 23:01:15 -0800 (PST) From: Olof Johansson <olof@lixom.net> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: Fix warning for V7M builds Date: Tue, 12 Nov 2013 23:01:59 -0800 Message-Id: <1384326119-3491-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131113_020137_325831_1FF5EFA2 X-CRM114-Status: GOOD ( 10.91 ) X-Spam-Score: -1.9 (-) Cc: Olof Johansson <olof@lixom.net> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 6125f25..dbf0923 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c @@ -856,7 +856,7 @@ static void __init kuser_init(void *vectors) memcpy(vectors + 0xfe0, vectors + 0xfe8, 4); } #else -static void __init kuser_init(void *vectors) +static inline void __init kuser_init(void *vectors) { } #endif
Fixes a harmless warning when building for V7M (!MMU): arch/arm/kernel/traps.c:859:123: warning: 'kuser_init' defined but not used [-Wunused-function] By making the stub static inline instead of just static. Fixes: f6f91b0d9fd9 ('ARM: allow kuser helpers to be removed from the vector page') Signed-off-by: Olof Johansson <olof@lixom.net> --- arch/arm/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)