summaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-10-02 23:44:34 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2015-10-29 19:05:47 (GMT)
commitf3ba55235dddb11bbb615669b43688f4c1b73f69 (patch)
tree77cba5077fb8a424f8d38faeb7b2e60263742be5 /drivers/net/phy
parent11a69ff85b0a459f4ac096ae054d0b527d44b095 (diff)
downloadu-boot-f3ba55235dddb11bbb615669b43688f4c1b73f69.tar.xz
net: rtl8169: Build warning fixes for 64-bit
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 <swarren@nvidia.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/phy')
0 files changed, 0 insertions, 0 deletions