Message ID | 20180508145948.9492-4-mpe@ellerman.id.au (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3EF8460236 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 8 May 2018 15:00:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DEC728DD3 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 8 May 2018 15:00:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 224D428DC4; Tue, 8 May 2018 15:00:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 454E228DD3 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 8 May 2018 15:00:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 77CE16B0292; Tue, 8 May 2018 11:00:01 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6FE726B0293; Tue, 8 May 2018 11:00:01 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A2206B0294; Tue, 8 May 2018 11:00:01 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id 25FF86B0292 for <linux-mm@kvack.org>; Tue, 8 May 2018 11:00:01 -0400 (EDT) Received: by mail-pf0-f200.google.com with SMTP id z1so8773402pfh.3 for <linux-mm@kvack.org>; Tue, 08 May 2018 08:00:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=Q9AdOWoGdHWd2mHOAai/6aINbixjFqo69pPQqpAus9o=; b=IFq5a8LtmwNrOiECRpaRdgjkUtqSjvpR+g9OEGLMcoxoZcZ3JR4/2bhY0wnN7LNclP Z4RARDq9es0RBjdf5S0q8E8L6WN+6ibwj2rTZ4pDEwcRhvmW6iWn1DOMIH0UfVNVNnV2 hHT4mA+8MLknVVBYp2VIyl7ADb3wZn0k/huvwjjsZFVOUGI6NP1I+2w9AtpJr63PHOAg G7GrLaAyzkaH9+sxS5I7PTL4+J31I0O8ZEennBbCOKi45Wvs9LCMMEyvBipCGg/fMSLw 6EnO4bC7yX4eE2MwoT0W9qE8OZngelavrDieaiMBEbkFxkuZMPrlL/1TXZz6xze40o+E fymg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) smtp.mailfrom=michael@ozlabs.org X-Gm-Message-State: ALQs6tB7dpn/eaIAGT75nwSuEpVz+deNDq1abgYo3ZBrORLxWDWKDYSg Gi/pz/OnNbQpthmxTA7QfT4o+zebQjSr7/Z4Hs5jIacoFbXQLR/PxpBrEwRsKXC9g37wKlVKZU+ zDpayNgXoxPMNBb1kUbjZAMBDSKLTsssLBjLRgj8WuFOzJZDCrJR4naNAJJl/WKc= X-Received: by 10.98.65.132 with SMTP id g4mr40593816pfd.51.1525791600843; Tue, 08 May 2018 08:00:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq+++yMDC3/CTMHFJAsL+O2cf9Lg0Ixq36ligAgCyaqdrF0Fn2a2ZK/WFwiSKvg1aTir+Q3 X-Received: by 10.98.65.132 with SMTP id g4mr40593780pfd.51.1525791600166; Tue, 08 May 2018 08:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525791600; cv=none; d=google.com; s=arc-20160816; b=TduAD87J+IVKKbfGYkXGRg5gxagTwwRWcpS1GmbiRk8c0v5r8qp+rZ6HcLuENQEPfp DSnQkOTacNozsv5eH5U8ZCNym3PLRWyznJkIZbTnH59FnZAHNF1R3YfrI/Y/VwPDxBsN LaJ1OmmQ91DCCLWcfcl2nputMCD+kBb1Q6knysy9yO/c65y8FPjtWc7j/q7HJKg3TOPr EOjlpxadVupiTGZ1G0SgCo3exavCSZG4Q7q1MSMG1/DsYFfGRw6h2na4QWKEZ3Lqio3W zeHJiP5wW+UbqGTzjK1zUfvav55mrYhhiITvkD5jHAXc864dq85AYAdsxDI4uyyaVncE hSCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Q9AdOWoGdHWd2mHOAai/6aINbixjFqo69pPQqpAus9o=; b=JiVaK/pelBfelFl+oUFZzVo1V9dBmGXmjijY4bZ+M7LfDcWqVeoTKb3ONHsoaG8SHb FAQ7RYVwSem/mTt4RtVqvp7FVz3A3P7SuxlhtgMnEyQh3ULq83t9dm/MPQDVMwUJWSgr w+yK+ES+xT//7PCaW5cqXCmksBZn5fRDRmGsH+uBTOUsfJISOvN59ezB+gdq8dSMjWsx +CIJIDc3n+pzwfnOjiJEnwTc1BophtPT7nbpCI3s22J79oNqN3e6K1Aqr2q5H6/yZHpZ SPUDJdzDHsLUMOgvjvX2BZlzo1rvS+cCGJZN5Sr99AO+QlomBqoJzzDwopO11t3ozD6n nHbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) smtp.mailfrom=michael@ozlabs.org Received: from ozlabs.org (ozlabs.org. [2401:3900:2:1::2]) by mx.google.com with ESMTPS id z14-v6si1296789pgv.514.2018.05.08.07.59.59 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 08:00:00 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) client-ip=2401:3900:2:1::2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) smtp.mailfrom=michael@ozlabs.org Received: by ozlabs.org (Postfix, from userid 1034) id 40gN260B8Bz9s4Z; Wed, 9 May 2018 00:59:57 +1000 (AEST) From: Michael Ellerman <mpe@ellerman.id.au> 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
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 <linux/mm_types.h> -#include <asm/mmu_context.h> #ifdef CONFIG_ARCH_HAS_PKEYS #include <asm/pkeys.h>
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 <mpe@ellerman.id.au> --- include/linux/pkeys.h | 1 - 1 file changed, 1 deletion(-)