[LTP] [PATCH v3] kernel/fs/fsnotify-stress: fsnotify stress test

Petr Vorel pvorel@suse.cz
Thu Mar 10 21:48:58 CET 2022


Hi,

...
> > +static struct tst_test test = {
> > +	.tcnt = 1,
> > +	.forks_child = 1,
> > +	.needs_root = 1,
> > +	.needs_tmpdir = 1,
> > +	.needs_cmds = 0,
> > +	.needs_cgroup_ver = 0,
> > +	.needs_cgroup_ctrls = 0,

> Please do not set anything to 0 here, that is the default value for any
> uninitialized variables. Unfortunatelly gcc is buggy and prints warnings
> for nearly all tst_test initializations in the LTP tree, there is an
> upstream gcc bug for that that haven't been worked on for quite some
> time now. But that is not a reason to work around compiler bugs here.

FYI
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84685
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283

Kind regards,
Petr


More information about the ltp mailing list