diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2017-06-01 20:25:57 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2017-06-01 20:26:23 -0700 |
commit | e0ff310d8758254591aedf1e9be62e276d58dfdc (patch) | |
tree | e8ad0526d5b12a10545f9d623d32210239b432e5 /testsuite | |
parent | 1399c5ad53f380ebf4e465892bfd0c8b82b12aeb (diff) | |
download | kmod-e0ff310d8758254591aedf1e9be62e276d58dfdc.tar.gz kmod-e0ff310d8758254591aedf1e9be62e276d58dfdc.tar.bz2 kmod-e0ff310d8758254591aedf1e9be62e276d58dfdc.zip |
test-depmod: avoid warning when we don't have zlib
testsuite/test-depmod.c:31:21: warning: ‘depmod_modules_order_for_compressed’ defined but not used [-Wunused-function]
static noreturn int depmod_modules_order_for_compressed(const struct test *t)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/test-depmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/test-depmod.c b/testsuite/test-depmod.c index 732a9d0..b9beb01 100644 --- a/testsuite/test-depmod.c +++ b/testsuite/test-depmod.c @@ -25,6 +25,7 @@ #include "testsuite.h" +#ifdef ENABLE_ZLIB #define MODULES_ORDER_UNAME "4.4.4" #define MODULES_ORDER_ROOTFS TESTSUITE_ROOTFS "test-depmod/modules-order-compressed" #define MODULES_ORDER_LIB_MODULES MODULES_ORDER_ROOTFS "/lib/modules/" MODULES_ORDER_UNAME @@ -40,7 +41,6 @@ static noreturn int depmod_modules_order_for_compressed(const struct test *t) exit(EXIT_FAILURE); } -#ifdef ENABLE_ZLIB DEFINE_TEST(depmod_modules_order_for_compressed, .description = "check if depmod let aliases in right order when using compressed modules", .config = { |