Replace atomic_read with refcount_read to get rid of the following errors
drivers/net/wireless/scsc/netif.c: In function 'slsi_net_hw_xmit':
drivers/net/wireless/scsc/netif.c:825:47: error: 'refcount_t' has no member named 'counter'
known_users = atomic_read(&skb->users);
^
drivers/net/wireless/scsc/netif.c:825:124: error: 'refcount_t' has no member named 'counter'
known_users = atomic_read(&skb->users);
^
drivers/net/wireless/scsc/netif.c:825:165: error: 'refcount_t' has no member named 'counter'
known_users = atomic_read(&skb->users);
^
drivers/net/wireless/scsc/netif.c:825:223: error: 'refcount_t' has no member named 'counter'
known_users = atomic_read(&skb->users);
^
drivers/net/wireless/scsc/netif.c:825:264: error: 'refcount_t' has no member named 'counter'
known_users = atomic_read(&skb->users);
^
drivers/net/wireless/scsc/netif.c:886:76: error: 'refcount_t' has no member named 'counter'
WARN_ON(known_users &&
^
drivers/net/wireless/scsc/netif.c:886:153: error: 'refcount_t' has no member named 'counter'
WARN_ON(known_users &&
^
drivers/net/wireless/scsc/netif.c:886:194: error: 'refcount_t' has no member named 'counter'
WARN_ON(known_users &&
^
drivers/net/wireless/scsc/netif.c:886:252: error: 'refcount_t' has no member named 'counter'
WARN_ON(known_users &&
^
drivers/net/wireless/scsc/netif.c:886:293: error: 'refcount_t' has no member named 'counter'
WARN_ON(known_users &&
Change-Id: I011ad1396bf50dfd38b7c60877d9207e4718713f
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
}
#ifdef CONFIG_SCSC_WLAN_DEBUG
- known_users = atomic_read(&skb->users);
+ known_users = refcount_read(&skb->users);
#endif
#ifndef CONFIG_ARM
} else {
#ifdef CONFIG_SCSC_WLAN_DEBUG
WARN_ON(known_users &&
- atomic_read(&skb->users) != known_users);
+ refcount_read(&skb->users) != known_users);
#endif
if (original_skb)
slsi_kfree_skb(original_skb);