diff mbox series

[07/38] backport: remove aql_disable debugfs for < v4.10

Message ID 20221011210446.144768-2-johannes@sipsolutions.net (mailing list archive)
State New, archived
Headers show
Series backports updates | expand

Commit Message

Johannes Berg Oct. 11, 2022, 9:04 p.m. UTC
From: Luca Coelho <luciano.coelho@intel.com>

The static_key implementation has changed considerably in v4.10 and is
only used in a new debugfs entry in mac80211.  It's very hard to
backport the new static_key implementation, and not worth the trouble
for a functionality that will probably never be used.

type=maint
ticket=jira:WIFI-116062

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 patches/0101-remove_aql_disable.cocci | 39 +++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 patches/0101-remove_aql_disable.cocci
diff mbox series

Patch

diff --git a/patches/0101-remove_aql_disable.cocci b/patches/0101-remove_aql_disable.cocci
new file mode 100644
index 000000000000..838d9d49e84a
--- /dev/null
+++ b/patches/0101-remove_aql_disable.cocci
@@ -0,0 +1,39 @@ 
+@aql_ops@
+identifier aql_disable_write, aql_disable_read;
+identifier simple_open, default_llseek;
+@@
++#if LINUX_VERSION_IS_GEQ(4,10,0)
+static const struct file_operations aql_enable_ops = {
+	.write = aql_disable_write,
+	.read = aql_disable_read,
+	.open = simple_open,
+	.llseek = default_llseek,
+};
++#endif
+
+@@
+identifier aql_ops.aql_disable_write;
+@@
++#if LINUX_VERSION_IS_GEQ(4,10,0)
+aql_disable_write(...)
+{
+...
+}
++#endif
+
+@@
+identifier aql_ops.aql_disable_read;
+@@
++#if LINUX_VERSION_IS_GEQ(4,10,0)
+aql_disable_read(...);
+{
+...
+}
++#endif
+
+@@
+expression e;
+@@
++#if LINUX_VERSION_IS_GEQ(4,10,0)
+DEBUGFS_ADD_MODE(aql_enable, e);
++#endif