Re: CHECKPATCH: strange warning on alignment modifier

2018-10-08 Thread Joe Perches
On Mon, 2018-10-08 at 10:56 +0300, Igor Stoppa wrote: > Hi, > > I have the following fragment of code: > > +struct my_struct { > + atomic_long_t l __aligned(sizeof(atomic_long_t)); > +} __aligned(sizeof(atomic_long_t)); > > > triggering this warning, when fed to checkpatch.pl: > >

Re: CHECKPATCH: strange warning on alignment modifier

2018-10-08 Thread Joe Perches
On Mon, 2018-10-08 at 10:56 +0300, Igor Stoppa wrote: > Hi, > > I have the following fragment of code: > > +struct my_struct { > + atomic_long_t l __aligned(sizeof(atomic_long_t)); > +} __aligned(sizeof(atomic_long_t)); > > > triggering this warning, when fed to checkpatch.pl: > >

CHECKPATCH: strange warning on alignment modifier

2018-10-08 Thread Igor Stoppa
Hi, I have the following fragment of code: +struct my_struct { + atomic_long_t l __aligned(sizeof(atomic_long_t)); +} __aligned(sizeof(atomic_long_t)); triggering this warning, when fed to checkpatch.pl: WARNING: function definition argument 'atomic_long_t' should also have an

CHECKPATCH: strange warning on alignment modifier

2018-10-08 Thread Igor Stoppa
Hi, I have the following fragment of code: +struct my_struct { + atomic_long_t l __aligned(sizeof(atomic_long_t)); +} __aligned(sizeof(atomic_long_t)); triggering this warning, when fed to checkpatch.pl: WARNING: function definition argument 'atomic_long_t' should also have an