no-extern-inline.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. diff -Nur linux-2.6.32.70.orig/include/linux/inotify.h linux-2.6.32.70/include/linux/inotify.h
  2. --- linux-2.6.32.70.orig/include/linux/inotify.h 2016-01-29 22:13:00.000000000 +0100
  3. +++ linux-2.6.32.70/include/linux/inotify.h 2017-09-26 04:19:21.883681676 +0200
  4. @@ -230,12 +230,12 @@
  5. {
  6. }
  7. -extern inline int pin_inotify_watch(struct inotify_watch *watch)
  8. +static inline int pin_inotify_watch(struct inotify_watch *watch)
  9. {
  10. return 0;
  11. }
  12. -extern inline void unpin_inotify_watch(struct inotify_watch *watch)
  13. +static inline void unpin_inotify_watch(struct inotify_watch *watch)
  14. {
  15. }
  16. diff -Nur linux-2.6.32.70.orig/include/linux/tty.h linux-2.6.32.70/include/linux/tty.h
  17. --- linux-2.6.32.70.orig/include/linux/tty.h 2016-01-29 22:13:00.000000000 +0100
  18. +++ linux-2.6.32.70/include/linux/tty.h 2017-09-26 04:06:38.856051772 +0200
  19. @@ -478,7 +478,7 @@
  20. extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
  21. extern void tty_port_close(struct tty_port *port,
  22. struct tty_struct *tty, struct file *filp);
  23. -extern inline int tty_port_users(struct tty_port *port)
  24. +static inline int tty_port_users(struct tty_port *port)
  25. {
  26. return port->count + port->blocked_open;
  27. }