[NET]: Fix networking compilation errors
authorDavid Howells <dhowells@redhat.com>
Fri, 27 Apr 2007 22:31:24 +0000 (15:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2007 22:31:24 +0000 (15:31 -0700)
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>
include/net/wext.h
kernel/hrtimer.c

index 5574183..c02b8de 100644 (file)
@@ -10,7 +10,7 @@ extern int wext_proc_init(void);
 extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
                             void __user *arg);
 #else
-static inline int wext_proc_init()
+static inline int wext_proc_init(void)
 {
        return 0;
 }
index f5cfde8..1b30331 100644 (file)
@@ -279,6 +279,8 @@ ktime_t ktime_add_ns(const ktime_t kt, u64 nsec)
 
        return ktime_add(kt, tmp);
 }
+
+EXPORT_SYMBOL_GPL(ktime_add_ns);
 # endif /* !CONFIG_KTIME_SCALAR */
 
 /*