From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21BFBC3A5A0 for ; Mon, 20 Apr 2020 08:22:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E187B206B8 for ; Mon, 20 Apr 2020 08:22:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="gEHyyQzq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726200AbgDTIWz (ORCPT ); Mon, 20 Apr 2020 04:22:55 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:7674 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgDTIWy (ORCPT ); Mon, 20 Apr 2020 04:22:54 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 20 Apr 2020 01:21:53 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 20 Apr 2020 01:22:54 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 20 Apr 2020 01:22:54 -0700 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 20 Apr 2020 08:22:54 +0000 Received: from abhsahu-dev.nvidia.com (10.124.1.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 20 Apr 2020 08:22:50 +0000 From: Abhishek Sahu To: Logan Gunthorpe , Andrew Morton , Dan Williams CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , , , Abhishek Sahu Subject: [PATCH] x86/mm: fix compilation error for unknown type name pgprot_t Date: Mon, 20 Apr 2020 13:52:31 +0530 Message-ID: <20200420082231.4202-1-abhsahu@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To DRHQMAIL107.nvidia.com (10.27.9.16) Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1587370913; bh=Xnf7y8bSD9xXf13IUaHOpUizsvYJxEDzqXhctJyhHaY=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:X-Originating-IP: X-ClientProxiedBy:Content-Type; b=gEHyyQzqOGhbAngRjLJkn+zdO37qMvSCWaQN5jloxRQBOldoYb207q8Z1DEIfTA3F E9bFQmn/EItGYbx69j4JhaTG7AGHJ1ysuQybihTl/gAJ3awrPY9AuT4gyrgBmonQEs YKF6ZJvB6bk6u9gYueEw7J9lTHsG2RNv0i2GJtvSwSNzfuDa71LBXZCfLy1heR0P8j RCHZtu8bU+7BapTNu/sS3sQEOTVT+T3jxLcyzJ7X6kcO1qfkTCEDv/I2qLhkIVw5BM P7FSyDDit80zy2V9hXFRT9c4LRXR9oE2aIA3to3ZnUaWAWLeVxCNRyLpeGnvxTAxPQ tyh8eUiDqjOwQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 30796e18c299 ("x86/mm: introduce __set_memory_prot()") added the function __set_memory_prot() which uses pgprot_t in function prototype. The currently included header files in do not include type name pgprot_t. The pgprot_t is defined in . Fixes: 30796e18c299 ("x86/mm: introduce __set_memory_prot()") Signed-off-by: Abhishek Sahu --- arch/x86/include/asm/set_memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h index ec2c0a094b5d..3138087b0d9a 100644 --- a/arch/x86/include/asm/set_memory.h +++ b/arch/x86/include/asm/set_memory.h @@ -3,6 +3,7 @@ #define _ASM_X86_SET_MEMORY_H #include +#include #include /* -- 2.17.1