summaryrefslogtreecommitdiff
path: root/target/linux/patches/2.6.32.70/no-extern-inline.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/patches/2.6.32.70/no-extern-inline.patch')
-rw-r--r--target/linux/patches/2.6.32.70/no-extern-inline.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/patches/2.6.32.70/no-extern-inline.patch b/target/linux/patches/2.6.32.70/no-extern-inline.patch
new file mode 100644
index 000000000..092a6b1d7
--- /dev/null
+++ b/target/linux/patches/2.6.32.70/no-extern-inline.patch
@@ -0,0 +1,30 @@
+diff -Nur linux-2.6.32.70.orig/include/linux/inotify.h linux-2.6.32.70/include/linux/inotify.h
+--- linux-2.6.32.70.orig/include/linux/inotify.h 2016-01-29 22:13:00.000000000 +0100
++++ linux-2.6.32.70/include/linux/inotify.h 2017-09-26 04:19:21.883681676 +0200
+@@ -230,12 +230,12 @@
+ {
+ }
+
+-extern inline int pin_inotify_watch(struct inotify_watch *watch)
++static inline int pin_inotify_watch(struct inotify_watch *watch)
+ {
+ return 0;
+ }
+
+-extern inline void unpin_inotify_watch(struct inotify_watch *watch)
++static inline void unpin_inotify_watch(struct inotify_watch *watch)
+ {
+ }
+
+diff -Nur linux-2.6.32.70.orig/include/linux/tty.h linux-2.6.32.70/include/linux/tty.h
+--- linux-2.6.32.70.orig/include/linux/tty.h 2016-01-29 22:13:00.000000000 +0100
++++ linux-2.6.32.70/include/linux/tty.h 2017-09-26 04:06:38.856051772 +0200
+@@ -478,7 +478,7 @@
+ extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
+ extern void tty_port_close(struct tty_port *port,
+ struct tty_struct *tty, struct file *filp);
+-extern inline int tty_port_users(struct tty_port *port)
++static inline int tty_port_users(struct tty_port *port)
+ {
+ return port->count + port->blocked_open;
+ }