From mboxrd@z Thu Jan 1 00:00:00 1970 From: Beniamino Galvani Date: Tue, 19 Apr 2016 00:05:11 +0200 Subject: [U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs In-Reply-To: <5714CB4B.40902@suse.de> References: <1460879338-7671-1-git-send-email-b.galvani@gmail.com> <1460879338-7671-2-git-send-email-b.galvani@gmail.com> <5714CB4B.40902@suse.de> Message-ID: <20160418220511.GD3707@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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