amd-xgbe: Rename MAX_DMA_CHANNELS to avoid powerpc conflict
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Mon, 9 Jun 2014 14:19:32 +0000 (09:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 07:56:41 +0000 (00:56 -0700)
MAX_DMA_CHANNELS is defined in asm/scatterlist.h of the powerpc
architecture.  Rename this #define in xgbe.h to avoid the
redefined warning issued during compilation.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-main.c
drivers/net/ethernet/amd/xgbe/xgbe.h

index b21f9b929d9f48547432fc0e1d510eb18fc56964..c83584a26713e6633675a9e82a9ab251d9dce1c0 100644 (file)
@@ -230,7 +230,7 @@ static int xgbe_probe(struct platform_device *pdev)
        DBGPR("--> xgbe_probe\n");
 
        netdev = alloc_etherdev_mq(sizeof(struct xgbe_prv_data),
-                                  MAX_DMA_CHANNELS);
+                                  XGBE_MAX_DMA_CHANNELS);
        if (!netdev) {
                dev_err(dev, "alloc_etherdev failed\n");
                ret = -ENOMEM;
index 9a5bfe60db952110d387eaea99d80f6bb25ed6b2..ab0627162c01cd11317d4f34c89b50a08d10b99f 100644 (file)
 #define RX_MIN_BUF_SIZE                (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)
 #define RX_BUF_ALIGN           64
 
-#define MAX_DMA_CHANNELS       16
+#define XGBE_MAX_DMA_CHANNELS  16
 #define DMA_ARDOMAIN_SETTING   0x2
 #define DMA_ARCACHE_SETTING    0xb
 #define DMA_AWDOMAIN_SETTING   0x2