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 5EEC1C433F5 for ; Fri, 29 Apr 2022 14:36:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E3A1783F11; Fri, 29 Apr 2022 16:36:44 +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="AjyWd6Np"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7BE7E83F06; Fri, 29 Apr 2022 16:36:42 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 B116783F02 for ; Fri, 29 Apr 2022 16:36:39 +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 BF029612FF; Fri, 29 Apr 2022 14:36:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C3E5C385A4; Fri, 29 Apr 2022 14:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651242995; bh=oTPV5v5+M2OoXtF8tq46lRPIeBJIzSKUnmbKeXdKQ5Q=; h=From:To:Cc:Subject:Date:From; b=AjyWd6NpECO8UPZcuQAdDTV4JyQA1d33nfecqEPBHI8Nm9mxIdki4HmCLCg4Vx/h4 bN4/hojhZcXZJ3VZL95Iqe4Pr3CL0+QGR2uXagrBFcpSfkQZZLqL3/bktKHc+cH9+k r/xzPZivCRG/nufMH7yY7d7DU06prRuwjh+tX2/r/rwxgEqJzhzXCJKq9ky1YANfjH kMi/LYZbFwO2obItD6pCjtMvXHrKaPZ8uYc/wXRaxN4G2+iC5MxEYQQ1azb4zV6vsK c6sj4gWVePX7sBpQgI+612tkTUZaoDTjWcBMpkCqrwW9uOXkyy+YW8j4fTHQGoNhSY GfGZkWahHo6Yg== Received: by pali.im (Postfix) id 968BBCAF; Fri, 29 Apr 2022 16:36:32 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Patrick Delaunay , Simon Glass Cc: u-boot@lists.denx.de Subject: [PATCH] misc: fs_loader: Fix compile warnings when CONFIG_CMD_UBIFS is enabled Date: Fri, 29 Apr 2022 16:36:23 +0200 Message-Id: <20220429143623.30815-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 drivers/misc/fs_loader.c: In function ‘mount_ubifs’: drivers/misc/fs_loader.c:46:12: warning: implicit declaration of function ‘ubi_part’ [-Wimplicit-function-declaration] int ret = ubi_part(mtdpart, NULL); ^~~~~~~~ drivers/misc/fs_loader.c:53:9: warning: implicit declaration of function ‘cmd_ubifs_mount’ [-Wimplicit-function-declaration] return cmd_ubifs_mount(ubivol); ^~~~~~~~~~~~~~~ drivers/misc/fs_loader.c: In function ‘umount_ubifs’: drivers/misc/fs_loader.c:58:9: warning: implicit declaration of function ‘cmd_ubifs_umount’ [-Wimplicit-function-declaration] return cmd_ubifs_umount(); ^~~~~~~~~~~~~~~~ Signed-off-by: Pali Rohár --- drivers/misc/fs_loader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c index 0139bd66ba76..5b4d03639c35 100644 --- a/drivers/misc/fs_loader.c +++ b/drivers/misc/fs_loader.c @@ -20,6 +20,10 @@ #include #include +#ifdef CONFIG_CMD_UBIFS +#include +#endif + DECLARE_GLOBAL_DATA_PTR; /** -- 2.20.1