From 738346fa238e458fc82c5c6b5c8287a071140565 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 7 Feb 2019 02:09:21 +0000 Subject: [PATCH] kmsro: Silence warning if missing Regardless of whether the build uses kmsro, kmsro is the default driver descriptor when the static loader is used. Thus, in an edge case where the static loader is used, no static targets are loaded, and kmsro is not compiled, a spurious warning is printed. There's no harm in executing the stub function in this case, but it's not "an error" to not have kmsro in the build; the driver missing warning should not printed kmsro. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Eric Anholt Reviewed-by: Karol Herbst --- src/gallium/auxiliary/target-helpers/drm_helper.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/auxiliary/target-helpers/drm_helper.h b/src/gallium/auxiliary/target-helpers/drm_helper.h index 1a87c4494d4..85b026b5264 100644 --- a/src/gallium/auxiliary/target-helpers/drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/drm_helper.h @@ -100,7 +100,6 @@ pipe_kmsro_create_screen(int fd, const struct pipe_screen_config *config) struct pipe_screen * pipe_kmsro_create_screen(int fd, const struct pipe_screen_config *config) { - fprintf(stderr, "kmsro: driver missing\n"); return NULL; } -- 2.30.2