@@ -241,11 +241,6 @@ static void cleanup(void)
}
}
-static const char *const needed_drivers[] = {
- "brd",
- NULL,
-};
-
static struct tst_test test = {
.setup = setup,
.test = verify_fsetxattr,
@@ -254,7 +249,10 @@ static struct tst_test test = {
.needs_devfs = 1,
.mntpoint = MNTPOINT,
.needs_root = 1,
- .needs_drivers = needed_drivers,
+ .needs_drivers = (const char *const[]) {
+ "brd",
+ NULL,
+ },
};
#else /* HAVE_SYS_XATTR_H */
@@ -112,10 +112,6 @@ static void setup(void)
sizeof(struct file_dedupe_range_info));
}
-static const char *const needed_drivers[] = {
- "btrfs",
- NULL,
-};
static struct tst_test test = {
.test = verify_ioctl,
@@ -127,7 +123,10 @@ static struct tst_test test = {
.mount_device = 1,
.mntpoint = MNTPOINT,
.dev_fs_type = "btrfs",
- .needs_drivers = needed_drivers,
+ .needs_drivers = (const char *const[]) {
+ "btrfs",
+ NULL,
+ },
};
#else
TST_TEST_TCONF(