From nobody Sat Apr 11 22:48:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FC4EC19F28 for ; Wed, 3 Aug 2022 15:42:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238147AbiHCPmZ (ORCPT ); Wed, 3 Aug 2022 11:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236797AbiHCPmH (ORCPT ); Wed, 3 Aug 2022 11:42:07 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E54418B0A; Wed, 3 Aug 2022 08:42:07 -0700 (PDT) Date: Wed, 03 Aug 2022 15:42:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1659541325; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IPf7laHJr6gLAnl9xbzWj6hPnYO44QtIRkP/NzRqwj4=; b=pU0TEY1bKY8E5lCFO2/AQbzx1Ysga19d931OoZKDrO/YVZOApm/OPRT64pmnR/mt+XijYL tx5wu9zbDVrkFxhlvvm08Ye3EubF2Mbmp1wFfjEvtGTdxuMvvp9wasfCcRxX4EIjAm3T3r 02H+VMhVGUGg9vrlz7xNug2kWKGCRoCCmMcGb2GroyVMCr621G2oVMAZOkLRjDBLRHvXrX yCIIZ3fw7PdM9OxgcAQ5CaBHTWmr3Wi+ev59a7EsSRyHb9sfIfuZUdIWvZQkw8Cwh6du5U ieaM9fltb//ntRDGcylO8KmEWJhwZFDbBpvufTzT/Criw7AVSgFRd3lAMeMq1g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1659541325; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IPf7laHJr6gLAnl9xbzWj6hPnYO44QtIRkP/NzRqwj4=; b=0zNEGoKqhNL7DtOrQzrM4ORlKiIakvdg2Mr+2un7xd1I4s2zHCSVPJ6FDCJ17HOTXzbJq5 UT5vUBIaZ9P2PDAQ== From: "tip-bot2 for Li kunyu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/boot: Remove superfluous type casting from arch/x86/boot/bitops.h Cc: Li kunyu , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220725042358.3377-1-kunyu@nfschina.com> References: <20220725042358.3377-1-kunyu@nfschina.com> MIME-Version: 1.0 Message-ID: <165954132463.15455.4096087290275074737.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: a50be38f617b11b451c0a432c574859419e69471 Gitweb: https://git.kernel.org/tip/a50be38f617b11b451c0a432c57485941= 9e69471 Author: Li kunyu AuthorDate: Mon, 25 Jul 2022 12:23:58 +08:00 Committer: Ingo Molnar CommitterDate: Wed, 03 Aug 2022 11:32:29 +02:00 x86/boot: Remove superfluous type casting from arch/x86/boot/bitops.h 'const void *' will auto-type-convert to just about any other const pointer= type, no need to force it. [ mingo: Rewrote the changelog. ] Signed-off-by: Li kunyu Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20220725042358.3377-1-kunyu@nfschina.com --- arch/x86/boot/bitops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/bitops.h b/arch/x86/boot/bitops.h index 02e1dea..8518ae2 100644 --- a/arch/x86/boot/bitops.h +++ b/arch/x86/boot/bitops.h @@ -19,13 +19,13 @@ =20 static inline bool constant_test_bit(int nr, const void *addr) { - const u32 *p =3D (const u32 *)addr; + const u32 *p =3D addr; return ((1UL << (nr & 31)) & (p[nr >> 5])) !=3D 0; } static inline bool variable_test_bit(int nr, const void *addr) { bool v; - const u32 *p =3D (const u32 *)addr; + const u32 *p =3D addr; =20 asm("btl %2,%1" CC_SET(c) : CC_OUT(c) (v) : "m" (*p), "Ir" (nr)); return v;