Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
3.15.0 and r8169 6.018.00 driver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 932
Location: USA

PostPosted: Fri Jun 13, 2014 3:29 pm    Post subject: 3.15.0 and r8169 6.018.00 driver Reply with quote

The driver stopped compiling in 3.15.0. This is how you fix it.

fail:
Code:
/home/cr0t/Files/r8169-6.018.00/src/r8169_n.c:3397:5: error: implicit declaration of function 'PREPARE_DELAYED_WORK' [-Werror=implicit-function-declaration]
     PREPARE_DELAYED_WORK(&tp->task, task);


replace fix:
Code:
--- /root/Files/r8169-6.018.00/src/r8169_n.c_ORI        2014-06-13 11:27:54.681900589 -0400
+++ /root/Files/r8169-6.018.00/src/r8169_n.c    2014-06-13 11:28:05.610763959 -0400
@@ -3394,7 +3394,7 @@
 {
     struct rtl8169_private *tp = netdev_priv(dev);

-    PREPARE_DELAYED_WORK(&tp->task, task);
+    INIT_DELAYED_WORK(&tp->task, task);
     schedule_delayed_work(&tp->task, 4);
 }
 #endif

_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum