dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Arthur Grillo <arthurgrillo@riseup.net>
To: dri-devel@lists.freedesktop.org
Cc: arnd@arndb.de, tales.aparecida@gmail.com, deller@gmx.de,
	javierm@redhat.com, mairacanal@riseup.net,
	andrealmeid@riseup.net, Arthur Grillo <arthurgrillo@riseup.net>
Subject: [PATCH] drm/tests: Remove CONFIG_DRM_FBDEV_EMULATION on .kunitconfig
Date: Wed, 26 Jul 2023 19:03:25 -0300	[thread overview]
Message-ID: <20230726220325.278976-1-arthurgrillo@riseup.net> (raw)

Using the `kunit_tool` with the command:

tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/tests/

Lead to this error[0]. Fix it by expliciting removing the
CONFIG_DRM_FBDEV_EMULATION.

[0]
ERROR:root:
WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE
  Depends on [n]: VT [=n] && FB_CORE [=y] && !UML [=y]
  Selected by [y]:
  - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM [=y] && !EXPERT [=n]

WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
  Depends on [n]: VT [=n] && FRAMEBUFFER_CONSOLE [=y]
  Selected by [y]:
  - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM [=y] && FRAMEBUFFER_CONSOLE [=y]

WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE
  Depends on [n]: VT [=n] && FB_CORE [=y] && !UML [=y]
  Selected by [y]:
  - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM [=y] && !EXPERT [=n]

WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
  Depends on [n]: VT [=n] && FRAMEBUFFER_CONSOLE [=y]
  Selected by [y]:
  - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM [=y] && FRAMEBUFFER_CONSOLE [=y]

WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE
  Depends on [n]: VT [=n] && FB_CORE [=y] && !UML [=y]
  Selected by [y]:
  - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM [=y] && !EXPERT [=n]

WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
  Depends on [n]: VT [=n] && FRAMEBUFFER_CONSOLE [=y]
  Selected by [y]:
  - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM [=y] && FRAMEBUFFER_CONSOLE [=y]
/usr/bin/ld: drivers/video/fbdev/core/fbcon.o: in function `fbcon_suspended':
fbcon.c:(.text+0x1c): undefined reference to `vc_cons'
/usr/bin/ld: drivers/video/fbdev/core/fbcon.o: in function `fbcon_cursor':
fbcon.c:(.text+0x1ac): undefined reference to `console_blanked'
/usr/bin/ld: drivers/video/fbdev/core/fbcon.o: in function `fbcon_resumed':
fbcon.c:(.text+0x39c): undefined reference to `vc_cons'
/usr/bin/ld: fbcon.c:(.text+0x3aa): undefined reference to `redraw_screen'
/usr/bin/ld: drivers/video/fbdev/core/fbcon.o: in function `fbcon_update_vcs':
.
.
.
make[3]: *** [../scripts/Makefile.vmlinux:36: vmlinux] Error 1
make[2]: *** [/home/grillo/projects/linux/Makefile:1238: vmlinux] Error 2
make[1]: *** [/home/grillo/projects/linux/Makefile:234: __sub-make] Error 2
make: *** [Makefile:234: __sub-make] Error 2

Fixes: c242f48433e7 ("drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled")
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net>
---
 drivers/gpu/drm/tests/.kunitconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/tests/.kunitconfig b/drivers/gpu/drm/tests/.kunitconfig
index 6ec04b4c979d..c50b5a12faae 100644
--- a/drivers/gpu/drm/tests/.kunitconfig
+++ b/drivers/gpu/drm/tests/.kunitconfig
@@ -1,3 +1,4 @@
 CONFIG_KUNIT=y
 CONFIG_DRM=y
 CONFIG_DRM_KUNIT_TEST=y
+CONFIG_DRM_FBDEV_EMULATION=n

base-commit: 45b58669e532bcdfd6e1593488d1f23eabd55428
-- 
2.41.0


             reply	other threads:[~2023-07-26 22:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26 22:03 Arthur Grillo [this message]
2023-07-27  8:33 ` [PATCH] drm/tests: Remove CONFIG_DRM_FBDEV_EMULATION on .kunitconfig Arnd Bergmann
2023-07-27 16:07   ` Javier Martinez Canillas
2023-07-27 16:39     ` Arthur Grillo Queiroz Cabral
2023-07-27 16:45       ` Javier Martinez Canillas
2023-07-27 17:56         ` Arnd Bergmann
2023-07-28 10:41           ` Javier Martinez Canillas
2023-08-04 12:53             ` Javier Martinez Canillas
2023-07-27 16:44   ` Arthur Grillo Queiroz Cabral

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=20230726220325.278976-1-arthurgrillo@riseup.net \
    --to=arthurgrillo@riseup.net \
    --cc=andrealmeid@riseup.net \
    --cc=arnd@arndb.de \
    --cc=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=javierm@redhat.com \
    --cc=mairacanal@riseup.net \
    --cc=tales.aparecida@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).