From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Wed, 21 Oct 2015 10:32:17 -0600 Subject: [U-Boot] [PATCH] net: rtl8169: Build warning fixes for 64-bit In-Reply-To: References: <1443829474-4079-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <5627BE11.8030706@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/05/2015 10:45 AM, Joe Hershberger wrote: > On Fri, Oct 2, 2015 at 6:44 PM, Stephen Warren wrote: >> From: Stephen Warren >> >> Casting from dev->priv to pci_dev_t changes the value's size on a 64-bit >> system. This causes the compiler to complain about casting a pointer to an >> integer of a different (smaller) size. To avoid this, cast to an integer >> of matching size first, then perform an int->int cast to perform the size >> change. This signals explicitly that we do want to change the size, and >> avoids the compiler warning. This is legitimate since we know the pointer >> actually stores a small integer, not a pointer value. >> >> Signed-off-by: Stephen Warren > > Acked-by: Joe Hershberger Joe, this patch appears to be assigned to you in patchwork. Will you apply it now the merge window is open, or are you assuming it will go through the Tegra tree with all the PCIe patches?