Skip to contentSkip to conversation

mac80211: set .owner to THIS_MODULE in debugfs_netdev.c

PATCH In review Taehee Yoo 3 participants 119 messages Oct 8, 2020 – Oct 9, 2020

Subsystems (29)
lore
Share & tools
lore

Taehee Yoo

author
#0 lore raw

PATCH 1/117 mac80211: set .owner to THIS_MODULE in debugfs_netdev.c

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.")
---
 net/mac80211/debugfs_netdev.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs_netdev.c +1 -0
index fe8a7a87e513..8efa31ae7334 100644
@@ -127,6 +127,7 @@ static const struct file_operations name##_ops = {			\
 	.write = (_write),						\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define _IEEE80211_IF_FILE_R_FN(name)					\
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/117 mac80211: set rcname_ops.owner to THIS_MODULE

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 4b7679a561e5 ("mac80211: clean up rate control API")
---
 net/mac80211/rate.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/rate.c +1 -0
index b051f125d3af..4f9d33fc895e 100644
@@ -218,6 +218,7 @@ const struct file_operations rcname_ops = {
 	.read = rcname_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 #endif
 
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 3/117 mac80211: set minstrel_ht_stat_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes ec8aa669b839 ("mac80211: add the minstrel_ht rate control algorithm")
---
 net/mac80211/rc80211_minstrel_ht_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/rc80211_minstrel_ht_debugfs.c +1 -0
index bebb71917742..6021e394e5da 100644
@@ -173,6 +173,7 @@ static const struct file_operations minstrel_ht_stat_fops = {
 	.read = minstrel_stats_read,
 	.release = minstrel_stats_release,
 	.llseek = no_llseek,
+	.owner = THIS_MODULE,
 };
 
 static char *
Signature · 1 line
2.17.1
author
#3 lore raw

PATCH 4/117 mac80211: set minstrel_ht_stat_csv_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 2cae0b6a70d6 ("mac80211: add new Minstrel-HT statistic output via csv")
---
 net/mac80211/rc80211_minstrel_ht_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/rc80211_minstrel_ht_debugfs.c +1 -0
index 6021e394e5da..cdb51aa460a3 100644
@@ -312,6 +312,7 @@ static const struct file_operations minstrel_ht_stat_csv_fops = {
 	.read = minstrel_stats_read,
 	.release = minstrel_stats_release,
 	.llseek = no_llseek,
+	.owner = THIS_MODULE,
 };
 
 void
Signature · 1 line
2.17.1
author
#4 lore raw

PATCH 5/117 mac80211: set KEY_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.")
---
 net/mac80211/debugfs_key.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs_key.c +1 -0
index 98a713475e0f..ea5908465f2e 100644
@@ -30,6 +30,7 @@ static const struct file_operations key_ ##name## _ops = {		\
 	.read = key_##name##_read,					\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define KEY_OPS_W(name)							\
Signature · 1 line
2.17.1
author
#5 lore raw

PATCH 6/117 mac80211: set KEY_OPS_W.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes d0a77c6569ab ("mac80211: allow writing TX PN in debugfs")
---
 net/mac80211/debugfs_key.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs_key.c +1 -0
index ea5908465f2e..b5fe68b683e7 100644
@@ -39,6 +39,7 @@ static const struct file_operations key_ ##name## _ops = {		\
 	.write = key_##name##_write,					\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define KEY_FILE(name, format)						\
Signature · 1 line
2.17.1
author
#6 lore raw

PATCH 7/117 mac80211: set KEY_CONF_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 8f20fc24986a ("[MAC80211]: embed key conf in key, fix driver interface")
---
 net/mac80211/debugfs_key.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs_key.c +1 -0
index b5fe68b683e7..d7c0c28045ef 100644
@@ -55,6 +55,7 @@ static const struct file_operations key_ ##name## _ops = {		\
 	.read = key_conf_##name##_read,					\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define KEY_CONF_FILE(name, format)					\
Signature · 1 line
2.17.1
author
#7 lore raw

PATCH 8/117 mac80211: set STA_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.")
---
 net/mac80211/debugfs_sta.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs_sta.c +1 -0
index 829dcad69c2c..d3366989c6f9 100644
@@ -34,6 +34,7 @@ static const struct file_operations sta_ ##name## _ops = {		\
 	.read = sta_##name##_read,					\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define STA_OPS_RW(name)						\
Signature · 1 line
2.17.1
author
#8 lore raw

PATCH 9/117 mac80211: set STA_OPS_RW.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes a75b4363eaaf ("mac80211: allow controlling aggregation manually")
---
 net/mac80211/debugfs_sta.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs_sta.c +1 -0
index d3366989c6f9..9ce49346c32a 100644
@@ -43,6 +43,7 @@ static const struct file_operations sta_ ##name## _ops = {		\
 	.write = sta_##name##_write,					\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define STA_FILE(name, field, format)					\
Signature · 1 line
2.17.1
author
#9 lore raw

PATCH 10/117 mac80211: set DEBUGFS_READONLY_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.")
---
 net/mac80211/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs.c +1 -0
index 54080290d6e2..669d7e13ffe8 100644
@@ -46,6 +46,7 @@ static const struct file_operations name## _ops = {			\
 	.read = name## _read,						\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_READONLY_FILE(name, fmt, value...)		\
Signature · 1 line
2.17.1
author
#10 lore raw

PATCH 11/117 mac80211: set aqm_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 9399b86c0e9a ("mac80211: add debug knobs for fair queuing")
---
 net/mac80211/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs.c +1 -0
index 669d7e13ffe8..e2675db7490b 100644
@@ -149,6 +149,7 @@ static const struct file_operations aqm_ops = {
 	.read = aqm_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t airtime_flags_read(struct file *file,
Signature · 1 line
2.17.1
author
#11 lore raw

PATCH 12/117 mac80211: debugfs: set airtime_flags_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e322c07f8371 ("mac80211: debugfs: improve airtime_flags handler readability")
---
 net/mac80211/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs.c +1 -0
index e2675db7490b..794892fe6622 100644
@@ -203,6 +203,7 @@ static const struct file_operations airtime_flags_ops = {
 	.read = airtime_flags_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t aql_txq_limit_read(struct file *file,
Signature · 1 line
2.17.1
author
#12 lore raw

PATCH 13/117 mac80211: set aql_txq_limit_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 3ace10f5b5ad ("mac80211: Implement Airtime-based Queue Limit (AQL)")
---
 net/mac80211/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs.c +1 -0
index 794892fe6622..ff690feb56a4 100644
@@ -285,6 +285,7 @@ static const struct file_operations aql_txq_limit_ops = {
 	.read = aql_txq_limit_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t force_tx_status_read(struct file *file,
Signature · 1 line
2.17.1
author
#13 lore raw

PATCH 14/117 mac80211: set force_tx_status_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 276d9e82e06c ("mac80211: debugfs option to force TX status frames")
---
 net/mac80211/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs.c +1 -0
index ff690feb56a4..a3f3e3add3c2 100644
@@ -338,6 +338,7 @@ static const struct file_operations force_tx_status_ops = {
 	.read = force_tx_status_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 #ifdef CONFIG_PM
Signature · 1 line
2.17.1
author
#14 lore raw

PATCH 15/117 mac80211: set reset_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 827b1fb44b7e ("mac80211: resume properly, add suspend/resume test")
---
 net/mac80211/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs.c +1 -0
index a3f3e3add3c2..97eec43a6945 100644
@@ -359,6 +359,7 @@ static const struct file_operations reset_ops = {
 	.write = reset_write,
 	.open = simple_open,
 	.llseek = noop_llseek,
+	.owner = THIS_MODULE,
 };
 #endif
 
Signature · 1 line
2.17.1
author
#15 lore raw

PATCH 16/117 mac80211: set DEBUGFS_DEVSTATS_FILE.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.")
---
 net/mac80211/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/debugfs.c +1 -0
index 97eec43a6945..adde0b2797c9 100644
@@ -542,6 +542,7 @@ static const struct file_operations stats_ ##name## _ops = {		\
 	.read = stats_ ##name## _read,					\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_STATS_ADD(name)					\
Signature · 1 line
2.17.1
author
#16 lore raw

PATCH 17/117 mac80211/cfg80211: set DEBUGFS_READONLY_FILE.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 1ac61302dcd1 ("mac80211/cfg80211: move wiphy specific debugfs entries to cfg80211")
---
 net/wireless/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/wireless/debugfs.c +1 -0
index 76b845f68ac8..a00ebcc552e9 100644
@@ -26,6 +26,7 @@ static const struct file_operations name## _ops = {			\
 	.read = name## _read,						\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 DEBUGFS_READONLY_FILE(rts_threshold, 20, "%d",
Signature · 1 line
2.17.1
author
#17 lore raw

PATCH 18/117 cfg80211: set ht40allow_map_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 80a3511d70e8 ("cfg80211: add debugfs HT40 allow map")
---
 net/wireless/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/wireless/debugfs.c +1 -0
index a00ebcc552e9..eb54c0ac4728 100644
@@ -98,6 +98,7 @@ static const struct file_operations ht40allow_map_ops = {
 	.read = ht40allow_map_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 #define DEBUGFS_ADD(name)						\
Signature · 1 line
2.17.1
author
#18 lore raw

PATCH 19/117 net: hsr: set hsr_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes fc4ecaeebd26 ("net: hsr: add debugfs support for display node list")
---
 net/hsr/hsr_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/hsr/hsr_debugfs.c +1 -0
index 7e11a6c35bc3..92ebb5ff41e4 100644
@@ -90,6 +90,7 @@ static const struct file_operations hsr_fops = {
 	.read	= seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 /* hsr_debugfs_init - create hsr node_table file for dumping
Signature · 1 line
2.17.1
author
#19 lore raw

PATCH 20/117 batman-adv: set batadv_log_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 9e466250ede3 ("batman-adv: Prefix bat_debugfs local static functions with batadv_")
---
 net/batman-adv/log.c | 1 +
 1 file changed, 1 insertion(+)
net/batman-adv/log.c +1 -0
index a67b2b091447..5f887bca2549 100644
@@ -180,6 +180,7 @@ static const struct file_operations batadv_log_fops = {
 	.read           = batadv_log_read,
 	.poll           = batadv_log_poll,
 	.llseek         = no_llseek,
+	.owner		= THIS_MODULE,
 };
 
 /**
Signature · 1 line
2.17.1
author
#20 lore raw

PATCH 21/117 6lowpan: iphc: set lowpan_ctx_pfx_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 5609c185f24d ("6lowpan: iphc: add support for stateful compression")
---
 net/6lowpan/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/6lowpan/debugfs.c +1 -0
index 1c140af06d52..29c3627a00e2 100644
@@ -161,6 +161,7 @@ static const struct file_operations lowpan_ctx_pfx_fops = {
 	.write		= lowpan_ctx_pfx_write,
 	.llseek		= seq_lseek,
 	.release	= single_release,
+	.owner		= THIS_MODULE,
 };
 
 static void lowpan_dev_debugfs_ctx_init(struct net_device *dev,
Signature · 1 line
2.17.1
author
#21 lore raw

PATCH 22/117 netdevsim: set nsim_dev_health_break_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 82c93a87bf8b ("netdevsim: implement couple of testing devlink health reporters")
---
 drivers/net/netdevsim/health.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/netdevsim/health.c +1 -0
index 62958b238d50..21e2974660e7 100644
@@ -261,6 +261,7 @@ static const struct file_operations nsim_dev_health_break_fops = {
 	.open = simple_open,
 	.write = nsim_dev_health_break_write,
 	.llseek = generic_file_llseek,
+	.owner = THIS_MODULE,
 };
 
 int nsim_dev_health_init(struct nsim_dev *nsim_dev, struct devlink *devlink)
Signature · 1 line
2.17.1
author
#22 lore raw

PATCH 23/117 netdevsim: set nsim_udp_tunnels_info_reset_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 424be63ad831 ("netdevsim: add UDP tunnel port offload support")
---
 drivers/net/netdevsim/udp_tunnels.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/netdevsim/udp_tunnels.c +1 -0
index 22c06a76033c..2482b0f80b2f 100644
@@ -119,6 +119,7 @@ static const struct file_operations nsim_udp_tunnels_info_reset_fops = {
 	.open = simple_open,
 	.write = nsim_udp_tunnels_info_reset_write,
 	.llseek = generic_file_llseek,
+	.owner = THIS_MODULE,
 };
 
 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev,
Signature · 1 line
2.17.1
author
#23 lore raw

PATCH 24/117 netdevsim: set nsim_dev_take_snapshot_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 4418f862d675 ("netdevsim: implement support for devlink region and snapshots")
---
 drivers/net/netdevsim/dev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/netdevsim/dev.c +1 -0
index 32f339fedb21..9c867d08e04a 100644
@@ -94,6 +94,7 @@ static const struct file_operations nsim_dev_take_snapshot_fops = {
 	.open = simple_open,
 	.write = nsim_dev_take_snapshot_write,
 	.llseek = generic_file_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t nsim_dev_trap_fa_cookie_read(struct file *file,
Signature · 1 line
2.17.1
author
#24 lore raw

PATCH 25/117 netdevsim: set nsim_dev_trap_fa_cookie_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes d3cbb907ae57 ("netdevsim: add ACL trap reporting cookie as a metadata")
---
 drivers/net/netdevsim/dev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/netdevsim/dev.c +1 -0
index 9c867d08e04a..1ae83ea4adbe 100644
@@ -187,6 +187,7 @@ static const struct file_operations nsim_dev_trap_fa_cookie_fops = {
 	.read = nsim_dev_trap_fa_cookie_read,
 	.write = nsim_dev_trap_fa_cookie_write,
 	.llseek = generic_file_llseek,
+	.owner = THIS_MODULE,
 };
 
 static int nsim_dev_debugfs_init(struct nsim_dev *nsim_dev)
Signature · 1 line
2.17.1
author
#25 lore raw

PATCH 26/117 ieee802154: set test_int_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes ded845a781a5 ("ieee802154: Add CA8210 IEEE 802.15.4 device driver")
---
 drivers/net/ieee802154/ca8210.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ieee802154/ca8210.c +2 -1
index 4eb64709d44c..d7b68c1279e6 100644
@@ -2672,7 +2672,8 @@ static const struct file_operations test_int_fops = {
 	.open =           ca8210_test_int_open,
 	.release =        NULL,
 	.unlocked_ioctl = ca8210_test_int_ioctl,
-	.poll =           ca8210_test_int_poll
+	.poll =           ca8210_test_int_poll,
+	.owner =	  THIS_MODULE,
 };
 
 /* Init/Deinit */
Signature · 1 line
2.17.1
author
#26 lore raw

PATCH 27/117 i2400m: set i2400m_rx_stats_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes c71228caf91e ("i2400m: debugfs controls")
---
 drivers/net/wimax/i2400m/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wimax/i2400m/debugfs.c +1 -0
index 1c640b41ea4c..9eda1535f777 100644
@@ -87,6 +87,7 @@ const struct file_operations i2400m_rx_stats_fops = {
 	.read =		i2400m_rx_stats_read,
 	.write =	i2400m_rx_stats_write,
 	.llseek =	default_llseek,
+	.owner =	THIS_MODULE,
 };
 
 
Signature · 1 line
2.17.1
author
#27 lore raw

PATCH 28/117 i2400m: set i2400m_tx_stats_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes c71228caf91e ("i2400m: debugfs controls")
---
 drivers/net/wimax/i2400m/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wimax/i2400m/debugfs.c +1 -0
index 9eda1535f777..144f8a7e98af 100644
@@ -141,6 +141,7 @@ const struct file_operations i2400m_tx_stats_fops = {
 	.read =		i2400m_tx_stats_read,
 	.write =	i2400m_tx_stats_write,
 	.llseek =	default_llseek,
+	.owner =	THIS_MODULE,
 };
 
 
Signature · 1 line
2.17.1
author
#28 lore raw

PATCH 29/117 dpaa2-eth: set dpaa2_dbg_cpu_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 091a19ea6e34 ("dpaa2-eth: add debugfs statistics")
---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c +1 -0
index 56d9927fbfda..765577386fc7 100644
@@ -59,6 +59,7 @@ static const struct file_operations dpaa2_dbg_cpu_ops = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static char *fq_type_to_str(struct dpaa2_eth_fq *fq)
Signature · 1 line
2.17.1
author
#29 lore raw

PATCH 30/117 dpaa2-eth: set dpaa2_dbg_fq_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 091a19ea6e34 ("dpaa2-eth: add debugfs statistics")
---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c +1 -0
index 765577386fc7..df84324efb50 100644
@@ -124,6 +124,7 @@ static const struct file_operations dpaa2_dbg_fq_ops = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static int dpaa2_dbg_ch_show(struct seq_file *file, void *offset)
Signature · 1 line
2.17.1
author
#30 lore raw

PATCH 31/117 dpaa2-eth: set dpaa2_dbg_ch_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 091a19ea6e34 ("dpaa2-eth: add debugfs statistics")
---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c +1 -0
index df84324efb50..af76cb9387bd 100644
@@ -170,6 +170,7 @@ static const struct file_operations dpaa2_dbg_ch_ops = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 void dpaa2_dbg_add(struct dpaa2_eth_priv *priv)
Signature · 1 line
2.17.1
author
#31 lore raw

PATCH 32/117 wl1271: set DEBUGFS_READONLY_FILE.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes f5fc0f86b02a ("wl1271: add wl1271 driver files")
---
 drivers/net/wireless/ti/wlcore/debugfs.h | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ti/wlcore/debugfs.h +1 -0
index fc3bb0d2ab8d..9cc2dee42f51 100644
@@ -35,6 +35,7 @@ static const struct file_operations name## _ops = {			\
 	.read = name## _read,						\
 	.open = simple_open,						\
 	.llseek	= generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_ADD(name, parent)					\
Signature · 1 line
2.17.1
author
#32 lore raw

PATCH 33/117 wl1271: set DEBUGFS_FWSTATS_FILE.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes f5fc0f86b02a ("wl1271: add wl1271 driver files")
---
 drivers/net/wireless/ti/wlcore/debugfs.h | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ti/wlcore/debugfs.h +1 -0
index 9cc2dee42f51..681dead95e0c 100644
@@ -69,6 +69,7 @@ static const struct file_operations sub## _ ##name## _ops = {		\
 	.read = sub## _ ##name## _read,					\
 	.open = simple_open,						\
 	.llseek	= generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_FWSTATS_FILE_ARRAY(sub, name, len, struct_type)		\
Signature · 1 line
2.17.1
author
#33 lore raw

PATCH 34/117 wlcore: set DEBUGFS_FWSTATS_FILE_ARRAY.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes bcca1bbdd412 ("wlcore: add debugfs macro to help print fw statistics arrays")
---
 drivers/net/wireless/ti/wlcore/debugfs.h | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ti/wlcore/debugfs.h +1 -0
index 681dead95e0c..2889cf0bcfb7 100644
@@ -95,6 +95,7 @@ static const struct file_operations sub## _ ##name## _ops = {		\
 	.read = sub## _ ##name## _read,					\
 	.open = simple_open,						\
 	.llseek	= generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_FWSTATS_ADD(sub, name)					\
Signature · 1 line
2.17.1
author
#34 lore raw

PATCH 35/117 wl12xx: set DEBUGFS_FWSTATS_FILE_ARRAY.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 2f01a1f58889 ("wl12xx: add driver")
---
 drivers/net/wireless/ti/wl1251/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ti/wl1251/debugfs.c +1 -0
index d48746e640cc..0b09ffec9027 100644
@@ -35,6 +35,7 @@ static const struct file_operations name## _ops = {			\
 	.read = name## _read,						\
 	.open = simple_open,						\
 	.llseek	= generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_ADD(name, parent)					\
Signature · 1 line
2.17.1
author
#35 lore raw

PATCH 36/117 wl12xx: set DEBUGFS_READONLY_FILE.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 2f01a1f58889 ("wl12xx: add driver")
---
 drivers/net/wireless/ti/wl1251/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ti/wl1251/debugfs.c +1 -0
index 0b09ffec9027..21d432532bc3 100644
@@ -68,6 +68,7 @@ static const struct file_operations sub## _ ##name## _ops = {		\
 	.read = sub## _ ##name## _read,					\
 	.open = simple_open,						\
 	.llseek	= generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_FWSTATS_ADD(sub, name)				\
Signature · 1 line
2.17.1
author
#36 lore raw

PATCH 37/117 wl12xx: set tx_queue_len_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 2f01a1f58889 ("wl12xx: add driver")
---
 drivers/net/wireless/ti/wl1251/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ti/wl1251/debugfs.c +1 -0
index 21d432532bc3..165e346bf383 100644
@@ -214,6 +214,7 @@ static const struct file_operations tx_queue_len_ops = {
 	.read = tx_queue_len_read,
 	.open = simple_open,
 	.llseek = generic_file_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf,
Signature · 1 line
2.17.1
author
#37 lore raw

PATCH 38/117 wl1251: set tx_queue_status_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes b7339b1de0f7 ("wl1251: add tx queue status to debugfs")
---
 drivers/net/wireless/ti/wl1251/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ti/wl1251/debugfs.c +1 -0
index 165e346bf383..0a26cee0f287 100644
@@ -237,6 +237,7 @@ static const struct file_operations tx_queue_status_ops = {
 	.read = tx_queue_status_read,
 	.open = simple_open,
 	.llseek = generic_file_llseek,
+	.owner = THIS_MODULE,
 };
 
 static void wl1251_debugfs_delete_files(struct wl1251 *wl)
Signature · 1 line
2.17.1
author
#38 lore raw

PATCH 39/117 iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 5ae212c9273d ("[PATCH] iwlwifi: add read rate scale table debugfs function")
---
 drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/dvm/rs.c +1 -0
index 4fa4eab2d7f3..d013203c7d5a 100644
@@ -3172,6 +3172,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = {
 	.read = rs_sta_dbgfs_scale_table_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file,
 			char __user *user_buf, size_t count, loff_t *ppos)
Signature · 1 line
2.17.1
author
#39 lore raw

PATCH 40/117 iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 0209dc11c769 ("[PATCH] iwlwifi: add debugfs rate scale stats")
---
 drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/dvm/rs.c +1 -0
index d013203c7d5a..4075cb53bc73 100644
@@ -3216,6 +3216,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = {
 	.read = rs_sta_dbgfs_stats_table_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t rs_sta_dbgfs_rate_scale_data_read(struct file *file,
Signature · 1 line
2.17.1
author
#40 lore raw

PATCH 41/117 iwlwifi: set DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 712b6cf57a53 ("iwlwifi: Add debugfs to iwl core")
---
 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c +1 -0
index 911049201838..ac65141f0b3b 100644
@@ -34,6 +34,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {          \
 	.read = iwl_dbgfs_##name##_read,				\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_WRITE_FILE_OPS(name)                                    \
Signature · 1 line
2.17.1
author
#41 lore raw

PATCH 42/117 iwlwifi: set DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 189a2b5942d6 ("iwlwifi: trigger event log from debugfs")
---
 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c +1 -0
index ac65141f0b3b..41d969b46bae 100644
@@ -42,6 +42,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {          \
 	.write = iwl_dbgfs_##name##_write,                              \
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 
Signature · 1 line
2.17.1
author
#42 lore raw

PATCH 43/117 iwlwifi: set DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 712b6cf57a53 ("iwlwifi: Add debugfs to iwl core")
---
 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c +1 -0
index 41d969b46bae..a1022987eccf 100644
@@ -52,6 +52,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {          \
 	.read = iwl_dbgfs_##name##_read,                                \
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 static ssize_t iwl_dbgfs_sram_read(struct file *file,
Signature · 1 line
2.17.1
author
#43 lore raw

PATCH 44/117 iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 8ca151b568b6 ("iwlwifi: add the MVM driver")
---
 drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/mvm/rs.c +1 -0
index 86b2ebb5d5fb..97289236f2e1 100644
@@ -3903,6 +3903,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = {
 	.read = rs_sta_dbgfs_scale_table_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file,
 			char __user *user_buf, size_t count, loff_t *ppos)
Signature · 1 line
2.17.1
author
#44 lore raw

PATCH 45/117 iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 8ca151b568b6 ("iwlwifi: add the MVM driver")
---
 drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/mvm/rs.c +1 -0
index 97289236f2e1..5b81cb1bdd3b 100644
@@ -3951,6 +3951,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = {
 	.read = rs_sta_dbgfs_stats_table_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t rs_sta_dbgfs_drv_tx_stats_read(struct file *file,
Signature · 1 line
2.17.1
author
#45 lore raw

PATCH 46/117 iwlwifi: mvm: set rs_sta_dbgfs_drv_tx_stats_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 757cf23b4b4b ("iwlwifi: mvm: add per rate tx stats")
---
 drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/mvm/rs.c +1 -0
index 5b81cb1bdd3b..6fc2c841a873 100644
@@ -4042,6 +4042,7 @@ static const struct file_operations rs_sta_dbgfs_drv_tx_stats_ops = {
 	.write = rs_sta_dbgfs_drv_tx_stats_write,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t iwl_dbgfs_ss_force_read(struct file *file,
Signature · 1 line
2.17.1
author
#46 lore raw

PATCH 47/117 iwlwifi: mvm: set .owner to THIS_MODULE in debugfs.h

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 8ca151b568b6 ("iwlwifi: add the MVM driver")
---
 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h +3 -0
index a83d252c0602..5bf4f7801b83 100644
@@ -63,6 +63,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.read = iwl_dbgfs_##name##_read,				\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype)		\
@@ -87,6 +88,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.read = iwl_dbgfs_##name##_read,				\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype)		\
@@ -95,4 +97,5 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.write = _iwl_dbgfs_##name##_write,				\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
Signature · 1 line
2.17.1
author
#47 lore raw

PATCH 48/117 iwlwifi: mvm: set iwl_dbgfs_mem_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 2b55f43f8e47 ("iwlwifi: mvm: Add mem debugfs entry")
---
 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +1 -0
index 8fae7e707374..3bfa91b4cba9 100644
@@ -1981,6 +1981,7 @@ static const struct file_operations iwl_dbgfs_mem_ops = {
 	.write = iwl_dbgfs_mem_write,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 void iwl_mvm_sta_add_debugfs(struct ieee80211_hw *hw,
Signature · 1 line
2.17.1
author
#48 lore raw

PATCH 49/117 iwlwifi: runtime: set _FWRT_DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 93b167c13a3a ("iwlwifi: runtime: sync FW and host clocks for logs")
---
 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/fw/debugfs.c +1 -0
index 267ad4eddb5c..c0edf6fb3760 100644
@@ -122,6 +122,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.open = _iwl_dbgfs_##name##_open,				\
 	.llseek = generic_file_llseek,					\
 	.release = _iwl_dbgfs_release,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define FWRT_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype)		\
Signature · 1 line
2.17.1
author
#49 lore raw

PATCH 50/117 iwlwifi: runtime: set _FWRT_DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 93b167c13a3a ("iwlwifi: runtime: sync FW and host clocks for logs")
---
 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/fw/debugfs.c +1 -0
index c0edf6fb3760..d99ed6b2f781 100644
@@ -151,6 +151,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.open = _iwl_dbgfs_##name##_open,				\
 	.llseek = generic_file_llseek,					\
 	.release = _iwl_dbgfs_release,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define _FWRT_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype)		\
Signature · 1 line
2.17.1
author
#50 lore raw

PATCH 51/117 iwlwifi: runtime: set _FWRT_DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 93b167c13a3a ("iwlwifi: runtime: sync FW and host clocks for logs")
---
 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/fw/debugfs.c +1 -0
index d99ed6b2f781..5f41c8587ac6 100644
@@ -162,6 +162,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.open = _iwl_dbgfs_##name##_open,				\
 	.llseek = generic_file_llseek,					\
 	.release = _iwl_dbgfs_release,					\
+	.owner = THIS_MODULE,						\
 }
 
 #define FWRT_DEBUGFS_READ_FILE_OPS(name, bufsz)				\
Signature · 1 line
2.17.1
author
#51 lore raw

PATCH 52/117 iwlwifi: set DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
---
 drivers/net/wireless/intel/iwlegacy/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlegacy/debug.c +1 -0
index 4f741b305d96..03571066f580 100644
@@ -136,6 +136,7 @@ static const struct file_operations il_dbgfs_##name##_ops = {	\
 	.read = il_dbgfs_##name##_read,				\
 	.open = simple_open,					\
 	.llseek = generic_file_llseek,				\
+	.owner = THIS_MODULE,					\
 };
 
 #define DEBUGFS_WRITE_FILE_OPS(name)				\
Signature · 1 line
2.17.1
author
#52 lore raw

PATCH 53/117 iwlwifi: set DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
---
 drivers/net/wireless/intel/iwlegacy/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlegacy/debug.c +1 -0
index 03571066f580..9813d4b507e5 100644
@@ -145,6 +145,7 @@ static const struct file_operations il_dbgfs_##name##_ops = {	\
 	.write = il_dbgfs_##name##_write,			\
 	.open = simple_open,					\
 	.llseek = generic_file_llseek,				\
+	.owner = THIS_MODULE,					\
 };
 
 #define DEBUGFS_READ_WRITE_FILE_OPS(name)			\
Signature · 1 line
2.17.1
author
#53 lore raw

PATCH 54/117 iwlwifi: set DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
---
 drivers/net/wireless/intel/iwlegacy/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlegacy/debug.c +1 -0
index 9813d4b507e5..fcf5fd3c7364 100644
@@ -156,6 +156,7 @@ static const struct file_operations il_dbgfs_##name##_ops = {	\
 	.read = il_dbgfs_##name##_read,				\
 	.open = simple_open,					\
 	.llseek = generic_file_llseek,				\
+	.owner = THIS_MODULE,					\
 };
 
 static const char *
Signature · 1 line
2.17.1
author
#54 lore raw

PATCH 55/117 iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 4bc85c1324aa ("Revert "iwlwifi: split the drivers for agn and legacy devices 3945/4965"")
---
 drivers/net/wireless/intel/iwlegacy/3945-rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlegacy/3945-rs.c +1 -0
index 0af9e997c9f6..f98297541184 100644
@@ -836,6 +836,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = {
 	.read = il3945_sta_dbgfs_stats_table_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static void
Signature · 1 line
2.17.1
author
#55 lore raw

PATCH 56/117 iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
---
 drivers/net/wireless/intel/iwlegacy/4965-rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlegacy/4965-rs.c +1 -0
index 1f196665d21f..43fff3fd18e7 100644
@@ -2669,6 +2669,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = {
 	.read = il4965_rs_sta_dbgfs_scale_table_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t
Signature · 1 line
2.17.1
author
#56 lore raw

PATCH 57/117 iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
---
 drivers/net/wireless/intel/iwlegacy/4965-rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlegacy/4965-rs.c +1 -0
index 43fff3fd18e7..6592726235d4 100644
@@ -2715,6 +2715,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = {
 	.read = il4965_rs_sta_dbgfs_stats_table_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t
Signature · 1 line
2.17.1
author
#57 lore raw

PATCH 58/117 iwlwifi: set rs_sta_dbgfs_rate_scale_data_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
---
 drivers/net/wireless/intel/iwlegacy/4965-rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlegacy/4965-rs.c +1 -0
index 6592726235d4..5e3a30d553dc 100644
@@ -2744,6 +2744,7 @@ static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = {
 	.read = il4965_rs_sta_dbgfs_rate_scale_data_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static void
Signature · 1 line
2.17.1
author
#58 lore raw

PATCH 59/117 iwlagn: set rs_sta_dbgfs_rate_scale_data_ops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 38167459da50 ("iwlagn: show current rate scale data in debugfs")
---
 drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/dvm/rs.c +1 -0
index 4075cb53bc73..48b945594f4c 100644
@@ -3243,6 +3243,7 @@ static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = {
 	.read = rs_sta_dbgfs_rate_scale_data_read,
 	.open = simple_open,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 static void rs_add_debugfs(void *priv, void *priv_sta,
Signature · 1 line
2.17.1
author
#59 lore raw

PATCH 60/117 iwlagn: set DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 87e5666c0722 ("iwlagn: transport handler can register debugfs entries")
---
 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +1 -0
index e5160d620868..e408a381c82b 100644
@@ -2505,6 +2505,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.read = iwl_dbgfs_##name##_read,				\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_WRITE_FILE_OPS(name)                                    \
Signature · 1 line
2.17.1
author
#60 lore raw

PATCH 61/117 iwlagn: set DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 16db88ba51d6 ("iwlagn: move dump_csr and dump_fh to transport layer")
---
 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +1 -0
index e408a381c82b..7c13184fc8e7 100644
@@ -2513,6 +2513,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {          \
 	.write = iwl_dbgfs_##name##_write,                              \
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_READ_WRITE_FILE_OPS(name)				\
Signature · 1 line
2.17.1
author
#61 lore raw

PATCH 62/117 iwlagn: set DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 87e5666c0722 ("iwlagn: transport handler can register debugfs entries")
---
 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +1 -0
index 7c13184fc8e7..f228e362b71f 100644
@@ -2522,6 +2522,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.read = iwl_dbgfs_##name##_read,				\
 	.open = simple_open,						\
 	.llseek = generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 struct iwl_dbgfs_tx_queue_priv {
Signature · 1 line
2.17.1
author
#62 lore raw

PATCH 63/117 rtlwifi: set file_ops_common.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 610247f46feb ("rtlwifi: Improve debugging by using debugfs")
---
 drivers/net/wireless/realtek/rtlwifi/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/realtek/rtlwifi/debug.c +1 -0
index 55db71c766fe..0a368b1dd1b5 100644
@@ -89,6 +89,7 @@ static const struct file_operations file_ops_common = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static int rtl_debug_get_mac_page(struct seq_file *m, void *v)
Signature · 1 line
2.17.1
author
#63 lore raw

PATCH 64/117 ath11k: set fops_extd_tx_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
---
 drivers/net/wireless/ath/ath11k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/debug.c +2 -1
index 62a1aa0565a9..93461e840c87 100644
@@ -685,7 +685,8 @@ static ssize_t ath11k_read_enable_extd_tx_stats(struct file *file,
 static const struct file_operations fops_extd_tx_stats = {
 	.read = ath11k_read_enable_extd_tx_stats,
 	.write = ath11k_write_enable_extd_tx_stats,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t ath11k_write_extd_rx_stats(struct file *file,
Signature · 1 line
2.17.1
author
#64 lore raw

PATCH 65/117 ath11k: set fops_extd_rx_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
---
 drivers/net/wireless/ath/ath11k/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath11k/debug.c +1 -0
index 93461e840c87..8494ddbef7e7 100644
@@ -775,6 +775,7 @@ static const struct file_operations fops_extd_rx_stats = {
 	.read = ath11k_read_extd_rx_stats,
 	.write = ath11k_write_extd_rx_stats,
 	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static int ath11k_fill_bp_stats(struct ath11k_base *ab,
Signature · 1 line
2.17.1
author
#65 lore raw

PATCH 66/117 ath11k: set fops_pktlog_filter.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
---
 drivers/net/wireless/ath/ath11k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/debug.c +2 -1
index 8494ddbef7e7..da085c0a01ed 100644
@@ -1123,7 +1123,8 @@ static ssize_t ath11k_read_pktlog_filter(struct file *file,
 static const struct file_operations fops_pktlog_filter = {
 	.read = ath11k_read_pktlog_filter,
 	.write = ath11k_write_pktlog_filter,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t ath11k_write_simulate_radar(struct file *file,
Signature · 1 line
2.17.1
author
#66 lore raw

PATCH 67/117 ath11k: set fops_simulate_radar.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
---
 drivers/net/wireless/ath/ath11k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/debug.c +2 -1
index da085c0a01ed..c3475ece2720 100644
@@ -1143,7 +1143,8 @@ static ssize_t ath11k_write_simulate_radar(struct file *file,
 
 static const struct file_operations fops_simulate_radar = {
 	.write = ath11k_write_simulate_radar,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 int ath11k_debug_register(struct ath11k *ar)
Signature · 1 line
2.17.1
author
#67 lore raw

PATCH 68/117 ath10k: set fops_pktlog_filter.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 90174455ae05 ("ath10k: add support to configure pktlog filter")
---
 drivers/net/wireless/ath/ath10k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/debug.c +2 -1
index e8250a665433..78bbb0380323 100644
@@ -1911,7 +1911,8 @@ static ssize_t ath10k_read_pktlog_filter(struct file *file, char __user *ubuf,
 static const struct file_operations fops_pktlog_filter = {
 	.read = ath10k_read_pktlog_filter,
 	.write = ath10k_write_pktlog_filter,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t ath10k_write_quiet_period(struct file *file,
Signature · 1 line
2.17.1
author
#68 lore raw

PATCH 69/117 ath10k: set fops_quiet_period.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 63fb32df9786 ("ath10k: add debugfs entry to configure quiet period")
---
 drivers/net/wireless/ath/ath10k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/debug.c +2 -1
index 78bbb0380323..9789ef98d25b 100644
@@ -1956,7 +1956,8 @@ static ssize_t ath10k_read_quiet_period(struct file *file, char __user *ubuf,
 static const struct file_operations fops_quiet_period = {
 	.read = ath10k_read_quiet_period,
 	.write = ath10k_write_quiet_period,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t ath10k_write_btcoex(struct file *file,
Signature · 1 line
2.17.1
author
#69 lore raw

PATCH 70/117 ath10k: set fops_btcoex.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 844fa5722712 ("ath10k: debugfs file to enable Bluetooth coexistence feature")
---
 drivers/net/wireless/ath/ath10k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/debug.c +2 -1
index 9789ef98d25b..d1f8cf0d5604 100644
@@ -2041,7 +2041,8 @@ static ssize_t ath10k_read_btcoex(struct file *file, char __user *ubuf,
 static const struct file_operations fops_btcoex = {
 	.read = ath10k_read_btcoex,
 	.write = ath10k_write_btcoex,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t ath10k_write_enable_extd_tx_stats(struct file *file,
Signature · 1 line
2.17.1
author
#70 lore raw

PATCH 71/117 ath10k: set fops_enable_extd_tx_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 348cd95c8196 ("ath10k: add debugfs entry to enable extended tx stats")
---
 drivers/net/wireless/ath/ath10k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/debug.c +2 -1
index d1f8cf0d5604..8829232e2b34 100644
@@ -2097,7 +2097,8 @@ static ssize_t ath10k_read_enable_extd_tx_stats(struct file *file,
 static const struct file_operations fops_enable_extd_tx_stats = {
 	.read = ath10k_read_enable_extd_tx_stats,
 	.write = ath10k_write_enable_extd_tx_stats,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t ath10k_write_peer_stats(struct file *file,
Signature · 1 line
2.17.1
author
#71 lore raw

PATCH 72/117 ath10k: set fops_peer_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes cc61a1bbbc0e ("ath10k: enable debugfs provision to enable Peer Stats feature")
---
 drivers/net/wireless/ath/ath10k/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/debug.c +2 -1
index 8829232e2b34..afde3d8048e8 100644
@@ -2167,7 +2167,8 @@ static ssize_t ath10k_read_peer_stats(struct file *file, char __user *ubuf,
 static const struct file_operations fops_peer_stats = {
 	.read = ath10k_read_peer_stats,
 	.write = ath10k_write_peer_stats,
-	.open = simple_open
+	.open = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t ath10k_debug_fw_checksums_read(struct file *file,
Signature · 1 line
2.17.1
author
#72 lore raw

PATCH 73/117 wcn36xx: set fops_wcn36xx_bmps.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
---
 drivers/net/wireless/ath/wcn36xx/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wcn36xx/debug.c +1 -0
index 389b5e7129a6..6bd874c0a9f5 100644
@@ -93,6 +93,7 @@ static const struct file_operations fops_wcn36xx_bmps = {
 	.open = simple_open,
 	.read  =       read_file_bool_bmps,
 	.write =       write_file_bool_bmps,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t write_file_dump(struct file *file,
Signature · 1 line
2.17.1
author
#73 lore raw

PATCH 74/117 wcn36xx: set fops_wcn36xx_dump.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
---
 drivers/net/wireless/ath/wcn36xx/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wcn36xx/debug.c +1 -0
index 6bd874c0a9f5..4b78be5c67e8 100644
@@ -135,6 +135,7 @@ static ssize_t write_file_dump(struct file *file,
 static const struct file_operations fops_wcn36xx_dump = {
 	.open = simple_open,
 	.write =       write_file_dump,
+	.owner = THIS_MODULE,
 };
 
 #define ADD_FILE(name, mode, fop, priv_data)		\
Signature · 1 line
2.17.1
author
#74 lore raw

PATCH 75/117 wireless: set fops_ioblob.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 2be7d22f0625 ("wireless: add new wil6210 802.11ad 60GHz driver")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 11d0c79e9056..c155baa3655f 100644
@@ -678,6 +678,7 @@ static const struct file_operations fops_ioblob = {
 	.read =		wil_read_file_ioblob,
 	.open =		simple_open,
 	.llseek =	default_llseek,
+	.owner =	THIS_MODULE,
 };
 
 static
Signature · 1 line
2.17.1
author
#75 lore raw

PATCH 76/117 wil6210: set fops_rxon.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 0b39aaf2f203 ("wil6210: Tx mgmt frame from debugfs")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index c155baa3655f..914954cb9b0b 100644
@@ -730,6 +730,7 @@ static ssize_t wil_write_file_rxon(struct file *file, const char __user *buf,
 static const struct file_operations fops_rxon = {
 	.write = wil_write_file_rxon,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static ssize_t wil_write_file_rbufcap(struct file *file,
Signature · 1 line
2.17.1
author
#76 lore raw

PATCH 77/117 wil6210: set fops_rbufcap.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes c5b3a6582b1e ("wil6210: Add support for setting RBUFCAP configuration")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 914954cb9b0b..6c00d57e743a 100644
@@ -769,6 +769,7 @@ static ssize_t wil_write_file_rbufcap(struct file *file,
 static const struct file_operations fops_rbufcap = {
 	.write = wil_write_file_rbufcap,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 /* block ack control, write:
Signature · 1 line
2.17.1
author
#77 lore raw

PATCH 78/117 wil6210: set fops_back.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 3277213feb1b ("wil6210: ADDBA/DELBA flows")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 6c00d57e743a..57f2d6006fb0 100644
@@ -868,6 +868,7 @@ static const struct file_operations fops_back = {
 	.read = wil_read_back,
 	.write = wil_write_back,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 /* pmc control, write:
Signature · 1 line
2.17.1
author
#78 lore raw

PATCH 79/117 wil6210: set fops_pmccfg.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes dc16427bbe65 ("wil6210: Add pmc debug mechanism memory management")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 57f2d6006fb0..8c37af09a84e 100644
@@ -945,6 +945,7 @@ static const struct file_operations fops_pmccfg = {
 	.read = wil_read_pmccfg,
 	.write = wil_write_pmccfg,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static const struct file_operations fops_pmcdata = {
Signature · 1 line
2.17.1
author
#79 lore raw

PATCH 80/117 wil6210: set fops_pmcdata.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes dc16427bbe65 ("wil6210: Add pmc debug mechanism memory management")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 8c37af09a84e..6f1603304d52 100644
@@ -952,6 +952,7 @@ static const struct file_operations fops_pmcdata = {
 	.open		= simple_open,
 	.read		= wil_pmc_read,
 	.llseek		= wil_pmc_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static int wil_pmcring_seq_open(struct inode *inode, struct file *file)
Signature · 1 line
2.17.1
author
#80 lore raw

PATCH 81/117 wil6210: set fops_pmcring.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 977c45ab5f41 ("wil6210: add debugfs to show PMC ring content")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 6f1603304d52..4891cb7aaea4 100644
@@ -965,6 +965,7 @@ static const struct file_operations fops_pmcring = {
 	.release	= single_release,
 	.read		= seq_read,
 	.llseek		= seq_lseek,
+	.owner		= THIS_MODULE,
 };
 
 /*---tx_mgmt---*/
Signature · 1 line
2.17.1
author
#81 lore raw

PATCH 82/117 wil6210: set fops_txmgmt.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 0b39aaf2f203 ("wil6210: Tx mgmt frame from debugfs")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 4891cb7aaea4..182185a34071 100644
@@ -1003,6 +1003,7 @@ static ssize_t wil_write_file_txmgmt(struct file *file, const char __user *buf,
 static const struct file_operations fops_txmgmt = {
 	.write = wil_write_file_txmgmt,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 /* Write WMI command (w/o mbox header) to this file to send it
Signature · 1 line
2.17.1
author
#82 lore raw

PATCH 83/117 wil6210: set fops_wmi.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes ff974e408334 ("wil6210: debugfs interface to send raw WMI command")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 182185a34071..6d9a1de2974c 100644
@@ -1047,6 +1047,7 @@ static ssize_t wil_write_file_wmi(struct file *file, const char __user *buf,
 static const struct file_operations fops_wmi = {
 	.write = wil_write_file_wmi,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 static void wil_seq_print_skb(struct seq_file *s, struct sk_buff *skb)
Signature · 1 line
2.17.1
author
#83 lore raw

PATCH 84/117 wil6210: set fops_recovery.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes c33407a8c504 ("wil6210: manual FW error recovery mode")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 6d9a1de2974c..e3ecdcb58392 100644
@@ -1567,6 +1567,7 @@ static const struct file_operations fops_recovery = {
 	.read = wil_read_file_recovery,
 	.write = wil_write_file_recovery,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 /*---------Station matrix------------*/
Signature · 1 line
2.17.1
author
#84 lore raw

PATCH 85/117 wil6210: set fops_tx_latency.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes a24a3d6abb97 ("wil6210: add TX latency statistics")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index e3ecdcb58392..67b2248e6b36 100644
@@ -1846,6 +1846,7 @@ static const struct file_operations fops_tx_latency = {
 	.read		= seq_read,
 	.write		= wil_tx_latency_write,
 	.llseek		= seq_lseek,
+	.owner		= THIS_MODULE,
 };
 
 static void wil_link_stats_print_basic(struct wil6210_vif *vif,
Signature · 1 line
2.17.1
author
#85 lore raw

PATCH 86/117 wil6210: set fops_link_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 0c936b3c9633 ("wil6210: add support for link statistics")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 67b2248e6b36..a2dce1ed9d0d 100644
@@ -2010,6 +2010,7 @@ static const struct file_operations fops_link_stats = {
 	.read		= seq_read,
 	.write		= wil_link_stats_write,
 	.llseek		= seq_lseek,
+	.owner		= THIS_MODULE,
 };
 
 static int
Signature · 1 line
2.17.1
author
#86 lore raw

PATCH 87/117 wil6210: set fops_link_stats_global.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 0c936b3c9633 ("wil6210: add support for link statistics")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index a2dce1ed9d0d..afbe30989ee4 100644
@@ -2065,6 +2065,7 @@ static const struct file_operations fops_link_stats_global = {
 	.read		= seq_read,
 	.write		= wil_link_stats_global_write,
 	.llseek		= seq_lseek,
+	.owner		= THIS_MODULE,
 };
 
 static ssize_t wil_read_file_led_cfg(struct file *file, char __user *user_buf,
Signature · 1 line
2.17.1
author
#87 lore raw

PATCH 88/117 wil6210: set fops_led_cfg.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 10d599ad84a1 ("wil6210: add support for device led configuration")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index afbe30989ee4..54285e5420f6 100644
@@ -2113,6 +2113,7 @@ static const struct file_operations fops_led_cfg = {
 	.read = wil_read_file_led_cfg,
 	.write = wil_write_file_led_cfg,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 /* led_blink_time, write:
Signature · 1 line
2.17.1
author
#88 lore raw

PATCH 89/117 wil6210: set fops_led_blink_time.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 10d599ad84a1 ("wil6210: add support for device led configuration")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 54285e5420f6..c4c159656eb6 100644
@@ -2179,6 +2179,7 @@ static const struct file_operations fops_led_blink_time = {
 	.read = wil_read_led_blink_time,
 	.write = wil_write_led_blink_time,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 /*---------FW capabilities------------*/
Signature · 1 line
2.17.1
author
#89 lore raw

PATCH 90/117 wil6210: set fops_fw_capabilities.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 12bace75704e ("wil6210: extract firmware capabilities from FW file")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index c4c159656eb6..b147b97c0d5e 100644
@@ -2204,6 +2204,7 @@ static const struct file_operations fops_fw_capabilities = {
 	.release	= single_release,
 	.read		= seq_read,
 	.llseek		= seq_lseek,
+	.owner		= THIS_MODULE,
 };
 
 /*---------FW version------------*/
Signature · 1 line
2.17.1
author
#90 lore raw

PATCH 91/117 wil6210: set fops_fw_version.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 13cd9f758a55 ("wil6210: extract firmware version from file header")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index b147b97c0d5e..c1a43de9a630 100644
@@ -2231,6 +2231,7 @@ static const struct file_operations fops_fw_version = {
 	.release	= single_release,
 	.read		= seq_read,
 	.llseek		= seq_lseek,
+	.owner		= THIS_MODULE,
 };
 
 /*---------suspend_stats---------*/
Signature · 1 line
2.17.1
author
#91 lore raw

PATCH 92/117 wil6210: set fops_suspend_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes fe9ee51e6a43 ("wil6210: add support for PCIe D3hot in system suspend")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index c1a43de9a630..4ac558f95586 100644
@@ -2292,6 +2292,7 @@ static const struct file_operations fops_suspend_stats = {
 	.read = wil_read_suspend_stats,
 	.write = wil_write_suspend_stats,
 	.open  = simple_open,
+	.owner = THIS_MODULE,
 };
 
 /*---------compressed_rx_status---------*/
Signature · 1 line
2.17.1
author
#92 lore raw

PATCH 93/117 wil6210: set fops_compressed_rx_status.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 96c93589e2df ("wil6210: initialize TX and RX enhanced DMA rings")
---
 drivers/net/wireless/ath/wil6210/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/wil6210/debugfs.c +1 -0
index 4ac558f95586..7540c49aba3f 100644
@@ -2347,6 +2347,7 @@ static const struct file_operations fops_compressed_rx_status = {
 	.read = seq_read,
 	.write = wil_compressed_rx_status_write,
 	.llseek	= seq_lseek,
+	.owner = THIS_MODULE,
 };
 
 /*----------------*/
Signature · 1 line
2.17.1
author
#93 lore raw

PATCH 94/117 cw1200: set fops_wsm_dumps.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
---
 drivers/net/wireless/st/cw1200/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/st/cw1200/debug.c +1 -0
index 8686929c70df..bcb8757c34ae 100644
@@ -355,6 +355,7 @@ static const struct file_operations fops_wsm_dumps = {
 	.open = simple_open,
 	.write = cw1200_wsm_dumps,
 	.llseek = default_llseek,
+	.owner = THIS_MODULE,
 };
 
 int cw1200_debug_init(struct cw1200_common *priv)
Signature · 1 line
2.17.1
author
#94 lore raw

PATCH 95/117 brcmfmac: set bus_reset_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 2f8c8e62cd50 ("brcmfmac: add "reset" debugfs entry for testing reset")
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +1 -0
index f89010a81ffb..f3d358a1aa07 100644
@@ -1184,6 +1184,7 @@ static const struct file_operations bus_reset_fops = {
 	.open	= simple_open,
 	.llseek	= no_llseek,
 	.write	= bus_reset_write,
+	.owner = THIS_MODULE,
 };
 
 static int brcmf_bus_started(struct brcmf_pub *drvr, struct cfg80211_ops *ops)
Signature · 1 line
2.17.1
author
#95 lore raw

PATCH 96/117 b43legacy: set B43legacy_DEBUGFS_FOPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices")
---
 drivers/net/wireless/broadcom/b43legacy/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/broadcom/b43legacy/debugfs.c +1 -0
index e7e4293c01f2..7c6e7cfeb822 100644
@@ -318,6 +318,7 @@ static ssize_t b43legacy_debugfs_write(struct file *file,
 			.read	= b43legacy_debugfs_read,		\
 			.write	= b43legacy_debugfs_write,		\
 			.llseek = generic_file_llseek,			\
+			.owner = THIS_MODULE,				\
 		},						\
 		.file_struct_offset = offsetof(struct b43legacy_dfsentry, \
 					       file_##name),	\
Signature · 1 line
2.17.1
author
#96 lore raw

PATCH 97/117 b43: set B43_DEBUGFS_FOPS.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e4d6b7951812 ("[B43]: add mac80211-based driver for modern BCM43xx devices")
---
 drivers/net/wireless/broadcom/b43/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/broadcom/b43/debugfs.c +1 -0
index 89a25aefb327..c0d51cb57b27 100644
@@ -611,6 +611,7 @@ static ssize_t b43_debugfs_write(struct file *file,
 			.read	= b43_debugfs_read,		\
 			.write	= b43_debugfs_write,		\
 			.llseek = generic_file_llseek,		\
+			.owner = THIS_MODULE,			\
 		},						\
 		.file_struct_offset = offsetof(struct b43_dfsentry, \
 					       file_##name),	\
Signature · 1 line
2.17.1
author
#97 lore raw

PATCH 98/117 wireless: mwifiex: set .owner to THIS_MODULE in debugfs.c

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 5e6e3a92b9a4 ("wireless: mwifiex: initial commit for Marvell mwifiex driver")
---
 drivers/net/wireless/marvell/mwifiex/debugfs.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/wireless/marvell/mwifiex/debugfs.c +3 -0
index dded92db1f37..641113260439 100644
@@ -931,18 +931,21 @@ static const struct file_operations mwifiex_dfs_##name##_fops = {       \
 	.read = mwifiex_##name##_read,                                  \
 	.write = mwifiex_##name##_write,                                \
 	.open = simple_open,                                            \
+	.owner = THIS_MODULE,						\
 };
 
 #define MWIFIEX_DFS_FILE_READ_OPS(name)                                 \
 static const struct file_operations mwifiex_dfs_##name##_fops = {       \
 	.read = mwifiex_##name##_read,                                  \
 	.open = simple_open,                                            \
+	.owner = THIS_MODULE,						\
 };
 
 #define MWIFIEX_DFS_FILE_WRITE_OPS(name)                                \
 static const struct file_operations mwifiex_dfs_##name##_fops = {       \
 	.write = mwifiex_##name##_write,                                \
 	.open = simple_open,                                            \
+	.owner = THIS_MODULE,						\
 };
 
 
Signature · 1 line
2.17.1
author
#98 lore raw

PATCH 99/117 net: mt7601u: set fops_ampdu_stat.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes c869f77d6abb ("add mt7601u driver")
---
 drivers/net/wireless/mediatek/mt7601u/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt7601u/debugfs.c +1 -0
index 300242bce799..03f7235a90ab 100644
@@ -84,6 +84,7 @@ static const struct file_operations fops_ampdu_stat = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static int
Signature · 1 line
2.17.1
author
#99 lore raw

PATCH 100/117 net: mt7601u: set fops_eeprom_param.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes c869f77d6abb ("add mt7601u driver")
---
 drivers/net/wireless/mediatek/mt7601u/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt7601u/debugfs.c +1 -0
index 03f7235a90ab..3edf153dc68c 100644
@@ -143,6 +143,7 @@ static const struct file_operations fops_eeprom_param = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 void mt7601u_init_debugfs(struct mt7601u_dev *dev)
Signature · 1 line
2.17.1
author
#100 lore raw

PATCH 101/117 mt76: mt7615: set fops_ampdu_stat.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 75601194a1c8 ("mt76: mt7615: collect aggregation stats")
---
 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c +1 -0
index 88931658a9fb..1770fa51f562 100644
@@ -246,6 +246,7 @@ static const struct file_operations fops_ampdu_stat = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static void
Signature · 1 line
2.17.1
author
#101 lore raw

PATCH 102/117 mt76: mt7603: set fops_ampdu_stat.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 5a8d4678e02b ("mt76: mt7603: collect aggregation stats")
---
 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c +1 -0
index 8ce6880b2bb8..af6fb67a6f7b 100644
@@ -102,6 +102,7 @@ static const struct file_operations fops_ampdu_stat = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 void mt7603_init_debugfs(struct mt7603_dev *dev)
Signature · 1 line
2.17.1
author
#102 lore raw

PATCH 103/117 mt76: set fops_ampdu_stat.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 7bc04215a66b ("mt76: add driver code for MT76x2e")
---
 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c +2 -0
index ff448a1ad4e3..7d7247a9b3ec 100644
@@ -53,6 +53,7 @@ static const struct file_operations fops_ampdu_stat = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static int
@@ -92,6 +93,7 @@ static const struct file_operations fops_dfs_stat = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static int read_agc(struct seq_file *file, void *data)
Signature · 1 line
2.17.1
author
#103 lore raw

PATCH 104/117 mt76: set fops_tx_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets")
---
 drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +1 -0
index 38f473d587c9..31ac338c5526 100644
@@ -234,6 +234,7 @@ static const struct file_operations fops_tx_stats = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 static int mt7915_read_temperature(struct seq_file *s, void *data)
Signature · 1 line
2.17.1
author
#104 lore raw

PATCH 105/117 mt76: mt7915: set fops_sta_stats.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes ec9742a8f38e ("mt76: mt7915: add .sta_add_debugfs support")
---
 drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +1 -0
index 31ac338c5526..149686906ad4 100644
@@ -462,6 +462,7 @@ static const struct file_operations fops_sta_stats = {
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
+	.owner = THIS_MODULE,
 };
 
 void mt7915_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
Signature · 1 line
2.17.1
author
#105 lore raw

PATCH 106/117 Bluetooth: set dut_mode_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 4b4148e9acc1 ("Bluetooth: Add support for setting DUT mode")
---
 net/bluetooth/hci_core.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_core.c +1 -0
index 68bfe57b6625..5c2e65b00e68 100644
@@ -116,6 +116,7 @@ static const struct file_operations dut_mode_fops = {
 	.read		= dut_mode_read,
 	.write		= dut_mode_write,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static ssize_t vendor_diag_read(struct file *file, char __user *user_buf,
Signature · 1 line
2.17.1
author
#106 lore raw

PATCH 107/117 Bluetooth: set vendor_diag_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 4b4113d6dbdb ("Bluetooth: Add debugfs entry for setting vendor diagnostic mode")
---
 net/bluetooth/hci_core.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_core.c +1 -0
index 5c2e65b00e68..6778114f6615 100644
@@ -173,6 +173,7 @@ static const struct file_operations vendor_diag_fops = {
 	.read		= vendor_diag_read,
 	.write		= vendor_diag_write,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static void hci_debugfs_create_basic(struct hci_dev *hdev)
Signature · 1 line
2.17.1
author
#107 lore raw

PATCH 108/117 Bluetooth: set force_bredr_smp_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 300acfdec916 ("Bluetooth: Introduce force_bredr_smp debugfs option for testing")
---
 net/bluetooth/smp.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/smp.c +1 -0
index bf4bef13d935..9b96a2d85e86 100644
@@ -3407,6 +3407,7 @@ static const struct file_operations force_bredr_smp_fops = {
 	.read		= force_bredr_smp_read,
 	.write		= force_bredr_smp_write,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 int smp_register(struct hci_dev *hdev)
Signature · 1 line
2.17.1
author
#108 lore raw

PATCH 109/117 Bluetooth: set test_smp_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 64dd374eac15 ("Bluetooth: Export SMP selftest result in debugfs")
---
 net/bluetooth/smp.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/smp.c +1 -0
index 9b96a2d85e86..3b91f927aab5 100644
@@ -3752,6 +3752,7 @@ static const struct file_operations test_smp_fops = {
 	.open		= simple_open,
 	.read		= test_smp_read,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static int __init run_selftests(struct crypto_shash *tfm_cmac,
Signature · 1 line
2.17.1
author
#109 lore raw

PATCH 110/117 Bluetooth: set use_debug_keys_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 0886aea6acd2 ("Bluetooth: Expose debug keys usage setting via debugfs")
---
 net/bluetooth/hci_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_debugfs.c +1 -0
index 5e8af2658e44..cdf19e494c31 100644
@@ -284,6 +284,7 @@ static const struct file_operations use_debug_keys_fops = {
 	.open		= simple_open,
 	.read		= use_debug_keys_read,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf,
Signature · 1 line
2.17.1
author
#110 lore raw

PATCH 111/117 Bluetooth: set sc_only_mode_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 134c2a89af22 ("Bluetooth: Add debugfs entry to show Secure Connections Only mode")
---
 net/bluetooth/hci_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_debugfs.c +1 -0
index cdf19e494c31..b8e297e71692 100644
@@ -303,6 +303,7 @@ static const struct file_operations sc_only_mode_fops = {
 	.open		= simple_open,
 	.read		= sc_only_mode_read,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 DEFINE_INFO_ATTRIBUTE(hardware_info, hw_info);
Signature · 1 line
2.17.1
author
#111 lore raw

PATCH 112/117 Bluetooth: set DEFINE_QUIRK_ATTRIBUTE.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes b55d1abf568c ("Bluetooth: Expose quirks through debugfs")
---
 net/bluetooth/hci_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_debugfs.c +1 -0
index b8e297e71692..4a26cb544635 100644
@@ -71,6 +71,7 @@ static const struct file_operations __name ## _fops = {			      \
 	.read		= __name ## _read,				      \
 	.write		= __name ## _write,				      \
 	.llseek		= default_llseek,				      \
+	.owner		= THIS_MODULE,					      \
 }									      \
 
 #define DEFINE_INFO_ATTRIBUTE(__name, __field)				      \
Signature · 1 line
2.17.1
author
#112 lore raw

PATCH 113/117 Bluetooth: set ssp_debug_mode_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 6e07231a80de ("Bluetooth: Expose Secure Simple Pairing debug mode setting in debugfs")
---
 net/bluetooth/hci_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_debugfs.c +1 -0
index 4a26cb544635..d162736a5856 100644
@@ -441,6 +441,7 @@ static const struct file_operations ssp_debug_mode_fops = {
 	.open		= simple_open,
 	.read		= ssp_debug_mode_read,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static int auto_accept_delay_set(void *data, u64 val)
Signature · 1 line
2.17.1
author
#113 lore raw

PATCH 114/117 Bluetooth: set force_static_address_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes ac345813c4ac ("Bluetooth: Expose current identity information in debugfs")
---
 net/bluetooth/hci_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_debugfs.c +1 -0
index d162736a5856..6ea692a3d4a8 100644
@@ -730,6 +730,7 @@ static const struct file_operations force_static_address_fops = {
 	.read		= force_static_address_read,
 	.write		= force_static_address_write,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static int white_list_show(struct seq_file *f, void *ptr)
Signature · 1 line
2.17.1
author
#114 lore raw

PATCH 115/117 Bluetooth: set force_no_mitm_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes c2aa30db744d ("Bluetooth: debugfs option to unset MITM flag")
---
 net/bluetooth/hci_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_debugfs.c +1 -0
index 6ea692a3d4a8..c9a074da16dd 100644
@@ -1122,6 +1122,7 @@ static const struct file_operations force_no_mitm_fops = {
 	.read		= force_no_mitm_read,
 	.write		= force_no_mitm_write,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 DEFINE_QUIRK_ATTRIBUTE(quirk_strict_duplicate_filter,
Signature · 1 line
2.17.1
author
#115 lore raw

PATCH 116/117 Bluetooth: 6LoWPAN: set lowpan_control_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 6b8d4a6a0314 ("Bluetooth: 6LoWPAN: Use connected oriented channel instead of fixed one")
---
 net/bluetooth/6lowpan.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/6lowpan.c +1 -0
index cff4944d5b66..0936184f0813 100644
@@ -1214,6 +1214,7 @@ static const struct file_operations lowpan_control_fops = {
 	.write		= lowpan_control_write,
 	.llseek		= seq_lseek,
 	.release	= single_release,
+	.owner		= THIS_MODULE,
 };
 
 static void disconnect_devices(void)
Signature · 1 line
2.17.1
author
#116 lore raw

PATCH 117/117 Bluetooth: set test_ecdh_fops.owner to THIS_MODULE

In reply to Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Fixes 6de50f9fdb60 ("Bluetooth: Export ECDH selftest result in debugfs")
---
 net/bluetooth/selftest.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/selftest.c +1 -0
index f71c6fa65fb3..445ea247061b 100644
@@ -194,6 +194,7 @@ static const struct file_operations test_ecdh_fops = {
 	.open		= simple_open,
 	.read		= test_ecdh_read,
 	.llseek		= default_llseek,
+	.owner		= THIS_MODULE,
 };
 
 static int __init test_ecdh(void)
Signature · 1 line
2.17.1
maintainer
#117 lore raw
In reply to Taehee Yoo
Quoted 4 lines · Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Wow, 117 practically identical patches? No thanks ...

Can you merge the ones that belong to a single driver?

net/mac80211/ -> mac80211
net/wireless/ -> cfg80211

etc.

I don't think we need more than one patch for each driver/subsystem.

johannes

#118 lore raw
Quoted 7 lines · Johannes Berg
Quoted 4 lines · Taehee Yoo

If THIS_MODULE is not set, the module would be removed while debugfs is being used.
It eventually makes kernel panic.

Wow, 117 practically identical patches? No thanks ...

Quoted 8 lines

Can you merge the ones that belong to a single driver?

net/mac80211/ -> mac80211
net/wireless/ -> cfg80211

etc.

I don't think we need more than one patch for each driver/subsystem.

Yes, one patch per driver is much better. And never send 100 patches in one go, I will automatically drop these even without looking.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches