Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754744Ab2FIIO6 (ORCPT ); Sat, 9 Jun 2012 04:14:58 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:48152 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754423Ab2FIIOc (ORCPT ); Sat, 9 Jun 2012 04:14:32 -0400 From: Ezequiel Garcia To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Ezequiel Garcia , Yoshinori Sato Subject: =?UTF-8?q?=5BPATCH=206/6=5D=20h8300=3A=20fix=20compiler=20warning=20by=20properly=20inlining=20flat=5Fset=5Fpersistent=28=29?= Date: Sat, 9 Jun 2012 05:13:31 -0300 Message-Id: <1339229611-2326-6-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1204 Lines: 36 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: Yoshinori Sato Signed-off-by: Ezequiel Garcia --- arch/h8300/include/asm/flat.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/h8300/include/asm/flat.h b/arch/h8300/include/asm/flat.h index bd12b31..24e9c93 100644 --- a/arch/h8300/include/asm/flat.h +++ b/arch/h8300/include/asm/flat.h @@ -8,7 +8,12 @@ #define flat_argvp_envp_on_stack() 1 #define flat_old_ram_flag(flags) 1 #define flat_reloc_valid(reloc, size) ((reloc) <= (size)) -#define flat_set_persistent(relval, p) 0 + +static inline int flat_set_persistent(unsigned long relval, + unsigned long *persistent) +{ + return 0; +} /* * on the H8 a couple of the relocations have an instruction in the -- 1.7.3.4 -- 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/