Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A022CC54E41 for ; Mon, 4 Mar 2024 12:31:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 12A2B1120D0; Mon, 4 Mar 2024 12:31:16 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 860BC1120CB for ; Mon, 4 Mar 2024 12:31:14 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CFFA1FEC; Mon, 4 Mar 2024 04:31:50 -0800 (PST) Received: from [10.57.13.242] (unknown [10.57.13.242]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC73B3F7F5; Mon, 4 Mar 2024 04:31:12 -0800 (PST) Message-ID: Date: Mon, 4 Mar 2024 12:31:23 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] drm/panthor: Explicitly include page.h for the {virt,__phys)_to_pfn() defs Content-Language: en-GB To: Boris Brezillon , Liviu Dudau Cc: dri-devel@lists.freedesktop.org, kernel@collabora.com, kernel test robot References: <20240304090812.3941084-1-boris.brezillon@collabora.com> <20240304090812.3941084-3-boris.brezillon@collabora.com> From: Steven Price In-Reply-To: <20240304090812.3941084-3-boris.brezillon@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 04/03/2024 09:08, Boris Brezillon wrote: > Something on arm[64] must be including , but things fail > to compile on sparc64. Make sure this header is included explicitly > so this driver can be compile-tested on all supported architectures. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202403031142.Vl4pW7X6-lkp@intel.com/ > Signed-off-by: Boris Brezillon Seems reasonable, although I do wonder if it's right to include a "asm" header here or if we should pull in something like "linux/mm.h" which includes asm/page.h. I can find examples of both. Either way: Reviewed-by: Steven Price > --- > drivers/gpu/drm/panthor/panthor_device.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/panthor/panthor_device.c b/drivers/gpu/drm/panthor/panthor_device.c > index bfe8da4a6e4c..68e467ee458a 100644 > --- a/drivers/gpu/drm/panthor/panthor_device.c > +++ b/drivers/gpu/drm/panthor/panthor_device.c > @@ -3,6 +3,8 @@ > /* Copyright 2019 Linaro, Ltd, Rob Herring */ > /* Copyright 2023 Collabora ltd. */ > > +#include > + > #include > #include > #include