[PATCH v3 5/9] net: pxa168_eth: get and set the mac address on the Ethernet controller
David Miller
davem at davemloft.net
Mon Sep 15 12:35:45 PDT 2014
From: Antoine Tenart <antoine.tenart at free-electrons.com>
Date: Mon, 15 Sep 2014 16:01:49 +0200
> +static void pxa168_eth_get_mac_address(struct net_device *dev,
> + unsigned char *addr)
> +{
> + struct pxa168_eth_private *pep = netdev_priv(dev);
> + unsigned int mac_h = rdl(pep, MAC_ADDR_HIGH);
> + unsigned int mac_l = rdl(pep, MAC_ADDR_LOW);
> +
> + addr[0] = (mac_h >> 24) & 0xff;
> + addr[1] = (mac_h >> 16) & 0xff;
> + addr[2] = (mac_h >> 8) & 0xff;
> + addr[3] = mac_h & 0xff;
> + addr[4] = (mac_l >> 8) & 0xff;
> + addr[5] = mac_l & 0xff;
> +}
This function is not used in this patch and thus will result in a compile
warning.
The tree must be fully functional and compile with no new warnings after
each patch in a patch series.
Therefore you must add this new function in the first patch which actually
makes use of the new function.
More information about the linux-arm-kernel
mailing list