aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-06-26 07:46:20 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-07-16 06:12:55 -0400
commit2be01fa8f5cd6feffb6c50dae20d846dad8b37ba (patch)
treed18ffad4c343f11e1e1c2e1cd93df0f4c128e925
parent313b0a294f8cc92be4387186e8c9eef59c1c198a (diff)
iwlwifi: remove forward debugfs function declarations
There's no need to have 'forward' debugfs function declarations as part of the macros because the macros are always used after the static functions are defined already, so remove them. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/debugfs.c15
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/trans.c14
2 files changed, 0 insertions, 29 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/iwlwifi/dvm/debugfs.c
index d5329489245a..d94f8ab15004 100644
--- a/drivers/net/wireless/iwlwifi/dvm/debugfs.c
+++ b/drivers/net/wireless/iwlwifi/dvm/debugfs.c
@@ -69,19 +69,7 @@
69} while (0) 69} while (0)
70 70
71/* file operation */ 71/* file operation */
72#define DEBUGFS_READ_FUNC(name) \
73static ssize_t iwl_dbgfs_##name##_read(struct file *file, \
74 char __user *user_buf, \
75 size_t count, loff_t *ppos);
76
77#define DEBUGFS_WRITE_FUNC(name) \
78static ssize_t iwl_dbgfs_##name##_write(struct file *file, \
79 const char __user *user_buf, \
80 size_t count, loff_t *ppos);
81
82
83#define DEBUGFS_READ_FILE_OPS(name) \ 72#define DEBUGFS_READ_FILE_OPS(name) \
84 DEBUGFS_READ_FUNC(name); \
85static const struct file_operations iwl_dbgfs_##name##_ops = { \ 73static const struct file_operations iwl_dbgfs_##name##_ops = { \
86 .read = iwl_dbgfs_##name##_read, \ 74 .read = iwl_dbgfs_##name##_read, \
87 .open = simple_open, \ 75 .open = simple_open, \
@@ -89,7 +77,6 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \
89}; 77};
90 78
91#define DEBUGFS_WRITE_FILE_OPS(name) \ 79#define DEBUGFS_WRITE_FILE_OPS(name) \
92 DEBUGFS_WRITE_FUNC(name); \
93static const struct file_operations iwl_dbgfs_##name##_ops = { \ 80static const struct file_operations iwl_dbgfs_##name##_ops = { \
94 .write = iwl_dbgfs_##name##_write, \ 81 .write = iwl_dbgfs_##name##_write, \
95 .open = simple_open, \ 82 .open = simple_open, \
@@ -98,8 +85,6 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \
98 85
99 86
100#define DEBUGFS_READ_WRITE_FILE_OPS(name) \ 87#define DEBUGFS_READ_WRITE_FILE_OPS(name) \
101 DEBUGFS_READ_FUNC(name); \
102 DEBUGFS_WRITE_FUNC(name); \
103static const struct file_operations iwl_dbgfs_##name##_ops = { \ 88static const struct file_operations iwl_dbgfs_##name##_ops = { \
104 .write = iwl_dbgfs_##name##_write, \ 89 .write = iwl_dbgfs_##name##_write, \
105 .read = iwl_dbgfs_##name##_read, \ 90 .read = iwl_dbgfs_##name##_read, \
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c
index 82194e8daee4..bc908d39dac1 100644
--- a/drivers/net/wireless/iwlwifi/pcie/trans.c
+++ b/drivers/net/wireless/iwlwifi/pcie/trans.c
@@ -1113,18 +1113,7 @@ void iwl_pcie_dump_csr(struct iwl_trans *trans)
1113} while (0) 1113} while (0)
1114 1114
1115/* file operation */ 1115/* file operation */
1116#define DEBUGFS_READ_FUNC(name) \
1117static ssize_t iwl_dbgfs_##name##_read(struct file *file, \
1118 char __user *user_buf, \
1119 size_t count, loff_t *ppos);
1120
1121#define DEBUGFS_WRITE_FUNC(name) \
1122static ssize_t iwl_dbgfs_##name##_write(struct file *file, \
1123 const char __user *user_buf, \
1124 size_t count, loff_t *ppos);
1125
1126#define DEBUGFS_READ_FILE_OPS(name) \ 1116#define DEBUGFS_READ_FILE_OPS(name) \
1127 DEBUGFS_READ_FUNC(name); \
1128static const struct file_operations iwl_dbgfs_##name##_ops = { \ 1117static const struct file_operations iwl_dbgfs_##name##_ops = { \
1129 .read = iwl_dbgfs_##name##_read, \ 1118 .read = iwl_dbgfs_##name##_read, \
1130 .open = simple_open, \ 1119 .open = simple_open, \
@@ -1132,7 +1121,6 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \
1132}; 1121};
1133 1122
1134#define DEBUGFS_WRITE_FILE_OPS(name) \ 1123#define DEBUGFS_WRITE_FILE_OPS(name) \
1135 DEBUGFS_WRITE_FUNC(name); \
1136static const struct file_operations iwl_dbgfs_##name##_ops = { \ 1124static const struct file_operations iwl_dbgfs_##name##_ops = { \
1137 .write = iwl_dbgfs_##name##_write, \ 1125 .write = iwl_dbgfs_##name##_write, \
1138 .open = simple_open, \ 1126 .open = simple_open, \
@@ -1140,8 +1128,6 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \
1140}; 1128};
1141 1129
1142#define DEBUGFS_READ_WRITE_FILE_OPS(name) \ 1130#define DEBUGFS_READ_WRITE_FILE_OPS(name) \
1143 DEBUGFS_READ_FUNC(name); \
1144 DEBUGFS_WRITE_FUNC(name); \
1145static const struct file_operations iwl_dbgfs_##name##_ops = { \ 1131static const struct file_operations iwl_dbgfs_##name##_ops = { \
1146 .write = iwl_dbgfs_##name##_write, \ 1132 .write = iwl_dbgfs_##name##_write, \
1147 .read = iwl_dbgfs_##name##_read, \ 1133 .read = iwl_dbgfs_##name##_read, \