Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp288842rwo; Fri, 21 Jul 2023 11:53:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlF9tiLMcoW5ZcR/jvpwYH4aOZsdno5wvQiUeglkQMtcsAZ0SxS2vdUPGLSdg6RvDjYCQNB8 X-Received: by 2002:a50:fb81:0:b0:51d:ad30:5ed7 with SMTP id e1-20020a50fb81000000b0051dad305ed7mr1885232edq.35.1689965637660; Fri, 21 Jul 2023 11:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689965637; cv=none; d=google.com; s=arc-20160816; b=dUJTvGyDm+ao+ToWi2GbHUeGLRyitLYqu+vYcZOPxW6CUxYDy5Rwa0+Dm5Lme2Aq09 MBItb8fpm36JZEg5WMCQsmhMW45KOemNPGiBfitp4XzhCr4kN0Rm7pPleVANL4pe5prR VA2JVgxge+ZCwAk1Pg9IUZlntDXfGkH4S5/TQivX2r9jdc04iLj3bqVPbi6xHooVljYH flnLtdd7/tKnfrfuqT13mVpfizaADnh5HT7wiU12QJdu/D5McR4DQcfhbwN2VNn4d6qu I7h72dxVo3DrQHL9HH3n/U+LLYfRYmiT1sYCw8GM2ZDWrkM7AZ8FmH9jYduqWKXdth3z FkvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PKelAFVMuv8VXMs9/FawEy7jUaAd0UqJIhHSnTUN85M=; fh=T1vA5rvMQnmHYEFAFbWKGfvcJL8fTxqxkK7OWHBgMIk=; b=nhTj0pz5328sNSEi1geL+u49E0ugIAhVgtuVKyfYGghT0rrJP5d3b6FDKEJHmvFs1v cCG7EtaM9RXu1KJFHfNOeUPwNpX+jB46Jwp3dtEHe8wEr3pRn8cUTKZzi4uzmKhyJ9fx Va1OBTcGCDalmF12ypffmwOJT31na8a72rCWNZbdWp9ruiXHWNRdEoSJyg6YLQUGyC1P uXll1Y7WVFnXYirHIB8WXMb9iWBRWBYsnnwxz13MHmd2Tb2nZ4JINiHWINYaoebpsAhs mPTQyxzsBHznv8ly/vN4PWVF/eNUBKjINoaVqWVvEFI6HfmrBkhlj4QHjNKiXr75yi8u l1/Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14-20020aa7c14e000000b005187aee0b5esi2892409edp.396.2023.07.21.11.53.33; Fri, 21 Jul 2023 11:53:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbjGUSXf (ORCPT + 99 others); Fri, 21 Jul 2023 14:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjGUSXb (ORCPT ); Fri, 21 Jul 2023 14:23:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 295AE2D6D for ; Fri, 21 Jul 2023 11:23:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BBC8D61D7C for ; Fri, 21 Jul 2023 18:23:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A57EC433C7; Fri, 21 Jul 2023 18:23:27 +0000 (UTC) Date: Fri, 21 Jul 2023 11:23:27 -0700 From: Catalin Marinas To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, david@redhat.com, Will Deacon , Mark Rutland , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64/mm: Add pte_rdonly() helper Message-ID: References: <20230713092004.693749-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230713092004.693749-1-anshuman.khandual@arm.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Jul 13, 2023 at 02:50:04PM +0530, Anshuman Khandual wrote: > This replaces open coding PTE_RDONLY check with a new helper pte_rdonly(). > No functional change is intended here. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Mark Rutland > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Acked-by: Catalin Marinas