From patchwork Tue Sep 11 06:58:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 968427 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PHnW6/8Y"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 428bPy5Px0z9s1x for ; Tue, 11 Sep 2018 16:59:50 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 48C00C21EC3; Tue, 11 Sep 2018 06:59:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 352CBC21EC9; Tue, 11 Sep 2018 06:59:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5B003C21EFD; Tue, 11 Sep 2018 06:59:10 +0000 (UTC) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by lists.denx.de (Postfix) with ESMTPS id 671E3C21E4E for ; Tue, 11 Sep 2018 06:59:05 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id t84-v6so9904052pgb.5 for ; Mon, 10 Sep 2018 23:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wv9JVKXeoEx9dUaoFqDtcAk8/G9k+/c2CohtUU6Bgxw=; b=PHnW6/8YU6+a+KhRKj1u1fJkijArwAHCFdbkKbPey+sQ2/bjORRMTfMyuNZNYh1qGG 3xqZZAcBIbO/NsFyFLMJOvfrkenQuUO5qVwTJaEfRO+yMe1wFl3Lw0wjKvq3cORA9OHt 2E5d2/QE5pkKvzq7p7QjTuHdPPfjKmoQeDH+8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wv9JVKXeoEx9dUaoFqDtcAk8/G9k+/c2CohtUU6Bgxw=; b=Jz0aLs+BZMGlFbCZJDoCaaxOlpLaUFdODGEy/jNKjN1tj8B86Zhfpuov7E9btm12sk 4Fa8f2lOG/T7ZZzw3T0YZesQ6W6fqaVfniMcCw/1EeDACj5tq4+2UrFtIW74xUdz5up9 qEwl8lGNuKL6X9KRk/nol6JEiNmuh4H4a30HJ7j5oNjpedLQZW9Ff4Sx9DAj0gQxZp4b DmBKKrvq4myeR6A6IS+QWpxBRWHGQEMd7MO0il1fkyq43vsgXhQOhZjUk4hYrYGFdO8S UxfOKw2nFWCahwP+xxS5CaGAg+BgJECjKTMuGjBKdoVWjwES7M4kx/q/pHZGToI7WhCp wMWA== X-Gm-Message-State: APzg51BW72wdDdru+sRuzwXZNZaL1kqKI4D8oxiVsoBFwzq/Rqm3Y8sc Vh/zbiZaAtz36OTNQDu6JXwtQg== X-Google-Smtp-Source: ANB0VdbJGcxmj8mxis9jgNziCKKYcdU+EEXCzircYAxX7sbTrctHl5MkI6ny5sNf/UAr2PPN8UnQCg== X-Received: by 2002:a63:7d48:: with SMTP id m8-v6mr27077926pgn.0.1536649144052; Mon, 10 Sep 2018 23:59:04 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id y124-v6sm25166009pfg.63.2018.09.10.23.59.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 23:59:03 -0700 (PDT) From: "Akashi, Takahiro" To: trini@konsulko.com Date: Tue, 11 Sep 2018 15:58:57 +0900 Message-Id: <20180911065922.19141-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180911065922.19141-1-takahiro.akashi@linaro.org> References: <20180911065922.19141-1-takahiro.akashi@linaro.org> Cc: u-boot@lists.denx.de, xypron.glpk@gmx.de, agraf@suse.de Subject: [U-Boot] [PATCH v3 01/26] fs: fat: guard the content of include/fat.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: AKASHI Takahiro The whole content of include/fat.h is private to FAT implementation and then should be guarded with CONFIG_FS_FAT. Signed-off-by: AKASHI Takahiro --- include/fat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fat.h b/include/fat.h index 09e142368585..c02839dcb040 100644 --- a/include/fat.h +++ b/include/fat.h @@ -9,6 +9,8 @@ #ifndef _FAT_H_ #define _FAT_H_ +#ifdef CONFIG_FS_FAT + #include #include @@ -202,4 +204,5 @@ int fat_opendir(const char *filename, struct fs_dir_stream **dirsp); int fat_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp); void fat_closedir(struct fs_dir_stream *dirs); void fat_close(void); +#endif /* CONFIG_FS_FAT */ #endif /* _FAT_H_ */