Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp735659pxb; Mon, 16 Aug 2021 16:44:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzBhHzg5wdoeAjndGTxTglPLKZO+Gix9VnqlwhcMxd4fx6gm+ONRQB5fMnfxwG/VM3KAgM X-Received: by 2002:a92:c5c8:: with SMTP id s8mr370006ilt.140.1629157457565; Mon, 16 Aug 2021 16:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629157457; cv=none; d=google.com; s=arc-20160816; b=TYmQ0PejvKYh0Ps2LgfGtOdEUWzGIgw3h5qYwWuP0oRAgKtct+npX4lrlrDP/4Enbb eJPX8WIa23iby2x24n2U546IwR4ySg8bDgq2SMc3bfCyaIbYXh8HMcHNf6Yow18nBWli m33ebounsRMgkmXdoTLu6d5Hmy5VWTHsQ6tY53EPYD8acNUf9tjvye6Upc08SW5wcF5F ym5EqE+jjrn6eipbGvy+Eo+NEnvSM/9CLrKiewdpzEp4GEA+FPv10MxirjsQfaKeN+ft 8OsKVx4lucyvxfznSwCmqAd9iTDU/GI/oAk+i2a7PDHYwyJx5TfCYMPB+Aqr+tGN7EuP MGRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IOmX+q8vEvS4lP/VvyMotGP6rDUcNUN10UnkQJ7s2to=; b=FVRrT8ImwC53gxQ8GMrS4xh4G+PsuK8YwJqr+pwWzNKvG+jzRStoGBEXT+Ci4lCPFX L67N5/NjUTK702OOLk0gdXlc3zzxc9pFbNAxxvttm8Ny2eS11ddyAYqqUPZl5NoLe437 ipmrcLzu/4GTpDWdbupfBQlAvOXOYojDb5UNBoVF9jTXjv/CfcCO76UQCjFNDzplMgu8 7u0DY0ByfnNy5IJu6mLyHAUqPAOe5GGtzvSn5xFc3pMuoiiRnza0TGRFO6ACvEJPh2sb gG+2KGBnLm8/MIZd0S90w1SXBxdjgS55pQjq0mQzurFWfBJwkN71dh7nn+3XJbeREtUQ RzMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTWVsbUt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si450944jal.57.2021.08.16.16.44.04; Mon, 16 Aug 2021 16:44:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTWVsbUt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232771AbhHPXnu (ORCPT + 99 others); Mon, 16 Aug 2021 19:43:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:59860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232726AbhHPXnu (ORCPT ); Mon, 16 Aug 2021 19:43:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2182760EE0; Mon, 16 Aug 2021 23:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629157398; bh=NrRsJNff5j+swFa8HAxh+3BW3YLAq/RCrLszGjLzw9k=; h=From:To:Cc:Subject:Date:From; b=uTWVsbUtGlZ8JfRT3RHEsJWL0fhLyk3snGshZLfgNl52/DOVnTzVof8jh41BRQOQ6 zRhTqzxmyHopbF2jvBa5INLeDwj4o3z7iElodM6sc6P9yVf6grdkDKAe/lHso2nqPC TwNw2uMWzVDJeb31dvEsNESuk0tAeVDC6Xm5ZzW7eJH0+BEGsqkftGgwbTXiGZ3KRr lLF3i/ykew6s777lGAfitw9HWx42oKHr0jEL/XrfE8Bnd12xHiHGXnHvwHdp2avQqF oT7u0gfe/kp8i0vQR2U3vTj6xTxMorZwPqmG6xyXLIj2LE8DQIiE6A4kQNChbgJ1Jo Mw+UItSjmIeNw== From: Nathan Chancellor To: Jaegeuk Kim , Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] f2fs: Add missing inline to f2fs_sanity_check_cluster() stub Date: Mon, 16 Aug 2021 16:42:47 -0700 Message-Id: <20210816234247.139528-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0.rc2 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without this, there is a warning in nearly every fs/f2fs/ file when F2FS_FS_COMPRESSION is not set: In file included from fs/f2fs/super.c:31: fs/f2fs/f2fs.h:4251:13: warning: unused function 'f2fs_sanity_check_cluster' [-Wunused-function] static bool f2fs_sanity_check_cluster(struct dnode_of_data *dn) { return false; } ^ 1 warning generated. Fixes: 1495870233e7 ("f2fs: compress: do sanity check on cluster") Signed-off-by: Nathan Chancellor --- fs/f2fs/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 0c978f934dcc..fe1097e678da 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -4248,7 +4248,7 @@ static inline void f2fs_put_page_dic(struct page *page) WARN_ON_ONCE(1); } static inline unsigned int f2fs_cluster_blocks_are_contiguous(struct dnode_of_data *dn) { return 0; } -static bool f2fs_sanity_check_cluster(struct dnode_of_data *dn) { return false; } +static inline bool f2fs_sanity_check_cluster(struct dnode_of_data *dn) { return false; } static inline int f2fs_init_compress_inode(struct f2fs_sb_info *sbi) { return 0; } static inline void f2fs_destroy_compress_inode(struct f2fs_sb_info *sbi) { } static inline int f2fs_init_page_array_cache(struct f2fs_sb_info *sbi) { return 0; } base-commit: f4b05791dda93edb03ebb6b48f1be104b2e64274 -- 2.33.0.rc2