diff mbox series

[10/31] creat06: Remove UCLINUX

Message ID 20240411143025.352507-11-pvorel@suse.cz
State New
Headers show
Series Remove UCLINUX (nommu support) from LTP legacy C API | expand

Commit Message

Petr Vorel April 11, 2024, 2:30 p.m. UTC
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/creat/creat06.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/creat/creat06.c b/testcases/kernel/syscalls/creat/creat06.c
index 5c82e4757..bd9835ea3 100644
--- a/testcases/kernel/syscalls/creat/creat06.c
+++ b/testcases/kernel/syscalls/creat/creat06.c
@@ -60,9 +60,7 @@ 
 static void setup(void);
 static void test6_setup(void);
 static void test6_cleanup(void);
-#if !defined(UCLINUX)
 static void bad_addr_setup(int);
-#endif
 
 static struct passwd *ltpuser;
 static char long_name[PATH_MAX+2];
@@ -78,9 +76,7 @@  static struct test_case_t {
 	{long_name, MODE1, ENAMETOOLONG, NULL, NULL},
 	{NO_DIR, MODE1, ENOENT, NULL, NULL},
 	{NOT_DIR, MODE1, ENOTDIR, NULL, NULL},
-#if !defined(UCLINUX)
 	{NULL, MODE1, EFAULT, bad_addr_setup, NULL},
-#endif
 	{TEST6_FILE, MODE1, EACCES, test6_setup, test6_cleanup},
 	{TEST7_FILE, MODE1, ELOOP, NULL, NULL},
 	{TEST8_FILE, MODE1, EROFS, NULL, NULL},
@@ -127,7 +123,6 @@  static void setup(void)
 	SAFE_SYMLINK("test_file_eloop2", TEST7_FILE);
 }
 
-#if !defined(UCLINUX)
 static void bad_addr_setup(int i)
 {
 	if (tcases[i].fname)
@@ -136,7 +131,6 @@  static void bad_addr_setup(int i)
 	tcases[i].fname = SAFE_MMAP(0, 1, PROT_NONE,
 	                            MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
 }
-#endif
 
 static void test6_setup(void)
 {