From: Alyssa Rosenzweig Date: Thu, 7 Feb 2019 02:09:21 +0000 (+0000) Subject: kmsro: Silence warning if missing X-Git-Tag: android-x86-9.0-r1~10030 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=738346fa238e458fc82c5c6b5c8287a071140565;p=android-x86%2Fexternal-mesa.git 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 --- 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; }