Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

From: Andrew Morton
Date: Tue Apr 10 2018 - 18:00:18 EST


On Tue, 10 Apr 2018 14:53:51 -0700 Joe Perches <joe@xxxxxxxxxxx> wrote:

> On Tue, 2018-04-10 at 14:39 -0700, Andrew Morton wrote:
> > On Tue, 10 Apr 2018 11:19:54 -0700 Joe Perches <joe@xxxxxxxxxxx> wrote:
> >
> > > A struct with a bool member can have different sizes on various
> > > architectures because neither bool size nor alignment is standardized.
> >
> > What's wrong with bools in structs?
>
> See above.

Yeah, but so what? `long' has different sizes on different
architectures too.