From nobody Fri Nov 29 16:37:29 2024 Received: from pv50p00im-ztdg10021801.me.com (pv50p00im-ztdg10021801.me.com [17.58.6.56]) (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 40F8E82D98 for ; Tue, 17 Sep 2024 07:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=17.58.6.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726558119; cv=none; b=bXEcG25n87lx5vHwGdlftlbG1eWCB6WveRdAYYhKgDLUnqLNhNkkRa1xHOHRlwpfXNCOHXZLoeIh4+z6W8x8C8fKTWDcWYPHBNDFrPoGYPN/c4T0QXQsTF61ViSWcXc8jOVtavTkbQ37yAzjYD6qTGfqHKgvJRWSmZtecUibe/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726558119; c=relaxed/simple; bh=EWGoryWPN3XTa5xPjDODSu5gYnovg9x/84Wb8baTxJk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=UPSBzj3BVhtVH7PcImTCEPjdlfXwRzG4tIVlD36/BQ895J7l6DdixsvEU6lCI+pILT6C90NzITC/6gBhizVZdwROKMrkerM5hdOixs2CXW5ph7ZwE3VkyAaQGfU+lUyCpXFOtEnq1Ns8WnT4u3v2pjx7VPAgJSQsUnXPEWgeQ+M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=F1Wrp+w1; arc=none smtp.client-ip=17.58.6.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="F1Wrp+w1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1726558117; bh=Vcx7WPhSegV9rB0wW863Hv71god9yUWJCSu6hxqP9VU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To; b=F1Wrp+w17f3PBRPTIKc6ZoHbUZpmHP1s0Mq331e6WUdu/dPnG9YG7HCPPJtkxPTJ/ BU1QvV7ILcDXaxMBvz2FK9WKzP4veUeKzK1GloueZcKAAi4yvRMu7j0EFnzWsBu3e8 GPmFLNRt7NXneKWHRDObLTWPkP7BJcRKlylCqLtkvn6EXiqw7ovz4ReAwgzusK0lP+ J4QpHUF2YP48u4jJputPaBeqCSMtm4fdvtBSl5UIA0+8Q1OEzpJRWoqOcMLJTh3i18 BsoGZqkEzLQhnljtlUVBBrfge5attU8Jf4ZNvkNT693fU6NpfTs8kygF4YD2+GFujI 4SCQg1GH0AvPA== Received: from [192.168.1.26] (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10021801.me.com (Postfix) with ESMTPSA id 1030F2010202; Tue, 17 Sep 2024 07:28:31 +0000 (UTC) From: Zijun Hu Date: Tue, 17 Sep 2024 15:28:18 +0800 Subject: [PATCH] list: Remove duplicated and unused macro list_for_each_reverse Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240917-fix_list-v1-1-8fb8beb41e5d@quicinc.com> X-B4-Tracking: v=1; b=H4sIAJEv6WYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDS0Mz3bTMiviczOISXVNT42QTE/OklFSDNCWg8oKiVKAc2Kjo2NpaAFi cbrtaAAAA To: Greg Kroah-Hartman , Ingo Molnar Cc: Zijun Hu , linux-kernel@vger.kernel.org, Zijun Hu , stable@vger.kernel.org X-Mailer: b4 0.14.1 X-Proofpoint-ORIG-GUID: PBPNEFXGRm1mF-qoq9AxFbNi8Y731PAQ X-Proofpoint-GUID: PBPNEFXGRm1mF-qoq9AxFbNi8Y731PAQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-17_02,2024-09-16_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 clxscore=1011 mlxlogscore=664 adultscore=0 suspectscore=0 mlxscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2409170055 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 From: Zijun Hu Remove macro list_for_each_reverse due to below reasons: - it is same as list_for_each_prev. - it is not used by current kernel tree. Fixes: 8bf0cdfac7f8 (": Introduce the list_for_each_reverse()= method") Cc: stable@vger.kernel.org Signed-off-by: Zijun Hu --- include/linux/list.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index 5f4b0a39cf46..29a375889fb8 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -686,14 +686,6 @@ static inline void list_splice_tail_init(struct list_h= ead *list, #define list_for_each(pos, head) \ for (pos =3D (head)->next; !list_is_head(pos, (head)); pos =3D pos->next) =20 -/** - * list_for_each_reverse - iterate backwards over a list - * @pos: the &struct list_head to use as a loop cursor. - * @head: the head for your list. - */ -#define list_for_each_reverse(pos, head) \ - for (pos =3D (head)->prev; pos !=3D (head); pos =3D pos->prev) - /** * list_for_each_rcu - Iterate over a list in an RCU-safe fashion * @pos: the &struct list_head to use as a loop cursor. --- base-commit: 6a36d828bdef0e02b1e6c12e2160f5b83be6aab5 change-id: 20240916-fix_list-553c447bde0f Best regards, --=20 Zijun Hu