Received: by 10.192.165.156 with SMTP id m28csp446863imm; Tue, 17 Apr 2018 12:58:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/8hMPbGlSgET1/+DyCwHzYMzh1IhJsPWs7clCUL/SZj+nzJhVA826wfbRiwEe3496jnZzu X-Received: by 10.98.26.85 with SMTP id a82mr3155274pfa.21.1523995112302; Tue, 17 Apr 2018 12:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523995112; cv=none; d=google.com; s=arc-20160816; b=PNNiTiTR3VadTSWGT7Cm0fG8brdGfaslFbJuKYn2gCkeMUiztXuNKwzACGhphnm6tV 6gjgIt3zSzdvDReKr7RFppSCVsNRv89+beOhE24Cuje7HLDwoGRjM7wsJ4mra0l5aXdx 90NRQP/pXJZ2qSHwvYf0hjuz6zpgPWj4JOUiO9m+suw1lUhg41LQeOFhelzEM/kUNnd4 DyF+oLHvwgOEhfhtlBNDLk6fU1N+Sfd3s2lD+I3t4oJq3Mq1VsYxNKflTSXsEsAmVZs+ F9//c2zDp42FNemnJXMMfgrrnGLq6kVomOFWmUru0gpZLEW8xxqbzEZmslSVW9qouBJb CVEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=eZGAVXf/qp8NhFRMC2lpjuHVO16rVHPR2gPgjjIhwgg=; b=Y1hftuMf820hqDXzQXTUn/6bBPmEhw03wmHYlV4w/13biwn8E0V4HE9V6yupeUIvN/ neIk/IBYk8fNwWx+FiSNISP2fG4Ia5Rbk7MEWkDvEp6Q7dD5a68yxe0LDtmeDwN7jv4d dSdq+G/VtfdiHIywif/+E4Pnba0L/RmwaEqAXiM3XnT+rV47jPY3V6WyKUOfRZdyx+JW NkMJFLqkh1rVveBYWuSrFGpW48cv6cHc1zGRPpu0v4WMnPNiBS1LarH7bvKeHu04xnlo 4R3c0ydLC0YsKJimrP5guf6CtMjqazlok055J0U8/k9dihbdPVmdiRf565eNhuaGKtQO 2VLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=kPAOhtVn; 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 c87si11814266pfd.89.2018.04.17.12.58.17; Tue, 17 Apr 2018 12:58:32 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=kPAOhtVn; 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 S1752766AbeDQT4F (ORCPT + 99 others); Tue, 17 Apr 2018 15:56:05 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:34908 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbeDQT4D (ORCPT ); Tue, 17 Apr 2018 15:56:03 -0400 Received: by mail-qk0-f195.google.com with SMTP id c188so21325698qkg.2; Tue, 17 Apr 2018 12:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eZGAVXf/qp8NhFRMC2lpjuHVO16rVHPR2gPgjjIhwgg=; b=kPAOhtVnQSfag8gNxr/CdpdoLrsrTOjfSxELRJN2+LmnApo8YVNnC+MpgZoi8VprSX UlUaHu/8zy5GkJaNuXKhcY8D5cXxFIgjrN0bc9AqJaNn7JUay71gc4OSiYgzSEnWorvX mERaLfN9QMRRiOGT5bQlUbBXD1ub35JLOcN2yvlRb1UK992QHMNwb5Dfpl8UqXEdWjER HFmYtzXJb80Y8v3mDJS+em693Pn7izTpiE8plUJ19vDAYOI6RFNS791vYIpqBMcVjFdJ UNSEW2oc/B4VfTUq3gTg62wQPcWAnn0BIqAzI2ce9eChM9vFDQrBEX2N3hLFgoEmIU4D +zow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=eZGAVXf/qp8NhFRMC2lpjuHVO16rVHPR2gPgjjIhwgg=; b=TBa09PwICJ5sIYmVIbF61YX7bCi3md6/eQ3ZLwQrg080OAQciEjGG+n6oqtu1KVa9z LpJuADgwHQunVof8/iB6FvOPFjVrBebmG6EiOIQySd44TQBedihRzcCDlzQgYTwru2Qe 3OXv3pQFTVASqhvdeuB1tcmi/QTmVTcU88sqivVbHRq1tNUtrEUDn+CF9yZi+JteBAaj 8XQ7MyqPP1zdqtuECHZGpz6CrTxV0kgiRBS7mm69zYByll5BqhefThlINOieY89k+pWl mreFlFr9JFRYGKOduwa4IM/Wxih3r1/SgJkbgyI4XenDsJXliUDLnNd8sny+Ox0W19Vd cdDQ== X-Gm-Message-State: ALQs6tB6VacK0/y2TDVXYz1L7K07oZ2xPetsSx+vPjSm6faTSoyzqDeI eeeBqL/JTBeTrYe5q/nJZ7LyYPxCeEx0r/1614c= X-Received: by 10.55.187.3 with SMTP id l3mr3512932qkf.32.1523994963126; Tue, 17 Apr 2018 12:56:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Tue, 17 Apr 2018 12:56:02 -0700 (PDT) In-Reply-To: <20180417183735.56985-7-mark.rutland@arm.com> References: <20180417183735.56985-1-mark.rutland@arm.com> <20180417183735.56985-7-mark.rutland@arm.com> From: Arnd Bergmann Date: Tue, 17 Apr 2018 21:56:02 +0200 X-Google-Sender-Auth: QW06g8Mf48_VtHGEwdL9Pgq1cXM Message-ID: Subject: Re: [PATCHv3 06/11] asm-generic: mm_hooks: allow hooks to be overridden individually To: Mark Rutland 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 Content-Type: text/plain; charset="UTF-8" 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 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