syscalls/ioctl: Remove requirement of loop driver
PATCH 1/1 syscalls/ioctl: Remove requirement of loop driver
There is no loop driver when config CONFIG_BLK_DEV_LOOP is set to y, and we have check the loop device in tst_find_free_loopdev. So we can remove the requirement of loop driver.
--- testcases/kernel/syscalls/ioctl/ioctl_loop01.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop02.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop03.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop04.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop05.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop06.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop07.c | 4 ---- 7 files changed, 28 deletions(-)
testcases/kernel/syscalls/ioctl/ioctl_loop01.c +0 -4
@@ -142,10 +142,6 @@ static struct tst_test test = { .cleanup = cleanup, .test_all = verify_ioctl_loop, .needs_root = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - }, .tags = (const struct tst_tag []) { {"linux-git" ,"10c70d95c0f2" }, {"linux-git" ,"6ac92fb5cdff" },
testcases/kernel/syscalls/ioctl/ioctl_loop02.c +0 -4
@@ -157,8 +157,4 @@ static struct tst_test test = { .test = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };
testcases/kernel/syscalls/ioctl/ioctl_loop03.c +0 -4
@@ -68,8 +68,4 @@ static struct tst_test test = { .test_all = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };
testcases/kernel/syscalls/ioctl/ioctl_loop04.c +0 -4
@@ -91,8 +91,4 @@ static struct tst_test test = { .test_all = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };
testcases/kernel/syscalls/ioctl/ioctl_loop05.c +0 -4
@@ -151,8 +151,4 @@ static struct tst_test test = { .test_all = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };
testcases/kernel/syscalls/ioctl/ioctl_loop06.c +0 -4
@@ -136,8 +136,4 @@ static struct tst_test test = { .tcnt = ARRAY_SIZE(tcases), .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };
testcases/kernel/syscalls/ioctl/ioctl_loop07.c +0 -4
@@ -158,8 +158,4 @@ static struct tst_test test = { {"linux-git", "79e5dc59e297"}, {} }, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };
--
2.17.1
PATCH 1/1 syscalls/ioctl: Remove requirement of loop driver
Quoted 3 lines · Zhao Gongyi
There is no loop driver when config
CONFIG_BLK_DEV_LOOPis set to y, and we have check the loop device intst_find_free_loopdev. So we can remove the requirement of loop driver.
Hi Zhongyi,
1) I think .needs_driver can parse either CONFIG_BLK_DEV_LOOP=y or CONFIG_BLK_DEV_LOOP=m correctly.
Do you have any issue that .needs_driver cannot parseCONFIG_BLK_DEV_LOOP=y correctly?
2) If CONFIG_BLK_DEV_LOOP is not set, we would like to report TCONF by .needs_driver rather than TBROK by tst_find_free_loopdev().
Best Regards,
Xiao Yang
Quoted 108 lines
Signed-off-by Zhao Gongyi<[email protected]>--- testcases/kernel/syscalls/ioctl/ioctl_loop01.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop02.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop03.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop04.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop05.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop06.c | 4 ---- testcases/kernel/syscalls/ioctl/ioctl_loop07.c | 4 ---- 7 files changed, 28 deletions(-)testcases/kernel/syscalls/ioctl/ioctl_loop01.c +0
-4@@ -142,10 +142,6 @@ static struct tst_test test = { .cleanup = cleanup, .test_all = verify_ioctl_loop, .needs_root = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - }, .tags = (const struct tst_tag []) { {"linux-git" ,"10c70d95c0f2" }, {"linux-git" ,"6ac92fb5cdff" },testcases/kernel/syscalls/ioctl/ioctl_loop02.c +0
-4@@ -157,8 +157,4 @@ static struct tst_test test = { .test = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };testcases/kernel/syscalls/ioctl/ioctl_loop03.c +0
-4@@ -68,8 +68,4 @@ static struct tst_test test = { .test_all = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };testcases/kernel/syscalls/ioctl/ioctl_loop04.c +0
-4@@ -91,8 +91,4 @@ static struct tst_test test = { .test_all = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };testcases/kernel/syscalls/ioctl/ioctl_loop05.c +0
-4@@ -151,8 +151,4 @@ static struct tst_test test = { .test_all = verify_ioctl_loop, .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };testcases/kernel/syscalls/ioctl/ioctl_loop06.c +0
-4@@ -136,8 +136,4 @@ static struct tst_test test = { .tcnt = ARRAY_SIZE(tcases), .needs_root = 1, .needs_tmpdir = 1, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } };testcases/kernel/syscalls/ioctl/ioctl_loop07.c +0
-5@@ -158,8 +158,4 @@ static struct tst_test test = { {"linux-git", "79e5dc59e297"}, {} }, - .needs_drivers = (const char *const []) { -"loop" , -NULL - } }; --2.17.1