Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp341210rbe; Thu, 29 Feb 2024 00:44:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXDAwChKYQxW2VJd3j2RvwiODaPMeoh9k0Ef6+LzR9auQo78dL+V91AkKz7CbLQ+Q2+6VCr1dwe3kfnaC52EAp/lsVktRKEFwKkKRf4Ig== X-Google-Smtp-Source: AGHT+IHAIa+0kxFIwXUV2XIMLR23KnzKW7Gwq3vGd8HAaw64ejuns8mUWN/G6ERC9HtnUoNCrlK4 X-Received: by 2002:a05:6808:2f1b:b0:3c1:c8be:7678 with SMTP id gu27-20020a0568082f1b00b003c1c8be7678mr433795oib.18.1709196295107; Thu, 29 Feb 2024 00:44:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709196295; cv=pass; d=google.com; s=arc-20160816; b=N8Nm9bvvsG91Ufn2mP11Cvuuq5q1o2GjlwIv9Ab1lxQYQoTA8bFWHczVRp1CD1MgDd bUO/yrD3+dZ2uifpQPGhSfyF0muKXSqsYQaewmczoguRl9Bwd5QSzCEZU7szL/3B66PE aBTl/tIjqJq2/BEeLevd8rnA28bSfp1IwSGOFYj1be6Ztny6l3FU4HDeL01MZGGnvioe S2XeS/Y+6H7nwPno9Gfo3NRJac1+VaZZe1YowyzKLu07nZ+0yVBnd1j95JlTB07d1SH5 jT2EPCZuGjLHog3wfu9eF8gz3ZVU7jZdGxSlCAx8//BhqZ6aaD0njNaHca1yer+gwpSu JQsg== 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=vaO5rUUUwqL4Op281F/k7Urm37If4ycpPAb8kcf+Fps=; fh=El1CTPe6+vOT2yW37eQjyw83iSlqgqhE0Gpp/i8jhxo=; b=RQohUL9hI85rQMmU2JeC2F3CvfN4aTLM3GcWYayHmd4TUTuQSjhaqwZl/O39KXyOi3 xxP+BCZ2HnpEQgqq3C+7DxqBRf25wPVPF010lV4grmPziYl9JrBB1KShESWJmMKRXKwQ hBCtGbFYHNQvVdU4IJhypl22hDPIwR/Gk6PWcmIz0wlf5Nq0BLkg/rFfIN1N8gHtHmo2 4cXwLG7UjZmsSC1N8//7fcjCRxMoRUF/zg9dVkKsC0f42WunEDrGVfKy0sRBIf/P6Xxy UxvdifjIieB6bVJXXgOBfkAU0HnfVXP6N19COVGpjgbr1r7ouRldYyaeYYMc7ygxPHm4 94PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d0As4Sxm; 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-86331-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86331-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. [139.178.88.99]) by mx.google.com with ESMTPS id c26-20020a63725a000000b005dbde0102b0si958893pgn.288.2024.02.29.00.44.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 00:44:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86331-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=@redhat.com header.s=mimecast20190719 header.b=d0As4Sxm; 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-86331-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86331-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 C8E76286060 for ; Thu, 29 Feb 2024 08:44:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28A9A54F8B; Thu, 29 Feb 2024 08:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="d0As4Sxm" 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 D997054BEB for ; Thu, 29 Feb 2024 08:43:43 +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=1709196225; cv=none; b=IVTBX0njz1s34wrG320Gm+pUMYIHL/Yh36nOc4pkF5PBRkNQG7ZaJNzDXd6m7c40w9joZJIHjAsdbgs90XvYgJeB3Kit5gCm0utqg0ryIcRJgiVHkfnYq9aJczCFb12ZBXqrIuTPVnDKhyWC1Ogli5mp3i4ins9qBjCPuF6pM1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709196225; c=relaxed/simple; bh=njYfx4VOrh4eajU7r6f648jwhb+vCfyXtqOuH9tux5U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E6jesGN9NhoUNSupXjyh6dA1r32ng2RsFUD1jF4cGE/tWInYl87QM4g9mHRnca9dIt9gHwYcKFYs/OHoFoZMozy0Q19CNfcLERHkClEDx4Bz5IWzOaAqo0g3leTMgnhTrGpCYvGH+moYfrBwJrphfu2XXlkm/mxSFvfwosTHGXc= 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=d0As4Sxm; 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=1709196222; 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=vaO5rUUUwqL4Op281F/k7Urm37If4ycpPAb8kcf+Fps=; b=d0As4SxmGalLUkvl8Ku4sGbyQOpQt1j9fcZxEZ1svm4xTa2UWs2eWZ0SLeHOeNB/yXy677 PZwAIxH0nDIMNDJKd36xGlOcRVqyfbSrHRQce+4stlUEoa9VNbIYt9HFXpWbLtJTskXpzd m5+SiyPyp0ujPSr5xuACcTw1InaJu9Q= 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-648-Kkkwr2teMLKh8mWF0KV25w-1; Thu, 29 Feb 2024 03:43:37 -0500 X-MC-Unique: Kkkwr2teMLKh8mWF0KV25w-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 DBFF93C025B8; Thu, 29 Feb 2024 08:43:36 +0000 (UTC) Received: from x1n.redhat.com (unknown [10.72.116.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3759D28D; Thu, 29 Feb 2024 08:43:29 +0000 (UTC) From: peterx@redhat.com To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org, Yang Shi , "Kirill A . Shutemov" , Jason Gunthorpe , peterx@redhat.com, Muchun Song , Andrew Morton , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Subject: [PATCH v2 4/7] mm/x86: Drop two unnecessary pud_leaf() definitions Date: Thu, 29 Feb 2024 16:42:55 +0800 Message-ID: <20240229084258.599774-5-peterx@redhat.com> In-Reply-To: <20240229084258.599774-1-peterx@redhat.com> References: <20240229084258.599774-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.1 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 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 69ed0ea0641b..f884d5162507 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.43.0