diff --git a/testcases/kernel/mem/hugetlb/Makefile.inc b/testcases/kernel/mem/hugetlb/Makefile.inc index 9a4aa8795a5..b272e62a832 100644 --- a/testcases/kernel/mem/hugetlb/Makefile.inc +++ b/testcases/kernel/mem/hugetlb/Makefile.inc @@ -33,6 +33,3 @@ CPPFLAGS += -I$(abs_srcdir)/$(LIBIPCDIR) LDFLAGS += -L$(abs_builddir)/$(LIBIPCDIR) LDLIBS += -lhugetlb MAKE_DEPS += $(LIBIPC) - -include $(top_srcdir)/testcases/kernel/mem/include/libmem.mk -# vim: syntax=make diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c index d5983fc555c..75f28102d08 100644 --- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c +++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c @@ -34,7 +34,6 @@ static char path_sys_sz_huge[BUFSIZ]; #define PATH_PROC_VM "/proc/sys/vm/" #define PATH_PROC_OVER PATH_PROC_VM "nr_overcommit_hugepages" #define PATH_PROC_HUGE PATH_PROC_VM "nr_hugepages" -#define PATH_SHMMAX "/proc/sys/kernel/shmmax" /* Only ia64 requires this */ #ifdef __ia64__ diff --git a/testcases/kernel/mem/hugetlb/lib/Makefile b/testcases/kernel/mem/hugetlb/lib/Makefile index ceccd261509..45606b17fd7 100644 --- a/testcases/kernel/mem/hugetlb/lib/Makefile +++ b/testcases/kernel/mem/hugetlb/lib/Makefile @@ -4,7 +4,6 @@ top_srcdir ?= ../../../../.. include $(top_srcdir)/include/mk/env_pre.mk -include $(top_srcdir)/testcases/kernel/mem/include/libmem.mk INTERNAL_LIB := libhugetlb.a diff --git a/testcases/kernel/mem/hugetlb/lib/hugetlb.h b/testcases/kernel/mem/hugetlb/lib/hugetlb.h index abc88e25e0a..22975c99aa1 100644 --- a/testcases/kernel/mem/hugetlb/lib/hugetlb.h +++ b/testcases/kernel/mem/hugetlb/lib/hugetlb.h @@ -17,7 +17,6 @@ #include #include #include "tst_test.h" -#include "mem.h" #define PALIGN(p, a) ((void *)LTP_ALIGN((unsigned long)(p), (a))) @@ -29,6 +28,8 @@ #define SHM_HUGETLB 04000 /* segment is mapped via hugetlb */ #endif +#define PATH_SHMMAX "/proc/sys/kernel/shmmax" + #ifndef barrier # ifdef mb /* Redefining the mb() */