From patchwork Sat Mar 16 11:52:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 13594421 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DE1FC54E60 for ; Sat, 16 Mar 2024 11:52:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9C193800B4; Sat, 16 Mar 2024 07:52:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 971066B020E; Sat, 16 Mar 2024 07:52:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 85FCF800B4; Sat, 16 Mar 2024 07:52:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 783376B020D for ; Sat, 16 Mar 2024 07:52:50 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3B6B8140A2E for ; Sat, 16 Mar 2024 11:52:50 +0000 (UTC) X-FDA: 81902740500.20.65FFD82 Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by imf10.hostedemail.com (Postfix) with ESMTP id 1B626C000B for ; Sat, 16 Mar 2024 11:52:47 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf10.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.236.30 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710589968; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=LvnGJaveYZad1rqeR4dHIfQr6qbAL4R1g8kBXpMlQYA=; b=QbNCqYqH3jQx/4D+SoBlRu44T1GEQzfrlHaybjEb7p3QzVy2Ho8JZPPzqU3GUNJwaIVjnF 9eZOfPXKeG4R82vcsBXR9kk2qDWzKS5vqlKZZGwjK8oo0/qZbqcKfE7qTSkdiHXozHCtVA iuc30lRuW6BTFrZyvl2fDgicJ1ZI2Dw= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf10.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.236.30 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710589968; a=rsa-sha256; cv=none; b=qPUch+kWKDwAakM1IV9v0XWus65Bp7bQgmgIAvARXHYSAZIo08V+UDA0a/84HfC3e7iOFS /3ch/ffDrvTTShZabt5ukIM43DraZTi1FrR4aeTHYT/sOVB01vUDWi9Ymm8EBRorQGDNVn IMNDQwPlRgSuRMvWDT0iI8oXk8j0G7Y= Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4Txfcs3BD1z9sgJ; Sat, 16 Mar 2024 12:52:45 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GIt7TkOhbv4W; Sat, 16 Mar 2024 12:52:45 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4Txfcs26FLz9sd1; Sat, 16 Mar 2024 12:52:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3EFF28B768; Sat, 16 Mar 2024 12:52:45 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id JWE_SLCmtil4; Sat, 16 Mar 2024 12:52:45 +0100 (CET) Received: from PO20335.idsi0.si.c-s.fr (PO18731.IDSI0.si.c-s.fr [192.168.233.183]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E01028B764; Sat, 16 Mar 2024 12:52:44 +0100 (CET) From: Christophe Leroy To: Andrew Morton Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] mm: Remove guard around pgd_offset_k() macro Date: Sat, 16 Mar 2024 12:52:41 +0100 Message-ID: <59d3f47d5615d18cca1986f269be2fcb3df34556.1710589838.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710589962; l=932; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=UV1rJKmQt3T24+tdC8X4Jq5oU7gkF6J2ipvnXC2QiV0=; b=DsDMFPDJf1yqqD0SlQfv8Y3XTssUfqv+N1186Y+VnjDdg6gtNIKZlk/k7OsGnBCTnGY0IDjMF vhG3og/F2IwAswDffzZgS+1nm3NUnKaK1yActGVrXa0jGPU90ZNEm4F X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= X-Rspamd-Queue-Id: 1B626C000B X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: uja5qasspopec5qis9f3rqdgjcrgawif X-HE-Tag: 1710589967-385497 X-HE-Meta: U2FsdGVkX19SN05sSdgt5hASNtIApLDtqM+yuvhtDeufln/aEpRz+qC7E7pkBW0Y9l51Gs3x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Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The last architecture redefining pgd_offset_k() was IA64 and it was removed by commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture") There is no need anymore to guard generic version of pgd_offset_k() with #ifndef pgd_offset_k Signed-off-by: Christophe Leroy Reviewed-by: David Hildenbrand --- include/linux/pgtable.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 85fc7554cd52..bd9c7180718c 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -149,9 +149,7 @@ static inline pgd_t *pgd_offset_pgd(pgd_t *pgd, unsigned long address) * a shortcut which implies the use of the kernel's pgd, instead * of a process's */ -#ifndef pgd_offset_k #define pgd_offset_k(address) pgd_offset(&init_mm, (address)) -#endif /* * In many cases it is known that a virtual address is mapped at PMD or PTE