From: Luca Coelho <luciano.coelho@xxxxxxxxx> 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@xxxxxxxxx> --- patches/0101-remove_aql_disable.cocci | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 patches/0101-remove_aql_disable.cocci 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 -- 2.37.3 -- To unsubscribe from this list: send the line "unsubscribe backports" in