From patchwork Tue Oct 9 15:23:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12073 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9459123F6D for ; Tue, 9 Oct 2012 15:23:43 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4AAC5A18CE4 for ; Tue, 9 Oct 2012 15:23:43 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so11480943iej.11 for ; Tue, 09 Oct 2012 08:23:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=qLgug5n3+lP/qTKX07s2eZUpR0Gqc76QWwKnRxMLGEw=; b=EQK9O3wuXv8CbGJFEa+3BzE5prP3BRCP6vpcqzQpO1/eF63PwrvjvlpYTUPhm+HLQU 58OY6fyveEbnyUWRPCCKAY3nAn5goQGF1lxfZz1KLZlhRRXjWgIY/1DzAv8A26E0rGeP UCjjYJGLpm93ivpKHy8SoF7tWQCYU/ycrjynOjRCR9w3txFIZy0jEyIDhyP0BqM44+jO zurVReVw3Hz3/R8NsNbcc35mHPzP7vcIhephILN/3aIjPFqJneLxIknkxnvgx6rPAeMl Y44juPojdhSyzO8m857scxuyW8vzSY0pEVg1Rg0W+iVBP7w9EwDkrsu3kknjbx/yRc7k cqVw== Received: by 10.50.159.194 with SMTP id xe2mr2007833igb.62.1349796223082; Tue, 09 Oct 2012 08:23:43 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp73105igt; Tue, 9 Oct 2012 08:23:42 -0700 (PDT) Received: by 10.180.79.103 with SMTP id i7mr5477562wix.13.1349796221775; Tue, 09 Oct 2012 08:23:41 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.171]) by mx.google.com with ESMTPS id cq5si23632934wib.3.2012.10.09.08.23.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Oct 2012 08:23:41 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0Lsz0c-1TXGlw3BaU-011zmP; Tue, 09 Oct 2012 17:23:27 +0200 From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Bryan Wu Subject: [PATCH 8/9] ARM: binfmt_flat: unused variable 'persistent' Date: Tue, 9 Oct 2012 17:23:02 +0200 Message-Id: <1349796183-30648-9-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349796183-30648-1-git-send-email-arnd@arndb.de> References: <1349796183-30648-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:VMyqPdIpDom/t/r3HEzLaFJMdLjM6B0GwUM2j+Sh1lO 2GQ6zXUsmEu2PFt0DmXSqA6g/k7dehhEqzlXJDttzBqUcfRqe6 0tPu+iZqVAVPB06+jahrPREVFdmt2V5ZWeEJOMLEzlSuhG6HEp akZd8vVZemnmOIJphmXkjZKD1SjhRcwdR4xaJqw6uxIie4UHF1 ZhNKGgHHUDKttB6gAtJYGNuBqXayHCJL7gpa6hPGO1q72XOPyC swpTzZABTmOEO1Ecn6LFNUrI/0oOOYN06Y10TWhR5czbUCniV1 FNQFnkGBQ7eLj6W+66COoiztR470U0+ICRsbTsjqQf/IjgmhId ZfysPpALNc2nRH3SKCW0a+nYb2/25jvBr2Tz71iWsEqwzXWMPu Gww6QoZvPzpdxnIuxEy+bfKWZjq5deUtIE= X-Gm-Message-State: ALoCoQmLmh3o987oJfGGWptwrGGWqP4jhWiZfDVEMbapB9Rw0WloCdyOdiAMflN6grybmrR3KYql The flat_get_addr_from_rp() macro does not use the 'persistent' argument on ARM, causing a harmless compiler warning. A cast to void removes that warning. Without this patch, building at91x40_defconfig results in: fs/binfmt_flat.c: In function 'load_flat_file': fs/binfmt_flat.c:746:17: warning: unused variable 'persistent' [-Wunused-variable] Signed-off-by: Arnd Bergmann Acked-by: Greg Ungerer Cc: Russell King Cc: Bryan Wu --- arch/arm/include/asm/flat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/flat.h b/arch/arm/include/asm/flat.h index 59426a4..e847d23 100644 --- a/arch/arm/include/asm/flat.h +++ b/arch/arm/include/asm/flat.h @@ -8,7 +8,7 @@ #define flat_argvp_envp_on_stack() 1 #define flat_old_ram_flag(flags) (flags) #define flat_reloc_valid(reloc, size) ((reloc) <= (size)) -#define flat_get_addr_from_rp(rp, relval, flags, persistent) get_unaligned(rp) +#define flat_get_addr_from_rp(rp, relval, flags, persistent) ((void)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