Received: by 10.192.165.148 with SMTP id m20csp4408770imm; Tue, 8 May 2018 08:02:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpH/WlNxYuYVsWVD7pZ64kZoxpiuaRpS8549NDwQXaKyEa3fEOiUSQ+Zd7pjBEVygJmQsNZ X-Received: by 2002:a17:902:3225:: with SMTP id y34-v6mr42791618plb.180.1525791722363; Tue, 08 May 2018 08:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525791722; cv=none; d=google.com; s=arc-20160816; b=Qa3hhnbGFrF12zUq4xgCCoDcxptGulxLi9zVmdYKVX5YfH7WJImw0qwAJfKjoXLCH+ K1ylYDFMyfBXLsIE/Zn2BtMISLlrZNOfiCpeH1mkXiHjt2lWQVnskFiE6FjjKvEz5/qd jXqM0h8asgbD30gPMgc9fXAxKmfn6BFh5m9Fux3tvG4IYUVKHJ+GuXBdDg5l+1d+8ktr wQwTDcoOC/TsNyshlsf0mHlDvaWtN8/UvsWXNazVhGMIcNuwi+66U6l+GUEvZwGzvtL8 +6Z3sL/2zQGTQF2APaMlbJKDuejitoXOdhlm29h1BfyUi9HQTPFwUIIm+fNe9GfuyLvS 6sDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Q9AdOWoGdHWd2mHOAai/6aINbixjFqo69pPQqpAus9o=; b=Y8+w+rPdX4PAxW1D1FFoy6q4cZNmNZkZD9EV6sfgQf9rDFmMRL9yXL4ErW5wSUoQl6 d2Q6SWbt58/rizL7Fs/uIoL8CBOfEd0M1oq1aSqMkuacJ/RGe7aq9AEEZLYyCErf+Z8Q v/5+MpZ9uDwKc4mko/RoOouG1coPP8fBvM6aCBQH2Hzpd1tsiBcua4g37682YyC5Ub9i PrYeofO75FCzNRzQ/oCga1K0zJCkhqfjMVVKzQg9pESfoyZs6cFJ31Yqaaf+ZRIEEtBS jQjvy+I4lYpwCpZA8JccD7PLomn/JlvRPSObXCznNqrR0yoVamR4snIg/rh3yKylcPII yxxQ== 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 o7si17380757pfh.103.2018.05.08.08.01.45; Tue, 08 May 2018 08:02:02 -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 S932994AbeEHPBN (ORCPT + 99 others); Tue, 8 May 2018 11:01:13 -0400 Received: from ozlabs.org ([203.11.71.1]:44627 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932765AbeEHO77 (ORCPT ); Tue, 8 May 2018 10:59:59 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40gN260B8Bz9s4Z; Wed, 9 May 2018 00:59:57 +1000 (AEST) From: Michael Ellerman To: linuxram@us.ibm.com Cc: mingo@redhat.com, linuxppc-dev@ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com Subject: [PATCH 3/8] mm/pkeys: Remove include of asm/mmu_context.h from pkeys.h Date: Wed, 9 May 2018 00:59:43 +1000 Message-Id: <20180508145948.9492-4-mpe@ellerman.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180508145948.9492-1-mpe@ellerman.id.au> References: <20180508145948.9492-1-mpe@ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While trying to unify the pkey handling in show_smap() between x86 and powerpc we stumbled across various build failures due to the order of includes between the two arches. Part of the problem is that linux/pkeys.h includes asm/mmu_context.h, and the relationship between asm/mmu_context.h and asm/pkeys.h is not consistent between the two arches. It would be cleaner if linux/pkeys.h only included asm/pkeys.h, creating a single integration point for the arch pkey definitions. So this patch removes the include of asm/mmu_context.h from linux/pkeys.h. We can't prove that this is safe in the general case, but it passes all the build tests I've thrown at it. Also asm/mmu_context.h is included widely while linux/pkeys.h is not, so most likely any code that is including linux/pkeys.h is already getting asm/mmu_context.h from elsewhere. Signed-off-by: Michael Ellerman --- include/linux/pkeys.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h index 0794ca78c379..ed06e1a67bfa 100644 --- a/include/linux/pkeys.h +++ b/include/linux/pkeys.h @@ -3,7 +3,6 @@ #define _LINUX_PKEYS_H #include -#include #ifdef CONFIG_ARCH_HAS_PKEYS #include -- 2.14.1