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 9BF5C210FB; Thu, 15 Aug 2024 14:32:29 +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=1723732349; cv=none; b=C1R0EEJb+r/tfE88zLPYqMXaYVmraLO9mGInlTusmlwZkQs0fFysoSx6549k1RCxuWEgRP+VQgE2cWC6lU9Cm3P4aw7Rqkfer4wIQ4G7smrka9YTh85EVzzXVukhyEhnFQNpszXidp9IXwMsq+tlCQ2Rt38q0PMTuLnZxzuMxF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723732349; c=relaxed/simple; bh=+K6nFJBDKd9xhNdrQ2wVcuozUNr7xWXu6Y4PzdnEkwE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EulEchif28CcHVCIIdOj/ycpcmsoRtNE3LEw/xRQWyfP0tkDJ4wL5QG5Tf6+cup7daGTgTXTugFs8m2Wqaz9TSl0CSsp3jBTQsGwFTgxn/faIEU12vkNrk8WgpymBnTiVk2QMn20hVNsIE6mW2m/VTeKn3twZs9G3QzSNVwGLTg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Bnu5JSIO; 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="Bnu5JSIO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22B84C32786; Thu, 15 Aug 2024 14:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723732349; bh=+K6nFJBDKd9xhNdrQ2wVcuozUNr7xWXu6Y4PzdnEkwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bnu5JSIOs/H75Fazhf4A8hJoYn4loet5DmroZuSrDWgkIJPz6S35bcj933uCf7eOC A15Oi62Fn/Nv3K398Mj5Fn/az6Khxt/e1970rEFn4+l1YVmniqs+unLj69Asy8oz8y RfNv9sUPbKibnesxJS1dIlHqOuyhm/LuyYTad6nc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ryusuke Konishi , Alex Shi , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.10 121/352] fs/nilfs2: remove some unused macros to tame gcc Date: Thu, 15 Aug 2024 15:23:07 +0200 Message-ID: <20240815131923.929716277@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240815131919.196120297@linuxfoundation.org> References: <20240815131919.196120297@linuxfoundation.org> User-Agent: quilt/0.67 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.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Shi [ Upstream commit e7920b3e9d9f5470d5ff7d883e72a47addc0a137 ] There some macros are unused and cause gcc warning. Remove them. fs/nilfs2/segment.c:137:0: warning: macro "nilfs_cnt32_gt" is not used [-Wunused-macros] fs/nilfs2/segment.c:144:0: warning: macro "nilfs_cnt32_le" is not used [-Wunused-macros] fs/nilfs2/segment.c:143:0: warning: macro "nilfs_cnt32_lt" is not used [-Wunused-macros] Link: https://lkml.kernel.org/r/1607552733-24292-1-git-send-email-konishi.ryusuke@gmail.com Signed-off-by: Ryusuke Konishi Signed-off-by: Alex Shi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Stable-dep-of: 0f3819e8c483 ("nilfs2: avoid undefined behavior in nilfs_cnt32_ge macro") Signed-off-by: Sasha Levin --- fs/nilfs2/segment.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 02407c524382c..1f7ae5f36bde7 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c @@ -134,14 +134,9 @@ static void nilfs_segctor_do_flush(struct nilfs_sc_info *, int); static void nilfs_segctor_do_immediate_flush(struct nilfs_sc_info *); static void nilfs_dispose_list(struct the_nilfs *, struct list_head *, int); -#define nilfs_cnt32_gt(a, b) \ - (typecheck(__u32, a) && typecheck(__u32, b) && \ - ((__s32)(b) - (__s32)(a) < 0)) #define nilfs_cnt32_ge(a, b) \ (typecheck(__u32, a) && typecheck(__u32, b) && \ ((__s32)(a) - (__s32)(b) >= 0)) -#define nilfs_cnt32_lt(a, b) nilfs_cnt32_gt(b, a) -#define nilfs_cnt32_le(a, b) nilfs_cnt32_ge(b, a) static int nilfs_prepare_segment_lock(struct super_block *sb, struct nilfs_transaction_info *ti) -- 2.43.0