Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp374307rdb; Thu, 15 Feb 2024 02:58:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUBlmkuraa+yaJCWL4lJzfBd5FBd/n/7nDhdLm96J1iU7bFE3w9OU96sA8AUgmkCPzqH3jC/Z4h0mjzAIoq1TIHc5miO2z4MsIT87RBkw== X-Google-Smtp-Source: AGHT+IHrKQv4hjnAmbAwddWmC17Njz/U+GOcakguFFj8B50vFaLf3Jog28MNs6woOpVaOnU5e7B7 X-Received: by 2002:a05:6214:e61:b0:685:6715:9693 with SMTP id jz1-20020a0562140e6100b0068567159693mr1661742qvb.8.1707994708123; Thu, 15 Feb 2024 02:58:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707994708; cv=pass; d=google.com; s=arc-20160816; b=O0ZV+r3pyUW1BKTfm4fjjtg8R2VUFnB9cWjmnQDVxXhDnQUCAzqG+ZAzQi+9OjnBiC 9wLj3YT2UV6N8/ufrSUGzXELy2Qbq1jhrmcbPib/Ad02FdfLmeTOe6soVwGkH1dpwTuF tVJxN/jUzdSDZf5ipDIf+RjSv5Im7u0IFwtT//wExLTezVUQEdWaOVkfXskVWMuZP7ic 4vkqeYcdZOpMf9Redyz2GttAu/J0WBrJ8/UOKO+4JJRHW2XfT1fo3h3br/S+BckcBhKh PZeHD37dhMe+Fz1ecsbllk6RsuKMGsxQqjh7Sxue2T5ANLWrWpSmAgISvNPNesoRRKo9 kyiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=9s31E6Mq5aIvde8oGi3wYEyTZeK5CoMIgMhF7GJXA6U=; fh=jFqW2LvYSEqfV3NJmmTGJyuQjjYQEs0GURoXlFLsaGw=; b=rnKKZCYkiQhYBVRSxHruWTh6Fu92ejh04Wd0N/k9eDCzdMotb+u5Rxk4RZY/bcxZcP 2hOrMLQCBKr76mr9ItXW9VVm72eCRyY+rmnKE4ihLtAg/2pfy9wgEAMakG1PSyWMzASJ 2ZsZ6wImOtnXve1IJns71E00V4+lVLSVGgcWAybbKTXoG2U32dMzTnirEswLvsVogp59 lsuONWKKi+goLxAstFTNgXOURs86YqPXE+8WlA0XGinXtULnteBAXU3hfDyrDZU7m8+q RMgBv/BO/wBKRsMDslNdmjKnKpEkb2sAa/ym1MsAzOYG4Abv78Yi0jXhtEf0pNO+HZSW xsiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bv9bzlUb; 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-66703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iw8-20020a0562140f2800b0068ce921378fsi1116639qvb.285.2024.02.15.02.58.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 02:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bv9bzlUb; 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-66703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66703-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 99A081C212AE for ; Thu, 15 Feb 2024 10:58:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EC1012C542; Thu, 15 Feb 2024 10:43:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Bv9bzlUb" 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 0903A12BEAB for ; Thu, 15 Feb 2024 10:43:33 +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=1707993815; cv=none; b=E/YZky+QCN5K3zbtFtsQMQqk7S0U6VedNB/pIYjGKwj8L//shhvvcqb/Syq6BBZvMvucdiCaAbsxTbbeBldPwMc60S1SlSmsy9w2BWma1axmoELW/wvEJny7YkaubMNmaFBhztkZzTEYNJ3UGNneJ1v1rQWbbwUzlApdU0ydGHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707993815; c=relaxed/simple; bh=wNVNKPD5nlL/jQNU+UDaWazzhxNcqjxS6/daQXHRG14=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Dstzxx3FVr7Tyl8EciAdXq88E6xJgjZ53bi6vwl482YnhUb0IskXpzrppPzfttCTm2vUhWseVxQZAMFLy+533MSuzouqAjoBEJysLaRtwTMmGZB4eI0sC6IBRDyy8UB4isuEPkbAERgLEquBqNQTCvhVlgnrJmrlvviF8ULh7YQ= 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=Bv9bzlUb; 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=1707993812; h=from:from: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:autocrypt:autocrypt; bh=9s31E6Mq5aIvde8oGi3wYEyTZeK5CoMIgMhF7GJXA6U=; b=Bv9bzlUb5Bz+Ro41c0zYSRB91QZdvwxERbwvFHuv/302PQvhPIWIxc6w2QT3XBi4nzSDd8 FoXbXtL8G69fKOpENF3lbFrDosg3IW9QkHZZLpkXAHR7D2MMVjP/ESR2EM4OoCdm4qI3HA XxENcFVlONLIF0Ataz9vr1n6G0lACMo= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-356-feeYfA6IOg-n5CLOpuYHxQ-1; Thu, 15 Feb 2024 05:43:30 -0500 X-MC-Unique: feeYfA6IOg-n5CLOpuYHxQ-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-78346521232so87723585a.3 for ; Thu, 15 Feb 2024 02:43:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707993810; x=1708598610; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9s31E6Mq5aIvde8oGi3wYEyTZeK5CoMIgMhF7GJXA6U=; b=P84C6cpeeToxjNQ4LP4Fw/oxjtPsxNkerA5o1ym3nvAVR2NggepPredJCBsD8JW2gk nb4Kw9UilKfn+45bePBCdgVtA39GFSNtx0hXQTR319hgXrJcRy0rspDgoMjSfnOXeS15 nH3GQE26saCVN+oJsUFlrNnOq3nmv+1FTSDPXoFaIUQxot9vy4Enm3f57tEM0KNIwziv coEDkuDxayHOu3hp6PAqZfs4M566xRy3SRWSJsQC9BjYT8fne4yITjNu61X21O98Ax6V rj53YkLae2UQj9rsR4ZoLWNCe6WmbkP1aAFMYUJKyVwr8sFP7RUPUDWdqWJd079rYpaP TUkg== X-Forwarded-Encrypted: i=1; AJvYcCVBdebjr//hSV0Wa9RNUsKvBRAlf7hmhsN1NUJTbazGqkOUC1bXgPwo4pK3EJq0bsZpxmMm0f5UPR1VxjVsHJsA9nvaNLjT3FpwkMSb X-Gm-Message-State: AOJu0YwmaZcBNbzFaL0C3eHSprCJ202POo3Vkj91aN9dIFU4Zr/XlhLY MiSw0JK5JqFNL1X+Os6RPS3rZyU/UAO1LhEmesQHqEyemrt8PcGVVdM0rvszQuRFhcVhv5kgf5J YydgZvquRXdRotQfJ5pR/GB86ywvrk6eGZ6gbsqwRkb0xEEWkn2MzeeD3tp+ffA== X-Received: by 2002:ad4:5bca:0:b0:68c:bbb8:7b5b with SMTP id t10-20020ad45bca000000b0068cbbb87b5bmr1434260qvt.32.1707993809842; Thu, 15 Feb 2024 02:43:29 -0800 (PST) X-Received: by 2002:ad4:5bca:0:b0:68c:bbb8:7b5b with SMTP id t10-20020ad45bca000000b0068cbbb87b5bmr1434228qvt.32.1707993809518; Thu, 15 Feb 2024 02:43:29 -0800 (PST) Received: from ?IPV6:2003:d8:2f3c:3f00:7177:eb0c:d3d2:4b0e? (p200300d82f3c3f007177eb0cd3d24b0e.dip0.t-ipconnect.de. [2003:d8:2f3c:3f00:7177:eb0c:d3d2:4b0e]) by smtp.gmail.com with ESMTPSA id lu7-20020a0562145a0700b0068efbe2235asm535657qvb.54.2024.02.15.02.43.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Feb 2024 02:43:29 -0800 (PST) Message-ID: Date: Thu, 15 Feb 2024 11:43:25 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 06/18] mm: Tidy up pte_next_pfn() definition Content-Language: en-US To: Ryan Roberts , Catalin Marinas , Will Deacon , Ard Biesheuvel , Marc Zyngier , James Morse , Andrey Ryabinin , Andrew Morton , Matthew Wilcox , Mark Rutland , Kefeng Wang , John Hubbard , Zi Yan , Barry Song <21cnbao@gmail.com>, Alistair Popple , Yang Shi , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Cc: linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20240215103205.2607016-1-ryan.roberts@arm.com> <20240215103205.2607016-7-ryan.roberts@arm.com> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacP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N/MpN3hD3 AP+DWgUCXw7HsgUJEqkpoQAKCRBN3hD3AP+DWrrpD/4qS3dyVRxDcDHIlmguXjC1Q5tZTwNB boaBTPHSy/Nksu0eY7x6HfQJ3xajVH32Ms6t1trDQmPx2iP5+7iDsb7OKAb5eOS8h+BEBDeq 3ecsQDv0fFJOA9ag5O3LLNk+3x3q7e0uo06XMaY7UHS341ozXUUI7wC7iKfoUTv03iO9El5f XpNMx/YrIMduZ2+nd9Di7o5+KIwlb2mAB9sTNHdMrXesX8eBL6T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <20240215103205.2607016-7-ryan.roberts@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15.02.24 11:31, Ryan Roberts wrote: > Now that the all architecture overrides of pte_next_pfn() have been > replaced with pte_advance_pfn(), we can simplify the definition of the > generic pte_next_pfn() macro so that it is unconditionally defined. > > Signed-off-by: Ryan Roberts > --- > include/linux/pgtable.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h > index b7ac8358f2aa..bc005d84f764 100644 > --- a/include/linux/pgtable.h > +++ b/include/linux/pgtable.h > @@ -212,7 +212,6 @@ static inline int pmd_dirty(pmd_t pmd) > #define arch_flush_lazy_mmu_mode() do {} while (0) > #endif > > -#ifndef pte_next_pfn > #ifndef pte_advance_pfn > static inline pte_t pte_advance_pfn(pte_t pte, unsigned long nr) > { > @@ -221,7 +220,6 @@ static inline pte_t pte_advance_pfn(pte_t pte, unsigned long nr) > #endif > > #define pte_next_pfn(pte) pte_advance_pfn(pte, 1) > -#endif > > #ifndef set_ptes > /** Acked-by: David Hildenbrand -- Cheers, David / dhildenb