From: Jani Nikula <jani.nikula@intel.com>
To: "Noralf Trønnes" <noralf@tronnes.org>, dri-devel@lists.freedesktop.org
Cc: Andrzej Hajda <andrzej.hajda@intel.com>,
Maxime Ripard <mripard@kernel.org>,
noralf@tronnes.org,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Subject: Re: [PATCH 2/2] drm/print: drop include seq_file.h
Date: Fri, 26 Apr 2024 10:28:29 +0300 [thread overview]
Message-ID: <87cyqc60rm.fsf@intel.com> (raw)
In-Reply-To: <703d9f05-499f-41d5-a892-b5c2ee2ab814@tronnes.org>
On Thu, 25 Apr 2024, Noralf Trønnes <noralf@tronnes.org> wrote:
> On 4/22/24 14:10, Jani Nikula wrote:
>> Never include where a forward declaration will suffice.
>>
>> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
>> Acked-by: Maxime Ripard <mripard@kernel.org>
>> Link: https://patchwork.freedesktop.org/patch/msgid/20240410141434.157908-2-jani.nikula@intel.com
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> 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 <linux/compiler.h>
>> #include <linux/printk.h>
>> -#include <linux/seq_file.h>
>> #include <linux/device.h>
>> #include <linux/dynamic_debug.h>
>>
>> @@ -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.
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-04-26 7:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-22 12:10 [PATCH 1/2] drm/print: drop include debugfs.h and include where needed Jani Nikula
2024-04-22 12:10 ` [PATCH 2/2] drm/print: drop include seq_file.h Jani Nikula
2024-04-25 19:30 ` Noralf Trønnes
2024-04-26 7:28 ` Jani Nikula [this message]
2024-04-26 8:21 ` Noralf Trønnes
2024-04-26 8:51 ` Jani Nikula
2024-04-22 13:28 ` [PATCH 1/2] drm/print: drop include debugfs.h and include where needed Dmitry Baryshkov
2024-04-23 14:02 ` Matt Coster
2024-04-24 13:54 ` Jani Nikula
2024-04-24 18:56 ` Deucher, Alexander
2024-04-24 20:38 ` Lyude Paul
2024-04-24 20:50 ` Lucas De Marchi
2024-04-25 11:36 ` Robert Foss
-- strict thread matches above, loose matches on Subject: below --
2024-04-10 14:14 Jani Nikula
2024-04-10 14:14 ` [PATCH 2/2] drm/print: drop include seq_file.h Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cyqc60rm.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=andrzej.hajda@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=noralf@tronnes.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.