Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2997949ybz; Mon, 27 Apr 2020 08:13:58 -0700 (PDT) X-Google-Smtp-Source: APiQypK/PkO4dNnaLRil5tT5VKhcE0sWMeI3LN2jBF7sscg1oSi0dlbQg0aafgRjqxZL4mPuLU44 X-Received: by 2002:a17:906:6411:: with SMTP id d17mr20196434ejm.109.1588000438112; Mon, 27 Apr 2020 08:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588000438; cv=none; d=google.com; s=arc-20160816; b=tJT++2odRjcT+taiR6tP4bnWWRGyAMKFFiWlZlmvAyDnjQxHMXLb7oHm9M4H7igBdH 8ee4ypdybNVUe3F2vU+iUnwlk7GFmUKfkLljYO2ZnvyKoYFKeX0ubu4ujQ1jhlOES5fd qzL5yzSfsixC3GIdibaRqpuPS7HQ32Ll1gn7Se8WlyC2DmhkNxOQAEeX597XFQrsOqVa DDg5SQ2gtgRfAf0VrysbZstXQX+34VZ+bps3Un5wh5jPT/dFECSH0/sGMHiX49dHYdOU tLpDWVaPFF7bJzGPwfPtTNx/PoJXIW3mpJt7+j9+E9O/15xctK61BfQHiEZs39xyx5ic 5HPg== 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:from:subject; bh=1zJ634WJl65wUobAvZKhTYesbDEBXQz1nO4NE66/EAg=; b=Hhr/jr7ZHuybXTfWNwFXxKmTkUhN/lF70gWpkNxOEMH9FECZCUlpn6/uq9zrJOZ0mH 7UpNb2Srt9G0rucHgs+wcPNF85TyG59V+YJaFO9Y7Tf4AeuZrGN/g1ClprGehVAkx5rX cvGGFmS4LXNNveWWKYZsHVoYYQyKMFPP8KFUJw5WItCPu2zJvAkTNYMynfd/vkRMeSV1 9TP4egKJMBgQGuvdEmKHJmj/DFJbVVQYvCV6CYhAZIDSXGyS0RudAY0JwVwSclJfUQI3 qXLI2jcKNkqvIHdBtx5PTpQTDz38Wj/QOzmoHY+VSwgOY44vbrvfnYEXNJnXu5Hq47pt A9Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=D3ohtw03; 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 p17si8747617ejd.260.2020.04.27.08.13.34; Mon, 27 Apr 2020 08: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=@nvidia.com header.s=n1 header.b=D3ohtw03; 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 S1727794AbgD0PMA (ORCPT + 99 others); Mon, 27 Apr 2020 11:12:00 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:12072 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgD0PMA (ORCPT ); Mon, 27 Apr 2020 11:12:00 -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, 27 Apr 2020 08:09:59 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 27 Apr 2020 08:11:59 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 27 Apr 2020 08:11:59 -0700 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 27 Apr 2020 15:11:59 +0000 Received: from [10.40.165.118] (10.124.1.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 27 Apr 2020 15:11:55 +0000 Subject: Re: [PATCH] x86/mm: fix compilation error for unknown type name pgprot_t From: Abhishek Sahu To: Logan Gunthorpe , Andrew Morton , Dan Williams , "Ingo Molnar" , , Ingo Molnar CC: Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" , References: <20200420082231.4202-1-abhsahu@nvidia.com> <02c40a96-b9dd-14d8-57f4-426322b76bf2@deltatee.com> <24e4100d-f59b-daa6-801b-28c9d062f262@nvidia.com> X-Nvconfidentiality: public Message-ID: <7cdc44e5-4de4-7dea-13c1-536708f12fa2@nvidia.com> Date: Mon, 27 Apr 2020 20:41:53 +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: <24e4100d-f59b-daa6-801b-28c9d062f262@nvidia.com> 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; 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=1588000199; bh=1zJ634WJl65wUobAvZKhTYesbDEBXQz1nO4NE66/EAg=; h=X-PGP-Universal:Subject:From: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=D3ohtw03aLIN6UGW7qdWLQ2v112wbX/SOBUvcGlO79BX/nGv6P1NIQfYbNz6iOQK3 hCnvNTt+ODWSqRtyv7/yeScmQ6y+hjYNpy7HBm7WTwfB4if7L40/pC8OEoQrL+lgzx P+VtbOnZqZF8DojLSqYwIMnZywmobgRto8rS3Djdpg8ceWKeCGCV/CP5RuIsnPebor JIIprjlLjDE1Tic4VWLuay7lfygXqlZdD+cPEK6UNYh3zkxMNP7siwcRw2INfulFRx p6w3BVp51fGKhbn6DT/wt6YDoxlnV2T9p1qHSTa8wY4P5Nkpa34OAg3PhtCIRjGJBR CWvEoedz83z4Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/21/2020 11:18 AM, Abhishek Sahu wrote: > On 4/20/2020 10:14 PM, Logan Gunthorpe wrote: >> 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. > Is it possible to get this patch merged for next rc of 5.7. This issue started coming from 5.7-rc1. Thanks, Abhishek