From nobody Sat Jul 25 20:47:09 2026 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 C61BB36604B; Mon, 13 Jul 2026 23:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984051; cv=none; b=s/SOVKNZR9SRnxjiWq7wdLFVc5gdsN+edzzevpXn+itc4JU29YipYL9XuLcjC2FvMazgQdbT9BdrFY4A6ruQcKmC5EHRh+mxgESDIRViroGsjqYPFRqmogWS5oDA+7UaH8i6tFr/p1zEYVGSfmOw+49hIvkm8Gbj4jdFWCNhtHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984051; c=relaxed/simple; bh=bpix4xBO3nNCbK2TK5wtc3DAstIsob4rOZa5FV6SELs=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=d+SKKz3ZTOqEQX+GCcgtfFg/zAygJQqDIVyY2qZBYy7gJ0BYxMwemKhi0EKyUjgQpymGCqHeJYFCQPap8XiCB0Mkm6c1B2jUQeLD+5JGMpmQ4lSgoVVO35LDtJm1FaEfWhoBvA/0Pir/NTjeuJHbUIrEsS4XfaOcmDK7v/b56Vs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=p6+yuQeo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Nd3EhJlo; arc=none smtp.client-ip=193.142.43.55 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="p6+yuQeo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Nd3EhJlo" Date: Mon, 13 Jul 2026 23:07:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783984044; 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=d9TzbbVjnI7gojoGkV41z4sxPEd3fnaAVM07QEppTOI=; b=p6+yuQeoP7yJtnwb1x2SRS64IZHWa0mxBb/1ToaJqMA6cO/ycAbvdB7tWkWia3yIpts7lJ nFRXn66FokTeLtB0T+DCEnYmM2JVZM9gmQMecEej2bkolarKxx7R2kP66kgO8wj3TTN5Yr YChoH/KcCT7vgseSw4BVsYgMy9Qdy2Nf4x/p4Vg+gsRJwIfOSj0i22lejA1DDWakQisPCq lgA9LGRm7FhiCy06Qq5Rd5lB7DjH/ffDneaF08zJ8jdyc28XCUUMZUwuzfJbZ0nc+NDOom hCb7EyxG4qBRE/GSm8hQCImmXPZNEt/iRfPdASofsRGbolmFrwctR49awG9uLw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783984044; 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=d9TzbbVjnI7gojoGkV41z4sxPEd3fnaAVM07QEppTOI=; b=Nd3EhJloGIdCGRE4qIa0X9SqtoygQOGo5khsUHI8gqqgco7aeXl1F9On2k67Ou+2DDJn2c XAS0ULIhRrkKkFAg== From: "tip-bot2 for Vishal Moola" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm/pat: Use IS_ENABLED() instead of ifdef Cc: Vishal Moola , Dave Hansen , William Kucharski , "Mike Rapoport (Microsoft)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260629185742.126987-2-vishal.moola@gmail.com> References: <20260629185742.126987-2-vishal.moola@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178398404264.1844600.15874502516576710004.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/mm branch of tip: Commit-ID: e7616bb5ef5fe752e15db8a3dbd8657dc19c21f2 Gitweb: https://git.kernel.org/tip/e7616bb5ef5fe752e15db8a3dbd8657dc= 19c21f2 Author: Vishal Moola AuthorDate: Mon, 29 Jun 2026 11:57:34 -07:00 Committer: Dave Hansen CommitterDate: Mon, 13 Jul 2026 15:55:09 -07:00 x86/mm/pat: Use IS_ENABLED() instead of ifdef Use IS_ENABLED() to check if we are on 32 bit. This standardizes this check with the other 32 bit check in the file. No functional changes. Signed-off-by: Vishal Moola Signed-off-by: Dave Hansen Reviewed-by: William Kucharski Acked-by: Mike Rapoport (Microsoft) Link: https://patch.msgid.link/20260629185742.126987-2-vishal.moola@gmail.c= om --- arch/x86/mm/pat/set_memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index d023a40..3b9032a 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -888,8 +888,8 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long ad= dress, pte_t pte) { /* change init_mm */ set_pte_atomic(kpte, pte); -#ifdef CONFIG_X86_32 - { + + if (IS_ENABLED(CONFIG_X86_32)) { struct page *page; =20 list_for_each_entry(page, &pgd_list, lru) { @@ -905,7 +905,6 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long ad= dress, pte_t pte) set_pte_atomic((pte_t *)pmd, pte); } } -#endif } =20 static pgprot_t pgprot_clear_protnone_bits(pgprot_t prot)