generic/5.15: remove unused patches

Closed: #8669
This commit is contained in:
AmadeusGhost 2022-03-04 23:19:25 +08:00
parent a152752dc0
commit fd9fd12bc2
3 changed files with 0 additions and 86 deletions

View File

@ -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 <linux/percpu.h>
#include <asm/module.h>
+/* Not Yet Implemented */
+#define MODULE_SUPPORTED_DEVICE(name)
+
#define MODULE_NAME_LEN MAX_PARAM_PREFIX_LEN
struct modversion_info {

View File

@ -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);

View File

@ -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