diff options
author | Jiri Kosina <jkosina@suse.cz> | 2016-08-10 05:03:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-10 20:18:52 -0400 |
commit | e87a8f24c9151d449ab46d82a504c1ebfea210f2 (patch) | |
tree | 970e76e659836e60ba6d1d13f41bc02a05d2e6c8 /drivers/net/ethernet/ti | |
parent | b89b815c32f205a772180969da0188665f7da9e8 (diff) |
net: resolve symbol conflicts with generic hashtable.h
This is a preparatory patch for converting qdisc linked list into a
hashtable. As we'll need to include hashtable.h in netdevice.h, we first
have to make sure that this will not introduce symbol conflicts for any of
the netdevice.h users.
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_emac.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 727a79f3c7dd..2d6fc9a0fb21 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c | |||
@@ -597,14 +597,14 @@ static u32 hash_get(u8 *addr) | |||
597 | } | 597 | } |
598 | 598 | ||
599 | /** | 599 | /** |
600 | * hash_add - Hash function to add mac addr from hash table | 600 | * emac_hash_add - Hash function to add mac addr from hash table |
601 | * @priv: The DaVinci EMAC private adapter structure | 601 | * @priv: The DaVinci EMAC private adapter structure |
602 | * @mac_addr: mac address to delete from hash table | 602 | * @mac_addr: mac address to delete from hash table |
603 | * | 603 | * |
604 | * Adds mac address to the internal hash table | 604 | * Adds mac address to the internal hash table |
605 | * | 605 | * |
606 | */ | 606 | */ |
607 | static int hash_add(struct emac_priv *priv, u8 *mac_addr) | 607 | static int emac_hash_add(struct emac_priv *priv, u8 *mac_addr) |
608 | { | 608 | { |
609 | struct device *emac_dev = &priv->ndev->dev; | 609 | struct device *emac_dev = &priv->ndev->dev; |
610 | u32 rc = 0; | 610 | u32 rc = 0; |
@@ -613,7 +613,7 @@ static int hash_add(struct emac_priv *priv, u8 *mac_addr) | |||
613 | 613 | ||
614 | if (hash_value >= EMAC_NUM_MULTICAST_BITS) { | 614 | if (hash_value >= EMAC_NUM_MULTICAST_BITS) { |
615 | if (netif_msg_drv(priv)) { | 615 | if (netif_msg_drv(priv)) { |
616 | dev_err(emac_dev, "DaVinci EMAC: hash_add(): Invalid "\ | 616 | dev_err(emac_dev, "DaVinci EMAC: emac_hash_add(): Invalid "\ |
617 | "Hash %08x, should not be greater than %08x", | 617 | "Hash %08x, should not be greater than %08x", |
618 | hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); | 618 | hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); |
619 | } | 619 | } |
@@ -639,14 +639,14 @@ static int hash_add(struct emac_priv *priv, u8 *mac_addr) | |||
639 | } | 639 | } |
640 | 640 | ||
641 | /** | 641 | /** |
642 | * hash_del - Hash function to delete mac addr from hash table | 642 | * emac_hash_del - Hash function to delete mac addr from hash table |
643 | * @priv: The DaVinci EMAC private adapter structure | 643 | * @priv: The DaVinci EMAC private adapter structure |
644 | * @mac_addr: mac address to delete from hash table | 644 | * @mac_addr: mac address to delete from hash table |
645 | * | 645 | * |
646 | * Removes mac address from the internal hash table | 646 | * Removes mac address from the internal hash table |
647 | * | 647 | * |
648 | */ | 648 | */ |
649 | static int hash_del(struct emac_priv *priv, u8 *mac_addr) | 649 | static int emac_hash_del(struct emac_priv *priv, u8 *mac_addr) |
650 | { | 650 | { |
651 | u32 hash_value; | 651 | u32 hash_value; |
652 | u32 hash_bit; | 652 | u32 hash_bit; |
@@ -696,10 +696,10 @@ static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr) | |||
696 | 696 | ||
697 | switch (action) { | 697 | switch (action) { |
698 | case EMAC_MULTICAST_ADD: | 698 | case EMAC_MULTICAST_ADD: |
699 | update = hash_add(priv, mac_addr); | 699 | update = emac_hash_add(priv, mac_addr); |
700 | break; | 700 | break; |
701 | case EMAC_MULTICAST_DEL: | 701 | case EMAC_MULTICAST_DEL: |
702 | update = hash_del(priv, mac_addr); | 702 | update = emac_hash_del(priv, mac_addr); |
703 | break; | 703 | break; |
704 | case EMAC_ALL_MULTI_SET: | 704 | case EMAC_ALL_MULTI_SET: |
705 | update = 1; | 705 | update = 1; |