forked from Minki/linux
mac80211: remove trailing semicolon in macro definitions
The macro uses should have (and already have) the semicolon. Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20201127193842.2876355-1-trix@redhat.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
d7832c7187
commit
84674ef4d6
@ -53,7 +53,7 @@ static const struct file_operations name## _ops = { \
|
||||
DEBUGFS_READONLY_FILE_OPS(name)
|
||||
|
||||
#define DEBUGFS_ADD(name) \
|
||||
debugfs_create_file(#name, 0400, phyd, local, &name## _ops);
|
||||
debugfs_create_file(#name, 0400, phyd, local, &name## _ops)
|
||||
|
||||
#define DEBUGFS_ADD_MODE(name, mode) \
|
||||
debugfs_create_file(#name, mode, phyd, local, &name## _ops);
|
||||
|
@ -319,7 +319,7 @@ KEY_OPS(key);
|
||||
|
||||
#define DEBUGFS_ADD(name) \
|
||||
debugfs_create_file(#name, 0400, key->debugfs.dir, \
|
||||
key, &key_##name##_ops);
|
||||
key, &key_##name##_ops)
|
||||
#define DEBUGFS_ADD_W(name) \
|
||||
debugfs_create_file(#name, 0600, key->debugfs.dir, \
|
||||
key, &key_##name##_ops);
|
||||
|
@ -642,7 +642,7 @@ IEEE80211_IF_FILE(dot11MeshConnectedToAuthServer,
|
||||
|
||||
#define DEBUGFS_ADD_MODE(name, mode) \
|
||||
debugfs_create_file(#name, mode, sdata->vif.debugfs_dir, \
|
||||
sdata, &name##_ops);
|
||||
sdata, &name##_ops)
|
||||
|
||||
#define DEBUGFS_ADD(name) DEBUGFS_ADD_MODE(name, 0400)
|
||||
|
||||
@ -711,7 +711,7 @@ static void add_mesh_stats(struct ieee80211_sub_if_data *sdata)
|
||||
struct dentry *dir = debugfs_create_dir("mesh_stats",
|
||||
sdata->vif.debugfs_dir);
|
||||
#define MESHSTATS_ADD(name)\
|
||||
debugfs_create_file(#name, 0400, dir, sdata, &name##_ops);
|
||||
debugfs_create_file(#name, 0400, dir, sdata, &name##_ops)
|
||||
|
||||
MESHSTATS_ADD(fwded_mcast);
|
||||
MESHSTATS_ADD(fwded_unicast);
|
||||
@ -728,7 +728,7 @@ static void add_mesh_config(struct ieee80211_sub_if_data *sdata)
|
||||
sdata->vif.debugfs_dir);
|
||||
|
||||
#define MESHPARAMS_ADD(name) \
|
||||
debugfs_create_file(#name, 0600, dir, sdata, &name##_ops);
|
||||
debugfs_create_file(#name, 0600, dir, sdata, &name##_ops)
|
||||
|
||||
MESHPARAMS_ADD(dot11MeshMaxRetries);
|
||||
MESHPARAMS_ADD(dot11MeshRetryTimeout);
|
||||
|
@ -985,7 +985,7 @@ STA_OPS(he_capa);
|
||||
|
||||
#define DEBUGFS_ADD(name) \
|
||||
debugfs_create_file(#name, 0400, \
|
||||
sta->debugfs_dir, sta, &sta_ ##name## _ops);
|
||||
sta->debugfs_dir, sta, &sta_ ##name## _ops)
|
||||
|
||||
#define DEBUGFS_ADD_COUNTER(name, field) \
|
||||
debugfs_create_ulong(#name, 0400, sta->debugfs_dir, &sta->field);
|
||||
|
Loading…
Reference in New Issue
Block a user