فهرست منبع

[NET]: Fix networking compilation errors

Fix miscellaneous networking compilation errors.

 (*) Export ktime_add_ns() for modules.

 (*) wext_proc_init() should have an ANSI declaration.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
David Howells 18 سال پیش
والد
کامیت
b8b8fd2dc2
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 1 1
      include/net/wext.h
  2. 2 0
      kernel/hrtimer.c

+ 1 - 1
include/net/wext.h

@@ -10,7 +10,7 @@ extern int wext_proc_init(void);
 extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
 extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
 			     void __user *arg);
 			     void __user *arg);
 #else
 #else
-static inline int wext_proc_init()
+static inline int wext_proc_init(void)
 {
 {
 	return 0;
 	return 0;
 }
 }

+ 2 - 0
kernel/hrtimer.c

@@ -279,6 +279,8 @@ ktime_t ktime_add_ns(const ktime_t kt, u64 nsec)
 
 
 	return ktime_add(kt, tmp);
 	return ktime_add(kt, tmp);
 }
 }
+
+EXPORT_SYMBOL_GPL(ktime_add_ns);
 # endif /* !CONFIG_KTIME_SCALAR */
 # endif /* !CONFIG_KTIME_SCALAR */
 
 
 /*
 /*