From 1de03156f08011821f59d28e34d1beb2ba89d45a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 10 Feb 2013 22:49:06 +0100 Subject: [PATCH] compat: move tty_flip_buffer_push() and tty_insert_flip_string() These backports are also needed for kernel 3.7 and 3.8. Signed-off-by: Hauke Mehrtens --- include/linux/compat-3.7.h | 4 ---- include/linux/compat-3.9.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/linux/compat-3.7.h b/include/linux/compat-3.7.h index 03c5ce4d33c6..6b1d2cfad3b7 100644 --- a/include/linux/compat-3.7.h +++ b/include/linux/compat-3.7.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #define VM_DONTDUMP VM_NODUMP @@ -198,9 +197,6 @@ static inline s64 nla_get_s64(struct nlattr *nla) return tmp; } -#define tty_flip_buffer_push(port) tty_flip_buffer_push((port)->tty) -#define tty_insert_flip_string(port, chars, size) tty_insert_flip_string((port)->tty, chars, size) - #else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,7,0)) */ #define netlink_notify_portid(__notify) (__notify->portid) #define genl_info_snd_portid(__genl_info) (__genl_info->snd_portid) diff --git a/include/linux/compat-3.9.h b/include/linux/compat-3.9.h index f472cf88ddc2..ff1b38620b00 100644 --- a/include/linux/compat-3.9.h +++ b/include/linux/compat-3.9.h @@ -11,6 +11,8 @@ #include #endif #include +#include +#include /* include this before changing hlist_for_each_* to use the old versions. */ #include @@ -116,6 +118,9 @@ static inline void idr_preload_end(void) #define sk_for_each(__sk, list) \ hlist_for_each_entry(__sk, list, sk_node) +#define tty_flip_buffer_push(port) tty_flip_buffer_push((port)->tty) +#define tty_insert_flip_string(port, chars, size) tty_insert_flip_string((port)->tty, chars, size) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)) */ #endif /* LINUX_3_9_COMPAT_H */ -- 2.30.2