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 55AF5C4345F for ; Fri, 26 Apr 2024 08:23:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B60610E77D; Fri, 26 Apr 2024 08:23:44 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=tronnes.org header.i=@tronnes.org header.b="FC/VcccY"; dkim-atps=neutral Received: from smtp.domeneshop.no (smtp.domeneshop.no [194.63.252.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7AE1D10E77D for ; Fri, 26 Apr 2024 08:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org ; s=ds202312; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BzbI7BVGsOb2Ai1jDfBc/NwRGl6a98pUtvKA/e42e+A=; b=FC/VcccYheelAHJ038bClvbB7X 4tYfW5RZzs4VeEMZasPws0zPYNUAQVPQkBM54XGL0uA6Pg8AS5c3OQt4vZwhIri13y2FOOBdofOiJ WbiT14ThsOA+k6BNy8Wr3ziLTSLdZDMLD2T/d0ubw3nIJPGW3FbASuBZbM+3oD5pfqP7/VkbL8qD4 +DV+IfySBNUhcENPp6IOv/0ZDBo+fm1J9VG65yp0WHJJc85IZgl8ug9H960qN9ZS3M1CnHRACMrKp nWJoSBjBJAkgBdJjoJZwE6aV7S6vJ7RC0BePbOF+urBrCds5yUyF/nbRqKFETcYObnEBVHEvgHa// eDz0gysQ==; Received: from [2a01:799:962:4900:815f:3dd0:60d8:6458] (port=45138) by smtp.domeneshop.no with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1s0Gpj-00BP4I-Iu; Fri, 26 Apr 2024 10:21:27 +0200 Message-ID: <533e254d-9d4b-455c-80d6-bdbdb3942e91@tronnes.org> Date: Fri, 26 Apr 2024 10:21:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] drm/print: drop include seq_file.h To: Jani Nikula , dri-devel@lists.freedesktop.org Cc: Andrzej Hajda , Maxime Ripard , Maarten Lankhorst , noralf@tronnes.org References: <20240422121011.4133236-1-jani.nikula@intel.com> <20240422121011.4133236-2-jani.nikula@intel.com> <703d9f05-499f-41d5-a892-b5c2ee2ab814@tronnes.org> <87cyqc60rm.fsf@intel.com> Content-Language: en-US From: =?UTF-8?Q?Noralf_Tr=C3=B8nnes?= In-Reply-To: <87cyqc60rm.fsf@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 4/26/24 09:28, Jani Nikula wrote: > On Thu, 25 Apr 2024, Noralf Trønnes wrote: >> On 4/22/24 14:10, Jani Nikula wrote: >>> Never include where a forward declaration will suffice. >>> >>> Reviewed-by: Andrzej Hajda >>> Acked-by: Maxime Ripard >>> Link: https://patchwork.freedesktop.org/patch/msgid/20240410141434.157908-2-jani.nikula@intel.com >>> Signed-off-by: Jani Nikula >>> --- >>> include/drm/drm_print.h | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h >>> index 561c3b96b6fd..089950ad8681 100644 >>> --- a/include/drm/drm_print.h >>> +++ b/include/drm/drm_print.h >>> @@ -28,7 +28,6 @@ >>> >>> #include >>> #include >>> -#include >>> #include >>> #include >>> >>> @@ -36,6 +35,7 @@ >>> >>> struct debugfs_regset32; >>> struct drm_device; >>> +struct seq_file; >>> >>> /* Do *not* use outside of drm_print.[ch]! */ >>> extern unsigned long __drm_debug; >> >> Looks like this broke komeda and omapdrm on arm: >> >> /home/notro/develop/dim-linux/src/drivers/gpu/drm/arm/display/komeda/komeda_pipeline.c: >> In function ‘komeda_pipeline_dump_register’: >> /home/notro/develop/dim-linux/src/drivers/gpu/drm/arm/display/komeda/komeda_pipeline.c:366:9: >> error: implicit declaration of function ‘seq_printf’; did you mean >> ‘drm_printf’? [-Werror=implicit-function-declaration] >> 366 | seq_printf(sf, "\n======== Pipeline-%d ==========\n", >> pipe->id); >> | ^~~~~~~~~~ >> | drm_printf >> >> /home/notro/develop/dim-linux/src/drivers/gpu/drm/omapdrm/omap_fb.c: In >> function ‘omap_framebuffer_describe’: >> /home/notro/develop/dim-linux/src/drivers/gpu/drm/omapdrm/omap_fb.c:325:9: >> error: implicit declaration of function ‘seq_printf’; did you mean >> ‘drm_printf’? [-Werror=implicit-function-declaration] >> 325 | seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width, fb->height, >> | ^~~~~~~~~~ >> | drm_printf >> >> Noralf. > > Sad trombone. I built on arm and arm64, with omap and komeda enabled, > but apparently still missed some options. Sorry. :( > > Dave fixed these when pulling drm-misc-next, so a backmerge from > drm-next to drm-misc-next should handle it. > > Sorry again, > Jani. > No problem, I was just suprised that the build bots hadn't caught this, but just minutes after I sent this it was detected. I kind of assumed that in this day and age there was a bot that checked drm-tip after each push/sync, but not there yet I guess. I used the defconfigs from drm-tip:rerere-cache which caught this. Noralf.