OSDN Git Service

kmsro: Silence warning if missing
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 7 Feb 2019 02:09:21 +0000 (02:09 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 8 Feb 2019 01:48:37 +0000 (01:48 +0000)
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 <alyssa@rosenzweig.io>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/auxiliary/target-helpers/drm_helper.h

index 1a87c44..85b026b 100644 (file)
@@ -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;
 }