From patchwork Tue Sep 4 07:49:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 145852 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3362664ljw; Tue, 4 Sep 2018 00:50:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdaw5qTo0sei3VrxW6t0dpJVdKvtLzhG+RgPQRcintrqnN4VIkbsHa79c3n3wCVlQpRNOAC0 X-Received: by 2002:aa7:d80e:: with SMTP id v14-v6mr35761638edq.255.1536047422890; Tue, 04 Sep 2018 00:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536047422; cv=none; d=google.com; s=arc-20160816; b=Tc5rtXAN1TQ5poP8UOqZSA2sB+fPNeVUsJl35SSovlilL0oLj5wElbN9jpib/r6SHY 371tKVoq/dBG6FTPJHgAcDBbBV5FS19AMZ5xkVT3Pi37MxaxulZqBqMRgPXF4KdgVW4U Sa8akLipIVVzLc58GzUykcm9P8GRSf9jHNrZ+T71bp540U1zjWhPlX0RHlxKRuTNGzYP EFxq7vMN9is4D0pDpZo+0mVBeapCZySrcn5zRzZ5aTyT4PVMk6Z4eAGqOB0oSyrQZO1n IRdL71YmcN9fxt+J/o3TOfsMQwvqPsVmOvKJZo3hLhS+GTDYUHAfiNhtojdvgOP5gO1r fEAw== 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:arc-authentication-results; bh=wFYq1b/f3J5R8GQpkk0IO4td4eSz3F7thuIadTBgj0w=; b=SV11BDPiyQzBXc1h6G9FTm8pzkWMOzvclOtXfYg8IL0f33G9NEe8MExA/QOs1tKd3U r3NDr3Lu7xZQ/Ti6iALYj+b5O3LaLRpjBMYPsR4ZH6DJrurdLtbnuXXyl0iITx6W3/6z r/Aume4s7KQLUrugO4oFxdbX0pSPO0z7azLjLStVHQCH01W+Qgtni1Nhkbglzi9HaS/e ni3oLHr+6bHbY3C/LUPumnlR1yfcPJmLk3cBo0JJtWCor0L9mDQBTo9lU3YvQrvnpcYS vyUbrKJ4zAtssonGRBOpwgFhQXz/l54TS3gxzSmzakF7Wx3Rjn399SgMTtcSz+K1Xycp pTUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h7+w2UKh; 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 d30-v6si42578edn.311.2018.09.04.00.50.22; Tue, 04 Sep 2018 00:50:22 -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=h7+w2UKh; 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 68F4EC21F34; Tue, 4 Sep 2018 07:50:19 +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 22ADAC21E4E; Tue, 4 Sep 2018 07:50:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8C1B6C21EFB; Tue, 4 Sep 2018 07:50:00 +0000 (UTC) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by lists.denx.de (Postfix) with ESMTPS id 03274C21EE8 for ; Tue, 4 Sep 2018 07:49:56 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id b12-v6so1233278plr.8 for ; Tue, 04 Sep 2018 00:49:55 -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=DfRzWPWQ4lB7I4JLvE23YhmWMHI3MlCV+5OELHUfB3w=; b=h7+w2UKhBGPP6nPrKGuhzryHrtsZRKD9HjhsfQHWox2DWWcV/4Hyku0p8RxpGwCgJA +ZXLTjKEOg+dlmQZ1Ah2JNC/uqHD64K0tM5ZHSUJq1BZnxDzaG254BAmzTMyJg8qg+9U 4cCtLwNuFd2v661+zOHnc5M8sgcEK+YHj84Og= 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=DfRzWPWQ4lB7I4JLvE23YhmWMHI3MlCV+5OELHUfB3w=; b=oY11dJLtZHyoYJxt23/m+kqoCuf/E1P6T7p9Jtivj+sYbr6zCUXC62FDjJ0NxnFUwC 6D7bDhw5rV4SNsBvmAS13GReOwSV9eqZWPwRb3+crx9Usy5lIhzBfzLA/SxrezWL91+t cYNhi9lzgJRSgMuqyaZLlL6dDG0ZIoGTDx9jN3HZf4qFDswnu3lTlfTRP9cl9ifYLT05 dPjMDeAtYtTnvdg2QmGsq/xWuiTAmq0uySJ7bGDP5m6NNb103ji1uiKJ81RNj6oShRj3 dKGMUwnuJTEFdbdlRyRRwMVe7Zo+HcRvq3tyy1rD0sKrfo3FZT1dFymuYse5A/R/oohg 9EgA== X-Gm-Message-State: APzg51DGrlD8JlKZX82lRCEkIDv9M6ES48ekhqwUVym9toiiCIibaGR9 Px3f6r/WwPHP3b4W3+rNSvi9Ww== X-Received: by 2002:a17:902:158b:: with SMTP id m11-v6mr32400288pla.102.1536047394675; Tue, 04 Sep 2018 00:49:54 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id a90-v6sm37267701pfg.106.2018.09.04.00.49.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 00:49:54 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com Date: Tue, 4 Sep 2018 16:49:26 +0900 Message-Id: <20180904074948.18146-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180904074948.18146-1-takahiro.akashi@linaro.org> References: <20180904074948.18146-1-takahiro.akashi@linaro.org> Cc: xypron.glpk@gmx.de, agraf@suse.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 01/23] 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" 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_ */