Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4385996ybz; Mon, 20 Apr 2020 22:50:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKaIOx6LFtLowEt2zQf2IuGBbR1BDECggdpQxV5g1FnFbrPm3mhKN75vqtssZJdxRW9OP+z X-Received: by 2002:aa7:c40c:: with SMTP id j12mr16715323edq.169.1587448205853; Mon, 20 Apr 2020 22:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587448205; cv=none; d=google.com; s=arc-20160816; b=XXwAVGj37THU9gxMUnu579cQWU6dcrS/bXNLhsf1y5rr6HZOIXcx15eP++wVcoUDzl y8l580FzhjC1XXadf6zK/1Gl9HvwLGJAwqigHLBJ6LX3XCzBWIzzTog6VnihycpNF/ym d5FI7TGfkhxjXiIz3ebKnH6LgI0PuMbPZPiipUqUqboT27h8CFeBYicOe/0W2h0zEd85 qnELmKLJDmK2mlaKseM1XndRd3jXtyixVVrQp80074373y5uYSVVTc5KwD6rlP2balhN cNaJWNgOFBojyThYSvlG0zz09PJIpSsXB9GIYcEdLe2fQQbBNA0V0sAOLs+e5spy0aAh n6OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=XQ1Fst+62Tz5B163gJQuuOrjam2LBeO0+BsK83fBTrQ=; b=uGn00paIoi3lqdtYc2ugD0bzS4EoOCGXEHmvGk3aU8zWgypxh/a34WKI0dWHGDlz1A R8prA8dsCdh6B6I/jvXGdL74bSYCWA/ifq4HNb21RKWLwbwQQX8YHGv8QZiwRT+dt54v 51K9fzsCqZ/7bsgv3cs/LNYr4pWTJ/o63G9MXio2S4uXb9mEi4tt7QSmGMYoHyEkceDo pg5+TOB3Ri91fw7F4MwGmBA+HBXZdzI8jwcfNnJdlcI70m00rzkZJ0iNxoTNxOM8dIwc Kj8CgcM69HviIzRaZNYoQaK1lDr+q51vBHoXGOzWIdrQq9vF3KvkOK8VoWRBBWYg135Z BZUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=JgJ2K1y3; 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 o19si1001422edz.588.2020.04.20.22.49.43; Mon, 20 Apr 2020 22:50:05 -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=JgJ2K1y3; 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 S1725989AbgDUFss (ORCPT + 99 others); Tue, 21 Apr 2020 01:48:48 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:4646 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbgDUFss (ORCPT ); Tue, 21 Apr 2020 01:48:48 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 20 Apr 2020 22:46:52 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 20 Apr 2020 22:48:47 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 20 Apr 2020 22:48:47 -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; Tue, 21 Apr 2020 05:48:47 +0000 Received: from [10.40.165.65] (10.124.1.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 21 Apr 2020 05:48:44 +0000 From: Abhishek Sahu Subject: Re: [PATCH] x86/mm: fix compilation error for unknown type name pgprot_t To: Logan Gunthorpe , Andrew Morton , Dan Williams CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , , References: <20200420082231.4202-1-abhsahu@nvidia.com> <02c40a96-b9dd-14d8-57f4-426322b76bf2@deltatee.com> X-Nvconfidentiality: public Message-ID: <24e4100d-f59b-daa6-801b-28c9d062f262@nvidia.com> Date: Tue, 21 Apr 2020 11:18:41 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <02c40a96-b9dd-14d8-57f4-426322b76bf2@deltatee.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To DRHQMAIL107.nvidia.com (10.27.9.16) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1587448012; bh=XQ1Fst+62Tz5B163gJQuuOrjam2LBeO0+BsK83fBTrQ=; h=X-PGP-Universal:From:Subject:To:CC:References:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=JgJ2K1y3LY5LX/lo22fhUCm85jKV5jR6BtYESyAhAMbWzT/aHkLZcoktCBGI2pG17 TPvt0B40uWPG4PuB/W61KWiTgDFv4FArWYotx9GknmEtuTNHDqLxmK5jVPmnc43L1Y qgcc1qHpVz6CaVkfFSV2CNJW5rwabycmHVbm5FlvavuzkYWJv26Co3IHNv+D0pflhC ItAhzgOU3b/YY5XtrskxkgMDY6aSSGWpp1DdEavVUAzLSCU1YNa5Xymmo7LMjC7BI/ 7faTvwNWQKtlCwy6b1gVSNX57YlfF6NZKTOonJH2NaY5xn5nyK49KSHXKv+sxFQiB3 8FUwamF4MzC4A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/20/2020 10:14 PM, Logan Gunthorpe wrote: > External email: Use caution opening links or attachments > > > On 2020-04-20 2:22 a.m., Abhishek Sahu wrote: >> 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 > > I assume this is only hit with a specific driver or something that > includes set_memory.h without including pgtable_types.h before hand. > > It certainly compiles fine for me and the kbuild robot has had lots of > time to test it with random configs. > > Reviewed-by: Logan Gunthorpe Thanks Logan. Yes. The mainline is compiling fine with default config. This problem is coming while compiling Out of tree NVIDIA driver. But this problem can happen for the drivers which don't include . I am not sure if this problem will come with some other configs. Normally, the header files should not be dependent upon the callers. Regards, Abhishek