From: Tarun Karela Date: Wed, 30 May 2018 13:15:22 +0000 (+0100) Subject: [9610] wlbt: Fix compilation error change atomic_read -> refcount_read (Android P) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1672844b7babde8f1dfb64efe9fde80db2987602;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9610] wlbt: Fix compilation error change atomic_read -> refcount_read (Android P) drivers/net/wireless/scsc/udi.c:1100:231: error: 'refcount_t' has no member named 'counter' SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount)); ^ drivers/net/wireless/scsc/udi.c:1100:312: error: 'refcount_t' has no member named 'counter' SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount)); ^ drivers/net/wireless/scsc/udi.c:1100:357: error: 'refcount_t' has no member named 'counter' SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount)); ^ drivers/net/wireless/scsc/udi.c:1100:419: error: 'refcount_t' has no member named 'counter' SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount)); ^ drivers/net/wireless/scsc/udi.c:1100:464: error: 'refcount_t' has no member named 'counter' SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount)); Change-Id: I8de110227cd5eab8e2d172ad2a25505545b7bf6c SCSC-Bug-Id: SSB-40175 Signed-off-by: Tarun Karela --- diff --git a/drivers/net/wireless/scsc/udi.c b/drivers/net/wireless/scsc/udi.c index 36fb9c6af011..1cfd011c0982 100755 --- a/drivers/net/wireless/scsc/udi.c +++ b/drivers/net/wireless/scsc/udi.c @@ -1096,8 +1096,8 @@ static void slsi_cdev_destroy(struct slsi_dev *sdev) kobj = &pdev->cdev.kobj; kref = &kobj->kref; - while (atomic_read(&kref->refcount) > 1) { - SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount)); + while (refcount_read(&kref->refcount) > 1) { + SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", refcount_read(&kref->refcount)); msleep(50); }