Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3972672pxb; Mon, 21 Feb 2022 09:20:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgbMdyh9XAoZcMqLnsNFXQ3pWW5tS3lLPcsy1ClK3c8T17fcEVajcRnCWYKcG3ElC+opB9 X-Received: by 2002:a05:6402:350d:b0:410:b608:ff4f with SMTP id b13-20020a056402350d00b00410b608ff4fmr22609830edd.89.1645464030114; Mon, 21 Feb 2022 09:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645464030; cv=none; d=google.com; s=arc-20160816; b=GG5Dx9bdCem6s5viziLrF7vN+3HBtlazp29Oi21ZtUClzTIL9aCtNmqMnt90O7CMiS AzkLusdWqBXEDANgIAG0b+zraX5W7KHxUCxROrOUzvH4JqaAGULSM0E8gWViw6F4Xe3U i4ip22hmjOHnR2aBQxTpsjJwd9rJHzS+waf2/Uvj7IM9x1ogycg/oInlfZDj7xiS9z1M 6RImN2YM5AcYItdYWJnHXnncjP2i2F2NN5xfHtA9ENxJzOBFD7JjRJ+hrbpOHhpfBh0w 93QSOl01hrmoOUcaM17Q0LeXWh3zHDGpoxbm2jwKbmjyVEbsZPDNmpxrLgnrq3qWUcqV WOTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JSLH+eFcaJnQgSNtzhtGkkwM7Eom6tN6wkF5baqd29E=; b=batitT77qJ6Bco9SuYkV4JhRR1eo+U07b6/5OFlG61MOq3ThQCeRpOeo6C+7BrOKwT OUkm/eg+RFAOHbzR2k80eeWjq00QA7Y2Fd0TF8hHDVKUONkyqKUhCIoARPcbfLsNeeon 3F4X9XBfb/E0Ft6YdZQebKFyNU/5Weduig3in0lRpB62Q4LBKgiSZzsbUcWWSmlBzU6D 2DP962TL/e2TmmKqOVNaic1MAcJt9NVnxwd8SBY8EiDoNqH3TXD+/vYti7iBYshtaPMg PuQEj/5JHRiDnvmSJeTjm42driF+dfRVM704Eg+b/xPTEDMRy0wo7i+Aen+M+2ABF8gp 1wXg== 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 d21si8860394ejc.473.2022.02.21.09.20.07; Mon, 21 Feb 2022 09:20:30 -0800 (PST) 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 S1355925AbiBULRb (ORCPT + 99 others); Mon, 21 Feb 2022 06:17:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355419AbiBULPX (ORCPT ); Mon, 21 Feb 2022 06:15:23 -0500 X-Greylist: delayed 3173 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 21 Feb 2022 02:54:12 PST Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96805F38; Mon, 21 Feb 2022 02:54:12 -0800 (PST) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nM5V6-0006mq-00; Mon, 21 Feb 2022 11:01:00 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 2EAEEC254E; Mon, 21 Feb 2022 10:55:16 +0100 (CET) Date: Mon, 21 Feb 2022 10:55:16 +0100 From: Thomas Bogendoerfer To: Anshuman Khandual Cc: linux-mm@kvack.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Christoph Hellwig , linux-arch@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH V2 07/30] mips/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT Message-ID: <20220221095516.GA6314@alpha.franken.de> References: <1645425519-9034-1-git-send-email-anshuman.khandual@arm.com> <1645425519-9034-8-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1645425519-9034-8-git-send-email-anshuman.khandual@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_HELO_PERMERROR 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 On Mon, Feb 21, 2022 at 12:08:16PM +0530, Anshuman Khandual wrote: > This defines and exports a platform specific custom vm_get_page_prot() via > subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX > macros can be dropped which are no longer needed. > > Cc: Thomas Bogendoerfer > Cc: linux-mips@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual > --- > arch/mips/Kconfig | 1 + > arch/mips/include/asm/pgtable.h | 22 ------------ > arch/mips/mm/cache.c | 60 +++++++++++++++++++-------------- > 3 files changed, 36 insertions(+), 47 deletions(-) Acked-by: Thomas Bogendoerfer -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]