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 D9A8C253F0C; Tue, 29 Apr 2025 17:55:20 +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=1745949320; cv=none; b=eyYYIT/ITRp7hkavMDDZM8pqlythztYtvh5qhmGlWvg4KslajMuQDCfejIzfUbhuOeA8p680WnHih7L/Wn4ACeIbR2f1Y1Dx1nm7lEbcufuSeUi+SvuQ0nR4Amsuwrw9ZonD48e99PhJ8+l6H2hcPi0jLbzLr1douR3SGVjCYJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745949320; c=relaxed/simple; bh=urJ94jng/aUwoDd+uNH+dd63Q+howVAJPsiu04TavDo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RQs2Nmr9FNu3KXSpffObwew3jqKnE20na58bb4CIiiPgKoqhuALWSsQGCMGYIwu/riSxuSFOAr+RUENXoPfz8hNlLiliO57Us07ORGuHWeDADsgOJvmu2wTdvkKT2YajmVvlaaffYZz1ATrqu7eQwQJfqTPz7s+LMCg6EJCxqcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wWEhR/1m; 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="wWEhR/1m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56BDBC4CEE3; Tue, 29 Apr 2025 17:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745949320; bh=urJ94jng/aUwoDd+uNH+dd63Q+howVAJPsiu04TavDo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wWEhR/1mm+8OAZs6FqDENDEAPPWYiZvobiGfA0t76x322x3RONwwlwsOU6wiuNMdc JoIDjHtQd1PxHFK1pN+pE1I/izuBgceawsISpGJTDpyVI/YeD4bWVrxQXgy114l0CG 0E7vJ6mkcYZuhPD9He7U+WpQaIx4A6o7vS5dHJFU= 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 5.15 252/373] f2fs: Add inline to f2fs_build_fault_attr() stub Date: Tue, 29 Apr 2025 18:42:09 +0200 Message-ID: <20250429161133.491704661@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161123.119104857@linuxfoundation.org> References: <20250429161123.119104857@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-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 @@ -4376,8 +4376,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; }