Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp173506lqs; Mon, 4 Mar 2024 20:39:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU4wIfemNvAvJgQb7MK7pH3tlJXnoQXxpvI4NO2o0iD8JUD6w+Svdy4vuN7e0ua7BIi0RS0n4K5LDFUQxFOoRe6v2o/wrcm6GEGJ4nqrQ== X-Google-Smtp-Source: AGHT+IHAkrN2Q+xBcmp08IHZjRlk2HfoQnID5JKuntMCi7l0KyvONiLIfQtS+YUVPEIOu2fnOpzL X-Received: by 2002:a05:6a00:88d:b0:6e6:412d:1cd2 with SMTP id q13-20020a056a00088d00b006e6412d1cd2mr151460pfj.14.1709613567120; Mon, 04 Mar 2024 20:39:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709613567; cv=pass; d=google.com; s=arc-20160816; b=AsAptW3798hsgjMMcKY65Nhv/fbgKhI3zRNRHCripapzVowRNnrVaMzSZizjU25hGo LGA0/RT4dOgAIAl+4ulfAfub4sFdGPJJSq/vZ8i5BH8CxddEOFu88vhlruEc4P7QCNOA 86alQoFZBmz9UFtKSThSLG6tUmINmJuWjjGZp7JovOQw61STmS+vgAFf6gjq4+pRJdHU 3RhKiARkfNaN04oX/EkHmGeHmEF3+HfnoguKehbvSUB7fPlQuumkBWDOAV1bb1AabJHw CdROqeJfefu+yRF4OSM8U9eU/SSSezVKoCVkzbHEat4A0IGdL9EuvkjtzBf/pRcs5txs iJUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nuo5a0GW5hRUtMzV1v/fSGiWbuiuweegoPjxTUJCs50=; fh=O0RYiE98R0FSPgWTRwi36N/EaPgTL/DVQdvGX5vTETw=; b=fPOxUxQ19FP7vAahaeN9924y2T2fhjsafnmHx01mnM1zXd/vqWDpgWkXlY4L7QRIvI S+xWNaIlaAe4sPcpRArDUKEtNW9ENzbfx6q6nNEZS69x3xmdB7dCR5qk7k9ofpwchJM5 rfbGBC60KlQnJvlwutaYf+JZkMxPsiDMX+SIIvY7BdIMUo4MhDtKV2PJRLn16CbvK/xd 3gwNn2AAsgMZVpZrqscBSbWTWskUEIqxYaKiuixf2ch/4iaCA2jtktXuoLHpKidGFCts QMEqoPfzYMBoNgvJiL7cQ4puU+F/MMInN+jyL8ZQEbvWCZ1oX7lWCKQX4dOYTg6WS7lk egaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZaIWUjBM; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-91671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gx17-20020a056a001e1100b006e4ec0dfe3bsi9311678pfb.43.2024.03.04.20.39.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 20:39:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZaIWUjBM; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-91671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 C7E9228139C for ; Tue, 5 Mar 2024 04:39:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4506B45BFE; Tue, 5 Mar 2024 04:38:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZaIWUjBM" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 CFE4833E8 for ; Tue, 5 Mar 2024 04:38:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709613526; cv=none; b=r2dSQKmlVDH8x83DliZqbk7CJG/+XNR0qyWZFwWH1UpE4th3EoS42+H7SZpqNw5qFcLl0XQL655R5bvLSRDBTPIW6JAheAyYW303FaY5KWj1HK6+kyG2oG15SFTq5t00r02UXxAdNa/nbz75edcbv4GiYgKk0vPd0Z734FXvig0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709613526; c=relaxed/simple; bh=rMUC99xjmZu9KKCsixtS4H7N1aQgJKtpqB/WjPDyc5A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cWIhBpcc35UmXJyBVjstbqqMLhO1csPrjviRo4Porg8uHvVWdLzULSTf1wdHfcCS1r2tT1RuqVwBKr1JqM605q0j86mvxAom3siP4xdkg//nkq5dY8jnlSxP67imMNbBohG+bO492BPRlg01+o1ZoZ6HMUx3bzXndElm6VaJHIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZaIWUjBM; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709613523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nuo5a0GW5hRUtMzV1v/fSGiWbuiuweegoPjxTUJCs50=; b=ZaIWUjBMso0+EcYDfF5G4PWpbghtfqReeawNa/zGY1YCUp1ZY4yzlqPhxqNhDCy73F7sv/ uvha+TeGIY6RkxmgufLtI9Wsc5a/4WCqoLrl7cSfbC1bkIsBeYcKaCMfoRZFeh/f1W1yxY 40g6vcJbEa4nLq76zY8NRDVDut2RVPM= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-582-v793_kpWOh62Z2pm1XC8lA-1; Mon, 04 Mar 2024 23:38:39 -0500 X-MC-Unique: v793_kpWOh62Z2pm1XC8lA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AD7FD38049F2; Tue, 5 Mar 2024 04:38:38 +0000 (UTC) Received: from x1n.redhat.com (unknown [10.72.116.31]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D0B0C1F086; Tue, 5 Mar 2024 04:38:30 +0000 (UTC) From: peterx@redhat.com To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Christophe Leroy , x86@kernel.org, "Kirill A . Shutemov" , Jason Gunthorpe , Yang Shi , peterx@redhat.com, Andrew Morton , linuxppc-dev@lists.ozlabs.org, Muchun Song , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Subject: [PATCH v3 05/10] mm/x86: Drop two unnecessary pud_leaf() definitions Date: Tue, 5 Mar 2024 12:37:45 +0800 Message-ID: <20240305043750.93762-6-peterx@redhat.com> In-Reply-To: <20240305043750.93762-1-peterx@redhat.com> References: <20240305043750.93762-1-peterx@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 From: Peter Xu pud_leaf() has a fallback macro defined in include/linux/pgtable.h already. Drop the extra two for x86. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Reviewed-by: Jason Gunthorpe Acked-by: Thomas Gleixner Signed-off-by: Peter Xu --- arch/x86/include/asm/pgtable.h | 1 - include/asm-generic/pgtable-nopmd.h | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index d6e993a5659f..9db7a38a0e9f 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -1097,7 +1097,6 @@ static inline int pud_bad(pud_t pud) return (pud_flags(pud) & ~(_KERNPG_TABLE | _PAGE_USER)) != 0; } #else -#define pud_leaf pud_large static inline int pud_large(pud_t pud) { return 0; diff --git a/include/asm-generic/pgtable-nopmd.h b/include/asm-generic/pgtable-nopmd.h index 8ffd64e7a24c..fa27e16bbe1b 100644 --- a/include/asm-generic/pgtable-nopmd.h +++ b/include/asm-generic/pgtable-nopmd.h @@ -31,7 +31,6 @@ static inline int pud_none(pud_t pud) { return 0; } static inline int pud_bad(pud_t pud) { return 0; } static inline int pud_present(pud_t pud) { return 1; } static inline int pud_user(pud_t pud) { return 0; } -static inline int pud_leaf(pud_t pud) { return 0; } static inline void pud_clear(pud_t *pud) { } #define pmd_ERROR(pmd) (pud_ERROR((pmd).pud)) -- 2.44.0