Received: by 10.192.165.156 with SMTP id m28csp1123545imm; Wed, 18 Apr 2018 04:39:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/lKmnz4Zc3QzwMJdN5XUSsuRPXCzIgauldSJcycfvFv0poZQGpGIEcoas6gflS7lbxPQ3k X-Received: by 10.101.64.140 with SMTP id t12mr1485020pgp.98.1524051586443; Wed, 18 Apr 2018 04:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524051586; cv=none; d=google.com; s=arc-20160816; b=UKQlPbXW4U0N0ljBXPiEERB2bkoOj0+3nNW+owmPygQCqzPx+eAGgAP0ZY1IBWk9iP vbH0dw8NQw61Tcz1obYrp6pHjpdD1UoRMRniofFR0C/tcxcEA/CYGmkS65E1/+aYNFcl iRXPMGlcyiBrvM3/FehTVqpMA6IjFPxkb4F/m4Y5srvprud8yByEy6T3DTV3WjP+N7YB 58ryCes/BY0+PdUVKnPftok3QI1m5DeRfrznTBPj2MH7BIhAqOfci2VO6qWUC6SnEe55 iojbBgD+pU7ixAiIuXnaEUqglBWIdhLOrwbgO+qBxfzvOep6vAoV85bXq/l9VJMXT20a MV8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Y1UVHD7BlRtNjmzohlg1KalwNgwDAW+mb+DiB/8kFuM=; b=egM9YEZj5BiQzHSd+xng0g+BZ17CJQa8s4/TEw7poAw5MY5RvSfokC1OuXjiIE594P gddbJryhorjeUOPaDobJUbfQhU0xo+NOGfl0X5n/cLYHTc8/fO9E7LCH1kQ/80rYF8Sy N7sS3P7ychOog3cfrJG92fb6Nz18V01EAUFwiDMGT2R3JXiRj59V6PEdVbWg9kH56qMi tGed8YF7L6zGEVWnhWMc2/7dxaKwi64kkj5OoGKhklLnY8v8rLksHd9IPsXI5+R19eaa Z9zdUjhmSfmwFfNJBb8acTYq0XFIlTbxsamugyWlu75tB2TJFrjekVIEULzQgSEFA+E5 AacA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y186si998066pfb.284.2018.04.18.04.39.31; Wed, 18 Apr 2018 04:39:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753596AbeDRLiX (ORCPT + 99 others); Wed, 18 Apr 2018 07:38:23 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53822 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752308AbeDRLiV (ORCPT ); Wed, 18 Apr 2018 07:38:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 573C11596; Wed, 18 Apr 2018 04:38:21 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 003E63F487; Wed, 18 Apr 2018 04:38:18 -0700 (PDT) Date: Wed, 18 Apr 2018 12:38:16 +0100 From: Mark Rutland To: Arnd Bergmann Cc: Linux ARM , Catalin Marinas , cdall@kernel.org, drjones@redhat.com, kvmarm@lists.cs.columbia.edu, linux-arch , Marc Zyngier , Ramana Radhakrishnan , Suzuki K Poulose , Will Deacon , Linux Kernel Mailing List , Adam Wallis , Kernel Hardening Subject: Re: [PATCHv3 06/11] asm-generic: mm_hooks: allow hooks to be overridden individually Message-ID: <20180418113816.sgxdnxrbg4imzxfx@lakrids.cambridge.arm.com> References: <20180417183735.56985-1-mark.rutland@arm.com> <20180417183735.56985-7-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 09:56:02PM +0200, Arnd Bergmann wrote: > On Tue, Apr 17, 2018 at 8:37 PM, Mark Rutland wrote: > > Currently, an architecture must either implement all of the mm hooks > > itself, or use all of those provided by the asm-generic implementation. > > When an architecture only needs to override a single hook, it must copy > > the stub implementations from the asm-generic version. > > > > To avoid this repetition, allow each hook to be overridden indiviually, > > by placing each under an #ifndef block. As architectures providing their > > own hooks can't include this file today, this shouldn't adversely affect > > any existing hooks. > > > > Signed-off-by: Mark Rutland > > Cc: Arnd Bergmann > > Cc: linux-arch@vger.kernel.org > > Acked-by: Arnd Bergmann Cheers! Mark.