From fd9fd12bc2cd6a8c45604e773cbaab6bc9a7427d Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Fri, 4 Mar 2022 23:19:25 +0800 Subject: [PATCH] generic/5.15: remove unused patches Closed: #8669 --- ...03-add-module_supported_device-macro.patch | 21 -------- .../005-add-tty-driver-missing-function.patch | 54 ------------------- .../hack-5.15/999-make-phylink-tristate.patch | 11 ---- 3 files changed, 86 deletions(-) delete mode 100644 target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch delete mode 100644 target/linux/generic/backport-5.15/005-add-tty-driver-missing-function.patch delete mode 100644 target/linux/generic/hack-5.15/999-make-phylink-tristate.patch diff --git a/target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch b/target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch deleted file mode 100644 index 2706aff2a..000000000 --- a/target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch +++ /dev/null @@ -1,21 +0,0 @@ -From 3ccdf969a87be79df3daa9fe2d42f68f90ab7774 Mon Sep 17 00:00:00 2001 -From: W_Y_CPP <383152993@qq.com> -Date: Mon, 17 Jan 2022 21:34:38 +0900 -Subject: [PATCH] add MODULE_SUPPORTED_DEVICE macro - ---- - include/linux/module.h | 3 +++ - 1 file changed, 3 insertions(+) - ---- a/include/linux/module.h -+++ b/include/linux/module.h -@@ -32,6 +32,9 @@ - #include - #include - -+/* Not Yet Implemented */ -+#define MODULE_SUPPORTED_DEVICE(name) -+ - #define MODULE_NAME_LEN MAX_PARAM_PREFIX_LEN - - struct modversion_info { diff --git a/target/linux/generic/backport-5.15/005-add-tty-driver-missing-function.patch b/target/linux/generic/backport-5.15/005-add-tty-driver-missing-function.patch deleted file mode 100644 index fc5ad0d2b..000000000 --- a/target/linux/generic/backport-5.15/005-add-tty-driver-missing-function.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 80fb91b164f3fdc7b2c54198d5fa7757b084c466 Mon Sep 17 00:00:00 2001 -From: W_Y_CPP <383152993@qq.com> -Date: Wed, 9 Mar 2022 01:45:44 -0500 -Subject: [PATCH] add tty driver missing function - ---- - drivers/tty/tty_io.c | 13 +++++++++++++ - include/linux/tty_driver.h | 15 +++++++++++++++ - 2 files changed, 28 insertions(+) - ---- a/drivers/tty/tty_io.c -+++ b/drivers/tty/tty_io.c -@@ -3438,6 +3438,12 @@ void tty_driver_kref_put(struct tty_driv - } - EXPORT_SYMBOL(tty_driver_kref_put); - -+void put_tty_driver(struct tty_driver *d) -+{ -+ tty_driver_kref_put(d); -+} -+EXPORT_SYMBOL(put_tty_driver); -+ - /* - * Called by a tty driver to register itself. - */ ---- a/include/linux/tty_driver.h -+++ b/include/linux/tty_driver.h -@@ -329,6 +329,7 @@ extern struct list_head tty_drivers; - - extern struct tty_driver *__tty_alloc_driver(unsigned int lines, - struct module *owner, unsigned long flags); -+extern void put_tty_driver(struct tty_driver *driver); - extern struct tty_driver *tty_find_polling_driver(char *name, int *line); - - extern void tty_driver_kref_put(struct tty_driver *driver); -@@ -337,6 +338,18 @@ extern void tty_driver_kref_put(struct t - #define tty_alloc_driver(lines, flags) \ - __tty_alloc_driver(lines, THIS_MODULE, flags) - -+/* -+ * DEPRECATED Do not use this in new code, use tty_alloc_driver instead. -+ * (And change the return value checks.) -+ */ -+static inline struct tty_driver *alloc_tty_driver(unsigned int lines) -+{ -+ struct tty_driver *ret = tty_alloc_driver(lines, 0); -+ if (IS_ERR(ret)) -+ return NULL; -+ return ret; -+} -+ - static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d) - { - kref_get(&d->kref); diff --git a/target/linux/generic/hack-5.15/999-make-phylink-tristate.patch b/target/linux/generic/hack-5.15/999-make-phylink-tristate.patch deleted file mode 100644 index c72e14993..000000000 --- a/target/linux/generic/hack-5.15/999-make-phylink-tristate.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/drivers/net/phy/Kconfig -+++ b/drivers/net/phy/Kconfig -@@ -4,7 +4,7 @@ - # - - config PHYLINK -- tristate -+ tristate "Phylink config support" - depends on NETDEVICES - select PHYLIB - select SWPHY