From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79DE4C433F5 for ; Tue, 5 Apr 2022 13:49:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 17B4A83AF5; Tue, 5 Apr 2022 15:49:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="B3ZDiLRs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AED9083B10; Tue, 5 Apr 2022 15:49:11 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1E4638393B for ; Tue, 5 Apr 2022 15:48:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 85201614FB; Tue, 5 Apr 2022 13:48:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C89FDC385A0; Tue, 5 Apr 2022 13:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649166537; bh=xt4djKqcCtjJqV7H1sCK/p0PQ74sEk2mYVPnqxb0li8=; h=From:To:Cc:Subject:Date:From; b=B3ZDiLRsmsUP+aVogRGo5DF2ouIJawlTDPVfPLgJpp32f25XImpJaZYQESh+G+0Yx l87x0B0lzmYejiWF3BpoN3KWCTjx+RbpTkoiDorXbJoYsPpsSqQqFqoIhL1Pc1xLHn XZVhvvNTf49Wh4sHck2OQbYFsu07cuZ+3cmPknrebT0kuJcW87iDIHfPTGF4jhv8CU 0y+O74tNSmH/k0mhQWzwnd24Cj2tnVTHmnsW4tBFN7J9TOwTql1T5mwbKJQ9L/buGl 1SGkpdFP3nGY2A+ZIvq8xPaFHwjdKp2ANzibaCNHvHtwt30C4gOqYP/LY1Z56IKiXj JmpA6m7m83J6A== Received: by pali.im (Postfix) id 830177B2; Tue, 5 Apr 2022 15:48:54 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Simon Glass , Heinrich Schuchardt , Sean Anderson Cc: u-boot@lists.denx.de Subject: [PATCH] fs: Allow to compile FS_FAT only for proper U-Boot Date: Tue, 5 Apr 2022 15:48:32 +0200 Message-Id: <20220405134832.1539-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean CONFIG_SPL_FS_FAT cannot be disabled when CONFIG_FS_FAT is enabled. Fix it. Signed-off-by: Pali Rohár --- fs/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index 023f89cafec2..5c3b1ac09e53 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -175,7 +175,7 @@ struct fstype_info { }; static struct fstype_info fstypes[] = { -#ifdef CONFIG_FS_FAT +#if CONFIG_IS_ENABLED(FS_FAT) { .fstype = FS_TYPE_FAT, .name = "fat", -- 2.20.1