From nobody Wed Apr 1 12:36:57 2026 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EDE83C1408 for ; Tue, 31 Mar 2026 07:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774943298; cv=none; b=jb8QBytCJpCFr2O1SCw6CtXY2ClfbLT7hedYjSdhZuGOBvobwjTcFPChoQK+D81rwxfkjzJVMifcwBmE57nxiC9KDnqC2Hyov7PPSBV4nQOnohBG9ox2jSz6pzqJxCdnRKTYFQUV/g7sy4Dhu7URXGxihvCVJNMfjmIiixjoLFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774943298; c=relaxed/simple; bh=Qb7ySviORxHAuFO3mBOcw6EK1G3ciLElDnSc2hTYTbk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U9IP3kJ7bMes/iHKoCfDhy11VMssmHB1eNKcb/ste9+zerPPM/wqrZlc7nztFNiXTKFLbjhNzYZendtgg558QdS9WHH4o3N3/h1Y0LUVZKXQ64S28FCavn68vArtoOL7kMPL0h5kGR4WgbWGgexXnEYKazy2q0ot/XskcG689Aw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=N1NJ8NZi; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="N1NJ8NZi" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2a871daa98fso40934685ad.1 for ; Tue, 31 Mar 2026 00:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774943297; x=1775548097; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0jBY0UjZ5SKHq/wK7HBotalELvgrS1BpnNap+VE6Eno=; b=N1NJ8NZiHevsUfoxRsmdm1Ef/GnLaRVXjccn+2Wfggj7flVHHJ4fQMCnydP13Z9PnW 53BjekD7ZcxA6LuXwSz4IR5U//Fena22VIsgZ2ROPuGKG5bgU7ovOIWvfyWYvEC4cauv C6BKMBNT1oG3rfcaBeQA5MZMnrTaYb/ofjo/0E8Yahf3Z2KCuxGdUouZzpogxp5g1Ur9 +2QP4VZPwgjJuQpgfaXarXjDnWfkJn6PM8PBVD/sA9kIgFdGM19liEFgpkA9WzoGSBMi FQkVU4ytKp2AS5Fujg/FkXv97yzqAnDG7ORjRuxjBEE1oXAxjTMI9nGo6d9DSR3HhUCl 7joA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774943297; x=1775548097; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0jBY0UjZ5SKHq/wK7HBotalELvgrS1BpnNap+VE6Eno=; b=pc+O58xydNIP2X9x3jnOFTqGhCC3E8+dr1iXnrT3JGoj1s1S7MNbQYWByuqGb9gvUK PT457jLJ5g+3VMPrM1osh7F9IeDrUZnuhzDJEut/2ur8ccQHiLTwwR5n7HBMQ4lllMAd zxy7+lNXrt/iR2nAINV9OEG4MspQHUQ+SG6TK4uwPNJl8wnyeebDHSdzSmb2v3uG4wL/ F75biq1FVnEQAQCzItKaCGTGpepUWx8r9GCvY+u0FgJUpanV7ImNBLcnQh3OMrl2rVIJ g+GXN/e28grXkwQ5w24r2RqrtmF+JGpb/OPPrNFvy+984/WHGQzQnzhNIJ9mCZvFbEiN HiBQ== X-Gm-Message-State: AOJu0YzzJ43oAzBpP05Htivj+8NQasvuyNCl2OFrLN6UkbX3C/XxC9OR mFS4ET1IP3uKpOd3CqxfdF7wGfbtiPY5L/vcx0gRYs4FdL0ebhjivi1j X-Gm-Gg: ATEYQzyosA9x735++wKghb+o0ixVecCQnQku1PdIeqeG+VyYBs9BS2+aqOSwhGJk7IA 5yPeo8lvj75OO/nodSUTn9vM2STkQZ8ctvyLPVAHokzVzRgj1Ag/g6EM3e6yZddVnmksewW4LnA Sv9LhSqchPmtqh5tTR6FfEs2/W5Y8tW0nmIiXFOnzUEbehsjPkGIKBskhJ/cX2KauJ8h4nIC4gQ sqjpzD5PBO9t/E7xl3FHaqgq+it/11p5LRpyHNs15aBofjWDTVTs01nu4rWFqCQU3X1vDGpwTMR 5AUi+w/NlME6PyTxf+5mTcM/0JNFu78I3HIegWLuF0BAeEB5Wyn/vzzpRXpoQjUKgTEmJ3Pkbjz cn/7YM65cyrSO/huUfq6XCSb2Zlv/7mObQ4Bux0BZI5kWqnWQrjlHJ0oKwvVNOVGyF6cXSZfwxT HA5An5T/lloW9gUFCAPWBvpmBwdQ9y+xnk8seoKD5UMU8tohw= X-Received: by 2002:a17:903:2986:b0:2b2:4728:aa6f with SMTP id d9443c01a7336-2b24728b351mr101502355ad.26.1774943296674; Tue, 31 Mar 2026 00:48:16 -0700 (PDT) Received: from DESKTOP-MOQC9AF.mioffice.cn ([43.224.245.237]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b242642864sm118944045ad.12.2026.03.31.00.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2026 00:48:16 -0700 (PDT) From: Zhan Xusheng X-Google-Original-From: Zhan Xusheng To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Zhan Xusheng Subject: [PATCH] hrtimer: Fix incorrect #endif comment for BITS_PER_LONG check Date: Tue, 31 Mar 2026 15:48:11 +0800 Message-ID: <20260331074811.26147-1-zhanxusheng@xiaomi.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The #endif comment says "BITS_PER_LONG >=3D 64", but the corresponding #if guard is "BITS_PER_LONG < 64". The comment was originally correct when the block had a three-way #if/#else/#endif structure, where the #else branch provided a 64-bit inline version. Commit 79bf2bb335b8 ("[PATCH] tick-management: dyntick / highres functionality") removed the #else branch but did not update the #endif comment, leaving it inconsistent with the remaining #if condition. Fix the comment to match the preprocessor guard. Signed-off-by: Zhan Xusheng --- kernel/time/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 860af7a58428..8c92a2e2cf8c 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -340,7 +340,7 @@ s64 __ktime_divns(const ktime_t kt, s64 div) return dclc < 0 ? -tmp : tmp; } EXPORT_SYMBOL_GPL(__ktime_divns); -#endif /* BITS_PER_LONG >=3D 64 */ +#endif /* BITS_PER_LONG < 64 */ =20 /* * Add two ktime values and do a safety check for overflow: --=20 2.43.0