Commit dfc03305 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Shuah Khan

selftests: capabilities: remove duplicate unneeded defines

These duplicate defines should automatically be picked up from kernel
headers. Use KHDR_INCLUDES to add kernel header files.
Signed-off-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 0a6fa8f0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
TEST_GEN_FILES := validate_cap TEST_GEN_FILES := validate_cap
TEST_GEN_PROGS := test_execve TEST_GEN_PROGS := test_execve
CFLAGS += -O2 -g -std=gnu99 -Wall CFLAGS += -O2 -g -std=gnu99 -Wall $(KHDR_INCLUDES)
LDLIBS += -lcap-ng -lrt -ldl LDLIBS += -lcap-ng -lrt -ldl
include ../lib.mk include ../lib.mk
......
...@@ -20,14 +20,6 @@ ...@@ -20,14 +20,6 @@
#include "../kselftest.h" #include "../kselftest.h"
#ifndef PR_CAP_AMBIENT
#define PR_CAP_AMBIENT 47
# define PR_CAP_AMBIENT_IS_SET 1
# define PR_CAP_AMBIENT_RAISE 2
# define PR_CAP_AMBIENT_LOWER 3
# define PR_CAP_AMBIENT_CLEAR_ALL 4
#endif
static int nerrs; static int nerrs;
static pid_t mpid; /* main() pid is used to avoid duplicate test counts */ static pid_t mpid; /* main() pid is used to avoid duplicate test counts */
......
...@@ -9,14 +9,6 @@ ...@@ -9,14 +9,6 @@
#include "../kselftest.h" #include "../kselftest.h"
#ifndef PR_CAP_AMBIENT
#define PR_CAP_AMBIENT 47
# define PR_CAP_AMBIENT_IS_SET 1
# define PR_CAP_AMBIENT_RAISE 2
# define PR_CAP_AMBIENT_LOWER 3
# define PR_CAP_AMBIENT_CLEAR_ALL 4
#endif
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19)
# define HAVE_GETAUXVAL # define HAVE_GETAUXVAL
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment