Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3382056ybz; Mon, 20 Apr 2020 01:26:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJ8jmNFDMaY8NstrgruxXzlYdoAZ6Xn5NbjjlB8ARSXaN0tSBuftCWUMSgSFMVbVIp+Eo3W X-Received: by 2002:a17:906:3291:: with SMTP id 17mr14638319ejw.343.1587371189091; Mon, 20 Apr 2020 01:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587371189; cv=none; d=google.com; s=arc-20160816; b=yXxtRlbD2gtxAEgLGuqmlisFjwevZ7DqbKBh9ISkv+amsQLC1/1VUJMbcSH7NaaCuS M8L7cc2p0UK+9xHFm57H0x8n9mQmd9F4Tm+gPX/U62g5a/nYAsJz+FsCtxqV323oKz9z OBWVlhr9U0dgApTvwxMijZPB22ZwhpX3EdT7IphEolCmS+W6zY3dr/LFwFePe9pFrpPF DRoMPck3wO0jy44qQo0Zz5eGzUZyeU3jNPRuh7rozjsGfoE2tBj1NTKQlXLh2nOTpRPo QjqnKgtuvVA2JelgskmlQuoCQJSmLMHCofT0PMig2mYq3Dy+iwuqz8nlvx2WlLT9nA4F iiPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:message-id :date:subject:cc:to:from; bh=Xnf7y8bSD9xXf13IUaHOpUizsvYJxEDzqXhctJyhHaY=; b=UlF/LmlZIR0ObN5saY35G+VTES0JLcb5GtB0bhMxUcrI7nhk4UorTyhNQTzwlP+kRj cKARO7ihWp4tdcUC7BDk3PdSFra3lNY9DqY9qI8GdFvnNO301ZXFwPfHOA8B6/1y4Fc5 UgTju0rxizn/APvv3RHPxWzUfTsybHOek9ygdbjOBUMzrVQrBXp3pEgUfOCHDOukGpPc IL4Y9IxXoyC+Hl99jPSdrEO+4LBhZMuWxySiBWrf2IiRkwWDyfH3NEYT0IqItnKz1J9/ D7yPxqiGHQYTeW3o5lR+rStu9SMYbMn5Wbp5FF10yYnWSsp+TipS0cMM8b8OzVhHnl75 LflQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=gEHyyQzq; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si66698edr.382.2020.04.20.01.26.06; Mon, 20 Apr 2020 01:26:29 -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=@nvidia.com header.s=n1 header.b=gEHyyQzq; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726167AbgDTIWz (ORCPT + 99 others); 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