Skip to content

Commit dd0e8de

Browse files
committed
tst_test.h: Turn 1 bit tst_test members to unsigned
This fixes clang warning: test22.c:33:17: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Li Wang <[email protected]> Signed-off-by: Petr Vorel <[email protected]>
1 parent 504bded commit dd0e8de

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

include/tst_test.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -476,26 +476,26 @@ struct tst_ulimit_val {
476476

477477
const char *tconf_msg;
478478

479-
int needs_tmpdir:1;
480-
int needs_root:1;
481-
int forks_child:1;
482-
int needs_device:1;
483-
int needs_checkpoints:1;
484-
int needs_overlay:1;
485-
int format_device:1;
486-
int mount_device:1;
487-
int needs_rofs:1;
488-
int child_needs_reinit:1;
489-
int needs_devfs:1;
490-
int restore_wallclock:1;
491-
492-
int all_filesystems:1;
493-
494-
int skip_in_lockdown:1;
495-
int skip_in_secureboot:1;
496-
int skip_in_compat:1;
497-
498-
int needs_hugetlbfs:1;
479+
unsigned int needs_tmpdir:1;
480+
unsigned int needs_root:1;
481+
unsigned int forks_child:1;
482+
unsigned int needs_device:1;
483+
unsigned int needs_checkpoints:1;
484+
unsigned int needs_overlay:1;
485+
unsigned int format_device:1;
486+
unsigned int mount_device:1;
487+
unsigned int needs_rofs:1;
488+
unsigned int child_needs_reinit:1;
489+
unsigned int needs_devfs:1;
490+
unsigned int restore_wallclock:1;
491+
492+
unsigned int all_filesystems:1;
493+
494+
unsigned int skip_in_lockdown:1;
495+
unsigned int skip_in_secureboot:1;
496+
unsigned int skip_in_compat:1;
497+
498+
unsigned int needs_hugetlbfs:1;
499499

500500
const char *const *skip_filesystems;
501501

0 commit comments

Comments
 (0)