From patchwork Sat Jun 9 08:13:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 163894 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 07FA8B6FD4 for ; Sat, 9 Jun 2012 18:18:13 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SdGoI-0006Tz-A7; Sat, 09 Jun 2012 08:14:14 +0000 Received: from mail-yw0-f49.google.com ([209.85.213.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SdGoD-0006Tl-1R for linux-arm-kernel@lists.infradead.org; Sat, 09 Jun 2012 08:14:09 +0000 Received: by yhjj52 with SMTP id j52so2003450yhj.36 for ; Sat, 09 Jun 2012 01:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=5uY9c2Qcg6v9ic/ZgxVXo+fyS2wVzgL3ujPQIDgeAYY=; b=gR4eOaR/yQXBks+wYvUvWNWPni0lH2e9hujzGIeT5yJQ3/JLN2pP4m7sNxu0sWp0Gx mrkl7Rb4UeQ1kM7s2wK+MCMr3E0tF5jO1KCOT5t8V7I9kLWd2KTc9X2yl3yNoOHLmhNL pkE3QSd2c4mq6oNjHZQqXTdt1I8qmBZyOexKsMvv8CpP2LNwbDvCTgOk90d/DXDaldgy wUTViyDB9suuky4dFP0qUSWAv0jw6dVI/QPCpkNlL86VJPdB0G8b6YpQsVH9A+Cp8YvH pnsAv6FHzORUXy0W/MG9VZx/eoBiLW1J6AC8Ln5XNIJ9AoVu4pEMgtndqQxYyTpOfUai Pl8w== Received: by 10.101.152.35 with SMTP id e35mr3443118ano.30.1339229647108; Sat, 09 Jun 2012 01:14:07 -0700 (PDT) Received: from localhost.localdomain (201-212-106-54.prima.net.ar. [201.212.106.54]) by mx.google.com with ESMTPS id l13sm13854318ann.2.2012.06.09.01.14.05 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jun 2012 01:14:06 -0700 (PDT) From: Ezequiel Garcia To: linux-kernel@vger.kernel.org Subject: =?UTF-8?q?=5BPATCH=202/6=5D=20arm=3A=20fix=20compiler=20warning=20by=20properly=20inlining=20flat=5Fset=5Fpersistent=28=29?= Date: Sat, 9 Jun 2012 05:13:27 -0300 Message-Id: <1339229611-2326-2-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1339229611-2326-1-git-send-email-elezegarcia@gmail.com> References: <1339229611-2326-1-git-send-email-elezegarcia@gmail.com> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (elezegarcia[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: linux-arch@vger.kernel.org, Ezequiel Garcia , Russell King , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org This patch removes the following warning: fs/binfmt_flat.c:752: warning: unused variable ‘persistent’ There is neither change in functionality, nor extra code generated. Cc: Russell King Cc: Signed-off-by: Ezequiel Garcia --- arch/arm/include/asm/flat.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm/include/asm/flat.h b/arch/arm/include/asm/flat.h index 59426a4..6ef6cc5 100644 --- a/arch/arm/include/asm/flat.h +++ b/arch/arm/include/asm/flat.h @@ -11,6 +11,11 @@ #define flat_get_addr_from_rp(rp, relval, flags, persistent) get_unaligned(rp) #define flat_put_addr_at_rp(rp, val, relval) put_unaligned(val,rp) #define flat_get_relocate_addr(rel) (rel) -#define flat_set_persistent(relval, p) 0 + +static inline int flat_set_persistent(unsigned long relval, + unsigned long *persistent) +{ + return 0; +} #endif /* __ARM_FLAT_H__ */