]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: pl111: fix build regression
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Dec 2025 21:49:09 +0000 (22:49 +0100)
committerLinus Walleij <linusw@kernel.org>
Sun, 4 Jan 2026 12:50:55 +0000 (13:50 +0100)
commita7c2f143f878ab7a5e60ca68ed71d427fe78ce19
tree7673c7fab4c0b2d35c32f414ab13ada884216208
parent9eb018828b1b30dfba689c060735c50fc5b9f704
drm: pl111: fix build regression

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>
Reviewed-by: Eslam Khafagy <eslam.medhat1993@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20251223214915.503913-1-arnd@kernel.org
drivers/gpu/drm/pl111/pl111_nomadik.c