From 1e1a85f1b87bbd35f04ced3502a5aa56e108f257 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 2 May 2017 16:51:46 -0700 Subject: [PATCH] test/zdtm: rm get_smaps_bits proto from zdtmtst.h The function is not included into the library, so having its prototype there was a shortcut. Move it to a separate include file. Signed-off-by: Kir Kolyshkin Signed-off-by: Andrei Vagin --- test/zdtm/lib/zdtmtst.h | 1 - test/zdtm/static/get_smaps_bits.h | 6 ++++++ test/zdtm/static/maps02.c | 1 + test/zdtm/static/mlock_setuid.c | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/zdtm/static/get_smaps_bits.h diff --git a/test/zdtm/lib/zdtmtst.h b/test/zdtm/lib/zdtmtst.h index 3f9f55056..de01cc2be 100644 --- a/test/zdtm/lib/zdtmtst.h +++ b/test/zdtm/lib/zdtmtst.h @@ -141,5 +141,4 @@ extern int tcp_init_server(int family, int *port); extern int tcp_accept_server(int sock); extern int tcp_init_client(int family, char *servIP, unsigned short servPort); -extern int get_smaps_bits(unsigned long where, unsigned long *flags, unsigned long *madv); #endif /* _VIMITESU_H_ */ diff --git a/test/zdtm/static/get_smaps_bits.h b/test/zdtm/static/get_smaps_bits.h new file mode 100644 index 000000000..ce1070daf --- /dev/null +++ b/test/zdtm/static/get_smaps_bits.h @@ -0,0 +1,6 @@ +#ifndef ZDTM_GET_SMAPS_BITS_H_ +#define ZDTM_GET_SMAPS_BITS_H_ + +extern int get_smaps_bits(unsigned long where, unsigned long *flags, unsigned long *madv); + +#endif /* ZDTM_GET_SMAPS_BITS_H_ */ diff --git a/test/zdtm/static/maps02.c b/test/zdtm/static/maps02.c index 571323547..eb7c09bdc 100644 --- a/test/zdtm/static/maps02.c +++ b/test/zdtm/static/maps02.c @@ -1,5 +1,6 @@ #include #include "zdtmtst.h" +#include "get_smaps_bits.h" #ifndef MADV_DONTDUMP #define MADV_DONTDUMP 16 diff --git a/test/zdtm/static/mlock_setuid.c b/test/zdtm/static/mlock_setuid.c index a6847a654..a737bddf9 100644 --- a/test/zdtm/static/mlock_setuid.c +++ b/test/zdtm/static/mlock_setuid.c @@ -2,6 +2,7 @@ #include #include #include "zdtmtst.h" +#include "get_smaps_bits.h" #define MEM_SIZE (69632)