All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: pl111: fix build regression
@ 2025-12-23 21:49 Arnd Bergmann
  2025-12-28 23:01 ` Eslam Khafagy
  2026-01-04 12:53 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2025-12-23 21:49 UTC (permalink / raw)
  To: Linus Walleij, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Eslam Khafagy
  Cc: Arnd Bergmann, dri-devel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The drm_info() function requires the drm/drm_print.h header to be included
first:

In file included from drivers/gpu/drm/pl111/pl111_nomadik.c:7:
drivers/gpu/drm/pl111/pl111_nomadik.h:11:32: error: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
   11 | void pl111_nomadik_init(struct drm_device *dev);
      |                                ^~~~~~~~~~
drivers/gpu/drm/pl111/pl111_nomadik.c: In function 'pl111_nomadik_init':
drivers/gpu/drm/pl111/pl111_nomadik.c:34:9: error: implicit declaration of function 'drm_info'; did you mean 'pr_info'? [-Wimplicit-function-declaration]
   34 |         drm_info(dev, "set Nomadik PMU mux to CLCD mode\n");
      |         ^~~~~~~~
      |         pr_info

Fixes: a1542b8ca6ed ("drm: pl111: replace dev_* print functions with drm_* variants")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/gpu/drm/pl111/pl111_nomadik.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/pl111/pl111_nomadik.c b/drivers/gpu/drm/pl111/pl111_nomadik.c
index f3218d59c5f1..0e5153deb1ac 100644
--- a/drivers/gpu/drm/pl111/pl111_nomadik.c
+++ b/drivers/gpu/drm/pl111/pl111_nomadik.c
@@ -4,6 +4,7 @@
 #include <linux/mfd/syscon.h>
 #include <linux/bitops.h>
 #include <linux/module.h>
+#include <drm/drm_print.h>
 #include "pl111_nomadik.h"
 
 #define PMU_CTRL_OFFSET 0x0000
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: pl111: fix build regression
  2025-12-23 21:49 [PATCH] drm: pl111: fix build regression Arnd Bergmann
@ 2025-12-28 23:01 ` Eslam Khafagy
  2026-01-04 12:53 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Eslam Khafagy @ 2025-12-28 23:01 UTC (permalink / raw)
  To: Arnd Bergmann, Linus Walleij, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Arnd Bergmann, dri-devel, linux-kernel


On 12/23/25 23:49, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> The drm_info() function requires the drm/drm_print.h header to be included
> first:
>
> In file included from drivers/gpu/drm/pl111/pl111_nomadik.c:7:
> drivers/gpu/drm/pl111/pl111_nomadik.h:11:32: error: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>     11 | void pl111_nomadik_init(struct drm_device *dev);
>        |                                ^~~~~~~~~~
> drivers/gpu/drm/pl111/pl111_nomadik.c: In function 'pl111_nomadik_init':
> drivers/gpu/drm/pl111/pl111_nomadik.c:34:9: error: implicit declaration of function 'drm_info'; did you mean 'pr_info'? [-Wimplicit-function-declaration]
>     34 |         drm_info(dev, "set Nomadik PMU mux to CLCD mode\n");
>        |         ^~~~~~~~
>        |         pr_info
>
> Fixes: a1542b8ca6ed ("drm: pl111: replace dev_* print functions with drm_* variants")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>   drivers/gpu/drm/pl111/pl111_nomadik.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/pl111/pl111_nomadik.c b/drivers/gpu/drm/pl111/pl111_nomadik.c
> index f3218d59c5f1..0e5153deb1ac 100644
> --- a/drivers/gpu/drm/pl111/pl111_nomadik.c
> +++ b/drivers/gpu/drm/pl111/pl111_nomadik.c
> @@ -4,6 +4,7 @@
>   #include <linux/mfd/syscon.h>
>   #include <linux/bitops.h>
>   #include <linux/module.h>
> +#include <drm/drm_print.h>
>   #include "pl111_nomadik.h"
>   
>   #define PMU_CTRL_OFFSET 0x0000
Thank you Arnd for catching this . It's my bad missed to compile with 
CONFIG_ARCH_NOMADIK config.

Reviewed-by: Eslam Khafagy <eslam.medhat1993@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: pl111: fix build regression
  2025-12-23 21:49 [PATCH] drm: pl111: fix build regression Arnd Bergmann
  2025-12-28 23:01 ` Eslam Khafagy
@ 2026-01-04 12:53 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2026-01-04 12:53 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Eslam Khafagy, Arnd Bergmann, dri-devel,
	linux-kernel

On Tue, Dec 23, 2025 at 10:49 PM Arnd Bergmann <arnd@kernel.org> wrote:

> From: Arnd Bergmann <arnd@arndb.de>
>
> The drm_info() function requires the drm/drm_print.h header to be included
> first:
>
> In file included from drivers/gpu/drm/pl111/pl111_nomadik.c:7:
> drivers/gpu/drm/pl111/pl111_nomadik.h:11:32: error: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>    11 | void pl111_nomadik_init(struct drm_device *dev);
>       |                                ^~~~~~~~~~
> drivers/gpu/drm/pl111/pl111_nomadik.c: In function 'pl111_nomadik_init':
> drivers/gpu/drm/pl111/pl111_nomadik.c:34:9: error: implicit declaration of function 'drm_info'; did you mean 'pr_info'? [-Wimplicit-function-declaration]
>    34 |         drm_info(dev, "set Nomadik PMU mux to CLCD mode\n");
>       |         ^~~~~~~~
>       |         pr_info
>
> Fixes: a1542b8ca6ed ("drm: pl111: replace dev_* print functions with drm_* variants")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Patch applied to drm-misc-next where the offending patch is.

Thanks!
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-04 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-23 21:49 [PATCH] drm: pl111: fix build regression Arnd Bergmann
2025-12-28 23:01 ` Eslam Khafagy
2026-01-04 12:53 ` Linus Walleij

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.