Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5435607rwb; Wed, 7 Sep 2022 02:50:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5St26HGcdp0AKPZdnFd1YU7cwcEW9V4Nmy4FAJKBuBOosdk7tZIpaUiIEh5lxYKx1tcs26 X-Received: by 2002:a17:906:cc5d:b0:73d:c534:1aaa with SMTP id mm29-20020a170906cc5d00b0073dc5341aaamr1752427ejb.626.1662544215323; Wed, 07 Sep 2022 02:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662544215; cv=none; d=google.com; s=arc-20160816; b=DXoctbG9XvX5QRuMN3UmWGKuydzX2KKT0DN9DdZ1zDvQLkRgKBy2EhoEuIhdVzrIw/ 1lNM8BxG8sGWRU2EoaitodUp6v/QQ4CjU/gzBWIK+zBcGtW0KhLIiVfZwa6mqAcWiNcM KZ8n52wFVNrE0wkfVQkyQMekQJBRpAbC2v3Ci0S14m6BeSUby03+tnZHVILtmMFhDSUy Ggpirha//E1pcT9QHpP+vFxNny/HLqQJMcG01PRk/apHI6v1jlpxPWKgSjuHc9D3r17X jrJXhyYXMKzjaGYQ0G60pGHBoNx/yPpRUXY1VGIWyfOdGW7v+deBkOoX+kQl4K4FVZ1O etSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=N8T5csw+cwqoqBz38V3aKgSNN6BLmXDAnqdYqn1D0us=; b=mXehEoKbt5af9s0DLTVTY1wEB+7Tv/irhm7JDxwHeXcIIJRlxqoYQB3xBgbEJsLWNo 83qcBcwmPP4qSKe5WhidN3wDGYb08DoKhP3YJwhQntL0nvoy5mmfzSfqYnue2/wwE1bP rizxlYQAx4EeF40oiNXLJ+4pYiZ55Yw3pylrFfOp7blm2Cha3eOLV3gMlkcqVfz2yD94 TSKQgeqPi4NkZw8fZ7UDR1lR4FwqUwqdKzIqfxLbrouYLD3H1Ik1pO+uEUkrmih3sQaV T3XcuD3dZUyACdkDUkwMw7eZuIaNS/Khm+O6gWeBRYlq92Vo+CBkYaEmz4H9EGJNSzJA w0Vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056402278800b004477532706bsi13483558ede.517.2022.09.07.02.49.50; Wed, 07 Sep 2022 02:50:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbiIGJf3 (ORCPT + 99 others); Wed, 7 Sep 2022 05:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiIGJfW (ORCPT ); Wed, 7 Sep 2022 05:35:22 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70FF252FD7 for ; Wed, 7 Sep 2022 02:35:20 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4MMxtt44QYz9skZ; Wed, 7 Sep 2022 11:35:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VlyXDmNoZbuc; Wed, 7 Sep 2022 11:35:18 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4MMxtt3KZRz9sg4; Wed, 7 Sep 2022 11:35:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 608858B78C; Wed, 7 Sep 2022 11:35:18 +0200 (CEST) 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 8hy77BlcPQU0; Wed, 7 Sep 2022 11:35:18 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [172.25.230.108]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3E7928B78B; Wed, 7 Sep 2022 11:35:18 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 2879Z8bw3152067 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 7 Sep 2022 11:35:08 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 2879Z7QH3152050; Wed, 7 Sep 2022 11:35:07 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: "linux-mm @ kvack . org" , Michael Ellerman , Nicholas Piggin Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/2] powerpc/nohash: Remove pgd_huge() stub Date: Wed, 7 Sep 2022 11:34:44 +0200 Message-Id: X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1662543257; l=1234; s=20211009; h=from:subject:message-id; bh=7hDMBtrmK2il7u822eIO2Bp0mXg/gfrXU8aF6TWndos=; b=BMYlbIFFzP5sia0vweR4QpmNJYuREFL5Mi+U5XOjobiPP6RFIje5ZG4CrMIU4ngpKxoGPnbDGSV6 qvJnwRA/ADLW/6gIgDBdn7cf+kWnK5MvAKMiIyfX2Wj7JeUceDjO X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/hugetlb.h has a fallback pgd_huge() macro for when pgd_huge is not defined. Remove the powerpc redundant definitions. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/pgtable.h | 6 ------ arch/powerpc/include/asm/page.h | 1 - 2 files changed, 7 deletions(-) diff --git a/arch/powerpc/include/asm/nohash/pgtable.h b/arch/powerpc/include/asm/nohash/pgtable.h index b499da6c1a99..08429c612cdf 100644 --- a/arch/powerpc/include/asm/nohash/pgtable.h +++ b/arch/powerpc/include/asm/nohash/pgtable.h @@ -277,12 +277,6 @@ static inline int pud_huge(pud_t pud) return 0; } -static inline int pgd_huge(pgd_t pgd) -{ - return 0; -} -#define pgd_huge pgd_huge - #define is_hugepd(hpd) (hugepd_ok(hpd)) #endif diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h index e5f75c70eda8..c67eb9531a3f 100644 --- a/arch/powerpc/include/asm/page.h +++ b/arch/powerpc/include/asm/page.h @@ -311,7 +311,6 @@ static inline bool pfn_valid(unsigned long pfn) #ifndef CONFIG_HUGETLB_PAGE #define is_hugepd(pdep) (0) -#define pgd_huge(pgd) (0) #endif /* CONFIG_HUGETLB_PAGE */ struct page; -- 2.37.1