The backported parts of tty are depending on tty being build into the
kernel, deactivate them if tty was not activated in the kernel config.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
EXPORT_SYMBOL_GPL(get_random_int);
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28))
+#ifdef CONFIG_TTY
/**
* tty_port_tty_wakeup - helper to wake up a tty
*
tty_kref_put(tty);
}
EXPORT_SYMBOL_GPL(tty_port_tty_hangup);
+#endif /* CONFIG_TTY */
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)) */
}
EXPORT_SYMBOL_GPL(v2_6_28_skb_add_rx_frag);
+#ifdef CONFIG_TTY
void tty_write_unlock(struct tty_struct *tty)
{
mutex_unlock(&tty->atomic_write_lock);
}
}
EXPORT_SYMBOL_GPL(n_tty_ioctl_helper);
+#endif /* CONFIG_TTY */
#ifdef CONFIG_PCI
/**
#include <linux/module.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
+#ifdef CONFIG_TTY
/*
* Termios Helper Methods
*/
return 0;
}
EXPORT_SYMBOL_GPL(tty_set_termios);
+#endif /* CONFIG_TTY */
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) */