Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp171830pxb; Fri, 15 Oct 2021 03:13:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNeUs2sDFKKspeYI+NZKoaT/ga3iuo7+2F2x9J0bLP+mI7eooPX9JC1xpnBfS5Lzp2uohm X-Received: by 2002:a50:cfc2:: with SMTP id i2mr16192563edk.72.1634292838793; Fri, 15 Oct 2021 03:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634292838; cv=none; d=google.com; s=arc-20160816; b=Tscp8Lx6hhkzcmvYKxq6O5jrP+fbq0dp+u+nolsSCgIIlJcyhCb3G8OHpcVk6Wn6pe Soe6U2LUdTK0xDIzwC2kZi9tV53Ma+kbXqonBf1J2ZuuzbWtQ3zJ5kBSLQxFUJcWb7oe 0SH4iPEUiZAMhT8R7fPkbOLjslxm36fw3rAPstsDvO2YjbxrUiZkRRB4+lVCZA8MboNZ A7MpdVwBzlDp7XA20qSFoMKL9umc1y8EVfq57VhnhU8G0Z1Aty7MkTkyrl11xLjdi7rm VrUKdp0SEDcuvB7KX7C9sL5P16aC5ND7AkKfqUkIzVubC70jDHPrXEhhkh2qZmo4UqyJ NKiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=+MrVSk/2pciJ3iChH2fVF59RQ2MRpjf0vm2riZZbUpw=; b=WJlD3UhXotZmR4Pu3VgkwM/zxL/F7Al/B+pWVO4Iv35KfS3wImH1gCSI7y/bbn4FYy d5F8E44SUgbTOiUxnSOvU9pufToOO2v2jB39oZd3z19Z5gvuL/wM2f51BvOVMMJNUaFY nb427/xvQWwKmCanOxxV/NJyGjh8RdiXi2PDCOzlEU4Cn9pFOPVn1tmg7EwdrFVqCOuG 445llHbM0UcPwa1N4wQI4jhZ+ufoinnsFWpeeG/7LiL1NSHg3u0G31eR8cNXI9CyPVN3 n4hOyQ2znNhpMcDiGLw7tUmtO3TXqX2Mf/ug9YaDqmaIJHFG1K9ocCQcRu6YJEZ62MUz KmfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MXB83Z3K; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si8092282edd.539.2021.10.15.03.13.34; Fri, 15 Oct 2021 03:13:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MXB83Z3K; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232467AbhJOBSI (ORCPT + 99 others); Thu, 14 Oct 2021 21:18:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232345AbhJOBSF (ORCPT ); Thu, 14 Oct 2021 21:18:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AB1FC061570; Thu, 14 Oct 2021 18:15:59 -0700 (PDT) Message-ID: <20211015011538.551522694@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1634260558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=+MrVSk/2pciJ3iChH2fVF59RQ2MRpjf0vm2riZZbUpw=; b=MXB83Z3K+K9pR4xdFQsZTDqe17dya/qIry7s151HSJRy/+9yNIFDQEq3c2GK4NkbPtofVl IlEHLAbBFl9+qyfWf/512xLCp4/ChoN4eRrmvaBc0+pSiYiEpybNdyU8kZklxkbMdss6yx WZkrfJMQ1tDgH5byLctRaRw7hPmd9vhwocqeLYS18D9OKyNqV3RUZFH4xZpv3Zz3zr2UX/ sq7AD+OyAWkOQjZvYgRq9FvLLVecjEojizqXlugh63Bz/KOsaZ9Y4WjmgpvYpqQJ5PwVjU TnaGrZpVqDdRJQD9AeQqU+zB9YXAuARK4OSKI5lmnuk+w6fW7dE8uaFhbQai7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1634260558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=+MrVSk/2pciJ3iChH2fVF59RQ2MRpjf0vm2riZZbUpw=; b=5k3nH9qdwbC9lGFKIKwV45Ges8DtCgWK+z265NNrxBRdamTyjw05NqOg9j3PFcI5xQVh3J iyv9KRHi17gGCjCg== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, "Chang S. Bae" , Dave Hansen , Arjan van de Ven , kvm@vger.kernel.org, Paolo Bonzini , "Liu, Jing2" , Sean Christopherson , Xiaoyao Li Subject: [patch V2 03/30] x86/pkru: Remove useless include References: <20211015011411.304289784@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Fri, 15 Oct 2021 03:15:57 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PKRU code does not need anything from fpu headers. Include cpufeature.h instead and fixup the resulting fallout in perf. This is a preparation for FPU changes in order to prevent recursive include hell. Signed-off-by: Thomas Gleixner --- arch/x86/events/perf_event.h | 1 + arch/x86/include/asm/pkru.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- diff --git a/arch/x86/events/perf_event.h b/arch/x86/events/perf_event.h index e3ac05c97b5e..134c08df7340 100644 --- a/arch/x86/events/perf_event.h +++ b/arch/x86/events/perf_event.h @@ -14,6 +14,7 @@ #include +#include #include #include diff --git a/arch/x86/include/asm/pkru.h b/arch/x86/include/asm/pkru.h index ccc539faa5bb..4cd49afa0ca4 100644 --- a/arch/x86/include/asm/pkru.h +++ b/arch/x86/include/asm/pkru.h @@ -2,7 +2,7 @@ #ifndef _ASM_X86_PKRU_H #define _ASM_X86_PKRU_H -#include +#include #define PKRU_AD_BIT 0x1 #define PKRU_WD_BIT 0x2