Commit 9f698b0b authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[SUNGEM]: Add warning to ppc code wrt. MAX_ADDR_LEN change.

parent 4f85bc95
...@@ -2850,6 +2850,7 @@ static int __devinit gem_get_device_address(struct gem *gp) ...@@ -2850,6 +2850,7 @@ static int __devinit gem_get_device_address(struct gem *gp)
printk(KERN_ERR "%s: can't get mac-address\n", dev->name); printk(KERN_ERR "%s: can't get mac-address\n", dev->name);
return -1; return -1;
} }
#warning MAX_ADDR_LEN is now 32 bytes instead of 8, please fix this as appropriate
memcpy(dev->dev_addr, addr, MAX_ADDR_LEN); memcpy(dev->dev_addr, addr, MAX_ADDR_LEN);
#else #else
get_gem_mac_nonobp(gp->pdev, gp->dev->dev_addr); get_gem_mac_nonobp(gp->pdev, gp->dev->dev_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment