From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E595158218; Tue, 9 Jul 2024 11:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720523746; cv=none; b=biZwDcANzmtDLX3auKgs5DotXBcFV46+kt0C2Ay+ROKThgS487iP0ntCV5s9la5oJZ6LAQJ1pO2AXbWxDG0jD5Yz/yQ4XFImSJw8oFG0l48hKXp0m3fhNKPS0fwl1onbKEN0sH45aPqIoGPFn192b2fpeQg0VlG35QpVnXyW5ck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720523746; c=relaxed/simple; bh=dDxrD2hswP/r4OHR5YVnAAx1KRyKZQAc1fkpIZKgyOU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eEtSWDtMB8wnOStOBr3u7A18cDt8ilEMJ01k2rFYwLM4beQTCM/njLkA3ALkyV2xasxrp0QJEcTl3UqGqtZd4YKZWjhMSvjWHWQKRxvFCqyOtJRS1ZW7K+NRfqjoAaJVa4GpNidD3S4LvSoIj5NrKP+nIDE8pYIqtb9S1ph4jCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RNwbF78X; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RNwbF78X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82224C32786; Tue, 9 Jul 2024 11:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720523745; bh=dDxrD2hswP/r4OHR5YVnAAx1KRyKZQAc1fkpIZKgyOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RNwbF78XDXM7nfGL5UJ9cEMDy2J9A6S4d4ddFZElZjbHE02X+Vg9zRQPLeKejcgI0 tPKnL80hTmum6woeBud2NMJgwNc45bpEG6f1fSfaFdG9+rDOK43nojMry0PFufjSOB W73z0olnd18HUyYz9h8TeY9n3Y+4QqEkIGen2aWo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nathan Chancellor , Chao Yu , Jaegeuk Kim Subject: [PATCH 6.6 095/139] f2fs: Add inline to f2fs_build_fault_attr() stub Date: Tue, 9 Jul 2024 13:09:55 +0200 Message-ID: <20240709110701.854093492@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240709110658.146853929@linuxfoundation.org> References: <20240709110658.146853929@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor commit 0d8968287a1cf7b03d07387dc871de3861b9f6b9 upstream. When building without CONFIG_F2FS_FAULT_INJECTION, there is a warning from each file that includes f2fs.h because the stub for f2fs_build_fault_attr() is missing inline: In file included from fs/f2fs/segment.c:21: fs/f2fs/f2fs.h:4605:12: warning: 'f2fs_build_fault_attr' defined but not used [-Wunused-function] 4605 | static int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate, | ^~~~~~~~~~~~~~~~~~~~~ Add the missing inline to resolve all of the warnings for this configuration. Fixes: 4ed886b187f4 ("f2fs: check validation of fault attrs in f2fs_build_fault_attr()") Signed-off-by: Nathan Chancellor Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Greg Kroah-Hartman --- fs/f2fs/f2fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -4596,8 +4596,8 @@ static inline bool f2fs_need_verity(cons extern int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate, unsigned long type); #else -static int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate, - unsigned long type) +static inline int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, + unsigned long rate, unsigned long type) { return 0; }