[9610] wlbt: Fix compilation erros in netif.c (Android P)
authorTarun Karela <t.karela@samsung.com>
Wed, 30 May 2018 11:17:15 +0000 (12:17 +0100)
committerYoungsoo Kim <youngss.kim@samsung.com>
Fri, 15 Jun 2018 22:47:09 +0000 (07:47 +0900)
commit65e405a750a41550e4cb542a98aa834c15660101
treec94d79c38cea9f6d44aadb98e27f03d7b8290895
parent0462ad15a5de5ade67116081c0ad06b3a893968a
[9610] wlbt: Fix compilation erros in netif.c (Android P)

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>
drivers/net/wireless/scsc/netif.c