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: 146399 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3310414ljw; Mon, 10 Sep 2018 23:59:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZyX6K8lBcrTeUqaIJLGAQp5BUBxHbY2loscpVeR7/bJpmkGsRbQGseXOtg4a6zxi9neR3b X-Received: by 2002:a50:a38a:: with SMTP id s10-v6mr25474918edb.99.1536649183071; Mon, 10 Sep 2018 23:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536649183; cv=none; d=google.com; s=arc-20160816; b=NN5/b5qUbQW3nwUtNatP+RpRFwuYBcV+Ih/GoEhgqo2WOieRjDxoa0c09sgDxkc/3j 8ioJ6fuDmlrjzu1wrNlMElBd6BZIdmHFk2jfEc6bo74zzp2f34Gf4U7xAYmz/PbxS5jc adiDzc84kJgxtk2yvJlJETlcWDIabNDx5COz1XNAolE+cUyvsdjZQILj3UaU0vV9TQI4 LUxZBsM14Qk5z6Huw9DeUc3J5xQ3F89tV8Y32o2J3p22JoXysjHLdqt3StmfX4iQm/e9 g2LWF1ZR2LdBehCgwoxludDjyAJuHApVDoT7cVuE7nxbN2ZeceD7lXzH3sRFekvKpKbh xCvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature; bh=QvKs9DC48WSYoL5Dj2fJYskPfiaH358LuHW8P79mJF8=; b=P6QNb/CoNK5zGqarv0D+Dz8oOr16Wy3f3eW79O+H5xn1xmwh0i+tkbmF9GkkoHGUR0 l8l9jiXv25sHz+WVsgUEefQ9B6H3GN8YmPXeEO50ex8RdkauY1mYpcu2xS1dlePCO902 IYQ02wlEM/yZMoscD4qOSQAEbYXqpTIx7qlPy2H4ji68LzKeL6RNtUe2qQpvugdCv/pa 5GzF/SdvZ6iWdAmFUjb7x6h0Qq92irxFl0K4QQt832L0ap4CtcEN+uR5y3Vt+UhtMkI6 fKPgt07xXpuiawADLAXKfQ57NmhRdEpDVXi5laX88evuokYGXgQWsEHCZDoKpa4K1RVu GWbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="PHnW6/8Y"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id o33-v6si3805565eda.43.2018.09.10.23.59.42; Mon, 10 Sep 2018 23:59:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="PHnW6/8Y"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 9A9BFC21EBE; Tue, 11 Sep 2018 06:59:33 +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-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_ */