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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB1C5C433DB for ; Mon, 25 Jan 2021 12:25:27 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4CE6822512 for ; Mon, 25 Jan 2021 12:25:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CE6822512 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1l40vt-0000ic-Kl; Mon, 25 Jan 2021 12:25:25 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l40vr-0000iU-UI for linux-f2fs-devel@lists.sourceforge.net; Mon, 25 Jan 2021 12:25:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2Kv+/Y5P5gNLxZ+UZ/EsQcXxKB0Rrc+MUOwiQU8m5dM=; b=liKxOxBVPp5+XRwkRgdY1KRq5q ntGvYafzg6imNwFmqic+3hoGDTTcd741PkHREI6MlXIaG9ErdElaz6rbqoeKsjlcdoi+1NpiniY84 zXy6Nmh1i2A+xZt22rXORoNIDNfpUInaMSOigXgIVWk0oZBwQGrMcmc20fTiYOVLkPYg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=2Kv+/Y5P5gNLxZ+UZ/EsQcXxKB0Rrc+MUOwiQU8m5dM=; b=W QtK/EqOLt5sc2CWQbzTXcluDGOor/pQvcG5LRm30NiYLstOTijJt4z4xJMCq6QaGJcKZZdWxb3Sk1 WRb3XKdyj1zU5M2HjMQV/mvwDECc062LqjV7i1EHNLHOFZ4Y8KPx9qirVsxTliDJ78ujQQaRw7Kr8 l3rpGGw2tSgr546E=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1l40vi-006dfc-3u for linux-f2fs-devel@lists.sourceforge.net; Mon, 25 Jan 2021 12:25:23 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5EA3222F9; Mon, 25 Jan 2021 12:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611577501; bh=qtmXOqJxneNT6Fg5ZV7SMY5GLZOcH8Mz0dyQT4DG0Tk=; h=From:To:Cc:Subject:Date:From; b=NiTVNPuo1Guq4QKFfN6sfcBG1BFpJbOoC+mAt7uwcZTsHXJO5oWIuK5B31l0U7Cwr y5wZftk3pKXrbXGPW0cU4rBQLbUT7Yy1I0zfPHGMXVRb7tEAiJ0FPHLWJK3aU3HEZC QwtOI/4slqIowRXkyFHrjrS5OIT+0+QvVoepCZDVodpFC7/8Im/HaR/9X2QrDeqHct j6G3sgzqNo9lJ8sVSxrgrA1V9Hs60eieQsS5MD86mWB5CAXwNF7q9YgSWuyJfu8qah ssRlTP7G5WNsY8S4n20MqtLISdbtjbqEycUL0WSylAH4a7Y/nyVidP7wrl9RpoDP/q 3g4CZdfwdI5lA== From: Arnd Bergmann To: Jaegeuk Kim , Chao Yu Date: Mon, 25 Jan 2021 13:24:45 +0100 Message-Id: <20210125122457.4119313-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Headers-End: 1l40vi-006dfc-3u Subject: [f2fs-dev] [PATCH] f2fs: fix unused function warning X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jan Kara , Daeho Jeong , Arnd Bergmann , Eric Biggers , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net From: Arnd Bergmann The f2fs_compress_set_level() function is only used for zstd and lz4 compression modes, and otherwise causes a compile-time warning for having no users. Change the #ifdef check to match what calls it. Fixes: c08e95fc6466 ("f2fs: compress: support compress level") Signed-off-by: Arnd Bergmann --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 178bbb79bbcc..c5a69b0543c1 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -467,7 +467,7 @@ static int f2fs_set_test_dummy_encryption(struct super_block *sb, return 0; } -#ifdef CONFIG_F2FS_FS_COMPRESSION +#if defined(CONFIG_F2FS_FS_LZ4) || defined(CONFIG_F2FS_FS_ZSTD) static int f2fs_compress_set_level(struct f2fs_sb_info *sbi, const char *str, int type) { -- 2.29.2 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel