Author: hselasky
Date: Sat Nov 11 10:46:12 2017
New Revision: 325707
URL: https://svnweb.freebsd.org/changeset/base/325707

Log:
  Mask away return codes from del_timer() and del_timer_sync() because
  they are not the same like in Linux.
  
  MFC after:    1 week
  Sponsored by: Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/timer.h

Modified: head/sys/compat/linuxkpi/common/include/linux/timer.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/timer.h       Sat Nov 11 
09:34:11 2017        (r325706)
+++ head/sys/compat/linuxkpi/common/include/linux/timer.h       Sat Nov 11 
10:46:12 2017        (r325707)
@@ -69,8 +69,8 @@ extern void mod_timer(struct timer_list *, int);
 extern void add_timer(struct timer_list *);
 extern void add_timer_on(struct timer_list *, int cpu);
 
-#define        del_timer(timer)        callout_stop(&(timer)->timer_callout)
-#define        del_timer_sync(timer)   callout_drain(&(timer)->timer_callout)
+#define        del_timer(timer)        
(void)callout_stop(&(timer)->timer_callout)
+#define        del_timer_sync(timer)   
(void)callout_drain(&(timer)->timer_callout)
 #define        timer_pending(timer)    callout_pending(&(timer)->timer_callout)
 #define        round_jiffies(j)        \
        ((int)(((j) + linux_timer_hz_mask) & ~linux_timer_hz_mask))
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to