Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp596926rdd; Tue, 9 Jan 2024 13:35:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHJMIV9BZxufxyZyYO5gP2VktFTG/DnINpSMwmq72syPITJ/ZUqmqHDuXLlgqb7oDTuY19 X-Received: by 2002:a05:6e02:b21:b0:360:a43d:6a43 with SMTP id e1-20020a056e020b2100b00360a43d6a43mr102250ilu.19.1704836139814; Tue, 09 Jan 2024 13:35:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704836139; cv=none; d=google.com; s=arc-20160816; b=dzYWnEIsHl/q/IOWSNN6C4pDKvchAdjhcXEyOyhlM+qEVjughKWvwNEMl7ozkEV5OQ O653huOLUuLgqL5twTu1gumnta0js2y+cHxJPvf42eA1Klwsj1Dgh+pPTFKZOgFM0Jmk rhL7yiFYZ5Oi5XvWCY9ElgYApjr9tt5nR9bPEslZkyCRkR0gtA20SRphAVWWtehLCLq1 R8+XSuL5RNX8SCKF0T1rNu0oac7UWit6caKyTDjOUcFOFQbNGpVKZ64wOYfC6POsaoCd hDT4z0AGZ1RX7te3WiscjU0wXf2yn2s5CFtW6KhhttiEDuA4KYZJFYbpNR3DAxujfjY1 5tew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=8Yq9im8aYFIP0Fqu2da/RxbhDMNbYhFshxI5Vyxu8QU=; fh=Z1O4G+MRNcyI2kQrDFu8llc47xUn3ELtWZFgQ9cjqCw=; b=VfBZiTSwLaHkKEjom0W2kkFhkS530+tf4g5tx5kUwurZ1sYdTqnMZqM4gRaRs93g/y 0vrx4W+GX2qZsyxGCS1KCwugVJYN+/R/FRqlnu9+8BbeO1hN/z21Uwmxz+i8SN2XuFBC 7/FENIALQtHoWIkCA+mEHR8TYcbro9e4syFs0CG6FNFompBznvDNea1bRn6Pgvp8OP2N CHnksIvQCGEEjJSrZr9G2MwTJ/wUGYlpN42bzVKLRO1RsUP+twHJI/5Ptlpp6XJ6zJpb tCUpMzaFxz3U9zlud2+InOc1/0t8+AsK/J8shtW942h47lSUJhMmzslOyO/0HK9p+6ft Du3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hINjkS8a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-21422-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s124-20020a637782000000b005cd8ef5c71asi2190474pgc.864.2024.01.09.13.35.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 13:35:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21422-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hINjkS8a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-21422-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2C6C32886B3 for ; Tue, 9 Jan 2024 21:35:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D29E3DB8D; Tue, 9 Jan 2024 21:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hINjkS8a"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SHOfBMhg" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0F9DA3DB86 for ; Tue, 9 Jan 2024 21:35:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1704836112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8Yq9im8aYFIP0Fqu2da/RxbhDMNbYhFshxI5Vyxu8QU=; b=hINjkS8ag40vnUkDcgYZRYqEtMzau6NYEk1YIcFpv4LRh51sxKxD8wXQvbGrach6eo9XCb zFZpU4qwj4pOHKNczo+/JUCEu5RmPgQfykXU/SxCWbMW/h0CMQBzSi6N5VckB2J9ZQe+kg e4Kqlde7gpEDfOub+afuhEML4sIS1lHqH/T3CLrP6LAgSuI37VD7fYpGmzB5cpmUl9ZQCb SqwkNzN5kQsufYVPhHD7fC2ciagsQn9EURC7oePsQkM24AJLVAiP7H8o8uHex9dwTqtLma 3XhLo6kqPQNQFzQZRmxj0y0pVqF13vK9Ro25LOTEV3y1IU63DxtdNypS0QvyIQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1704836112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8Yq9im8aYFIP0Fqu2da/RxbhDMNbYhFshxI5Vyxu8QU=; b=SHOfBMhgmM/Lkr2jwScp3JoAhYdwbD8/0LHeXMKMpFbO1C3QrHBdUIrquD6ndwAzJuqZo4 WEkU4aOOBxvQeTCA== To: Yukai Wu , Dave Hansen , Andy Lutomirski , Peter Zijlstra Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/mm: Remove unnecessary casts in init_64.c In-Reply-To: References: Date: Tue, 09 Jan 2024 22:35:12 +0100 Message-ID: <87mstejilr.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sun, Jan 07 2024 at 12:24, Yukai Wu wrote: > @@ -150,7 +150,7 @@ static void sync_global_pgds_l5(unsigned long start, unsigned long end) > pgd_t *pgd; > spinlock_t *pgt_lock; > > - pgd = (pgd_t *)page_address(page) + pgd_index(addr); > + pgd = page_address(page) + pgd_index(addr); This is not equivalent. Thanks, tglx