Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3805708ybz; Mon, 20 Apr 2020 09:45:59 -0700 (PDT) X-Google-Smtp-Source: APiQypLtIfwKy9IowhAOlmv6+SxIhWRhY6ELoocAbeToq3Fyzm6rEOaT3EL7wdkh813ZDhXOdrxo X-Received: by 2002:a05:6402:1694:: with SMTP id a20mr3136045edv.322.1587401159594; Mon, 20 Apr 2020 09:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587401159; cv=none; d=google.com; s=arc-20160816; b=fABXoyRLUno3ZFLEIrxJcK4ICxWEmBmN5ffJGxH74zXD+CBjcVm6qwDuSH711qBjND CWPUS7o+uZ7VLxboInjsRLVKGg9n4EJ2XKoSHF/TgXvZBdU+NeOlXDkvsGbOQarR2AcE V7D8X8HRVOepThy6UBwLC1U1JLa2jT2HePZaUTVwwInzYStLm1FTdfN0psKChHbvItpp tx9Upnn8Pirxhua7j0bC0T8VgUSSqneOdbQCW9UQK++KdobudKALouTUuYqcaH2zAvT+ bNek5jEPvEBrIXumv5p6mlAzL9XEzuh14LnXVQwFwWGTjK5VZCtHm4MR8crH+CrbevGE F3gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=r5V7Gxr7oXagU4KctT79T+MDNCCKAY2YESp/DNbAo0Q=; b=x2CvGfQtzVt2zxJ7qVpirYiS7FLQ9ezhkPG7CPXM6XQ4H3g1K06dVQ70HeyDlZWBV6 VSSpfEGAMzqaSU/FQNoi5GrHoswCuInfV7dz/WIr/ANtg5i/6HFqMrHVue+QlvMwNjh2 hykgRub7jjSO9gWJFB9p1P0JAVbnrghjl3DuH5PMbJblbYMWdPdYyNcfDATUaVzyXZjA tzJE4O1E6ZK8N0uwQD9MJhf5R82gUMEXon4Z+uX/T/v4c5BhOJYS/rBFMh54RN+UG+dm tViKTCTwTcUXdUxt2dLZq6waArDm58x22viXdM41c7c0Cpz5C6Iab5nHEur07xoT8ZaX NtBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si850577ejq.363.2020.04.20.09.45.26; Mon, 20 Apr 2020 09:45:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726284AbgDTQoc (ORCPT + 99 others); Mon, 20 Apr 2020 12:44:32 -0400 Received: from ale.deltatee.com ([207.54.116.67]:42970 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbgDTQoc (ORCPT ); Mon, 20 Apr 2020 12:44:32 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.92) (envelope-from ) id 1jQZX1-0008Cn-Qh; Mon, 20 Apr 2020 10:44:29 -0600 To: Abhishek Sahu , Andrew Morton , Dan Williams Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org References: <20200420082231.4202-1-abhsahu@nvidia.com> From: Logan Gunthorpe Message-ID: <02c40a96-b9dd-14d8-57f4-426322b76bf2@deltatee.com> Date: Mon, 20 Apr 2020 10:44:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200420082231.4202-1-abhsahu@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, bp@alien8.de, mingo@redhat.com, tglx@linutronix.de, dan.j.williams@intel.com, akpm@linux-foundation.org, abhsahu@nvidia.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH] x86/mm: fix compilation error for unknown type name pgprot_t X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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