]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/kmod-setup.c
kmod-setup: define has_virtio_rng() only in a case when HAVE_KMOD is enabled (#6784)
author0xAX <0xAX@users.noreply.github.com>
Fri, 8 Sep 2017 21:51:04 +0000 (03:51 +0600)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Sep 2017 21:51:04 +0000 (23:51 +0200)
commit95441cf2ed2406c00e3e94f1991992e63c2507c9
tree5304b8cf33b5c825d1f411c086274f05e30e3c06
parent912a0f21d9e98f4d2a19b74254e93dea8a5fd727
kmod-setup: define has_virtio_rng() only in a case when HAVE_KMOD is enabled (#6784)

in other way we will get a warning message:

../src/core/kmod-setup.c:83:13: warning: ‘has_virtio_rng’ defined but
not used [-Wunused-function]

  static bool has_virtio_rng(void) {
             ^~~~~~~~~~~~~~
src/core/kmod-setup.c