[U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs

Beniamino Galvani b.galvani at gmail.com
Tue Apr 19 00:05:11 CEST 2016


On Mon, Apr 18, 2016 at 01:55:55PM +0200, Andreas Färber wrote:
> > +	if ((unsigned long long)priv + sizeof(*priv) > (1ULL << 32)) {
> 
> >=?

I think ">" is correct, the (unfortunate) case

  priv + size == (1 << 32)

is still acceptable because the last byte used by the structure would
be (priv + size - 1).

Beniamino


More information about the U-Boot mailing list