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)
commit738346fa238e458fc82c5c6b5c8287a071140565
tree8b9f660a7c3029e84e33323c21bf7b6da47981f8
parentf1bcb9be46898580c9928c3dc9078f9f3e0be67d
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 <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