From patchwork Fri Oct 2 06:06:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Warren X-Patchwork-Id: 525393 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 492BD1402C4 for ; Fri, 2 Oct 2015 16:07:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2336F4B8CC; Fri, 2 Oct 2015 08:07:06 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BHzToaNdBD8m; Fri, 2 Oct 2015 08:07:06 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3DE6C4B76B; Fri, 2 Oct 2015 08:06:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 90B844B88C for ; Fri, 2 Oct 2015 08:06:25 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PxYd4OzUNS1D for ; Fri, 2 Oct 2015 08:06:25 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from avon.wwwdotorg.org (avon.wwwdotorg.org [70.85.31.133]) by theia.denx.de (Postfix) with ESMTPS id E218D4B88E for ; Fri, 2 Oct 2015 08:06:21 +0200 (CEST) Received: from severn.wwwdotorg.org (unknown [192.168.65.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by avon.wwwdotorg.org (Postfix) with ESMTPS id D1AE466B0; Fri, 2 Oct 2015 00:06:19 -0600 (MDT) Received: from dart.wwwdotorg.org (localhost [127.0.0.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by severn.wwwdotorg.org (Postfix) with ESMTPSA id C0BF6E464B; Fri, 2 Oct 2015 00:06:18 -0600 (MDT) From: Stephen Warren To: Tom Rini Date: Fri, 2 Oct 2015 00:06:07 -0600 Message-Id: <1443765973-5897-4-git-send-email-swarren@wwwdotorg.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443765973-5897-1-git-send-email-swarren@wwwdotorg.org> References: <1443765973-5897-1-git-send-email-swarren@wwwdotorg.org> MIME-Version: 1.0 X-NVConfidentiality: public X-Virus-Scanned: clamav-milter 0.98.6 at avon.wwwdotorg.org X-Virus-Status: Clean Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH V3 04/10] fat: ff: add ifdef to avoid unused function warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Without this, any board that doesn't enable read-write FAT triggers: fs/fat/ff.c:1331:6: warning: ‘gen_numname’ defined but not used [-Wunused-function] ... since gen_numname() is not referenced from dir_register() is ifdef'd out. Signed-off-by: Stephen Warren --- v2: New patch. --- fs/fat/ff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/fat/ff.c b/fs/fat/ff.c index 345c174155d1..478daa7d6b0b 100644 --- a/fs/fat/ff.c +++ b/fs/fat/ff.c @@ -1374,6 +1374,7 @@ void fit_lfn ( /*-----------------------------------------------------------------------*/ /* Create numbered name */ /*-----------------------------------------------------------------------*/ +#if !_FS_READONLY #if _USE_LFN static void gen_numname ( @@ -1426,6 +1427,7 @@ void gen_numname ( } while (j < 8); } #endif +#endif