Commit 84674ef4 authored by Tom Rix's avatar Tom Rix Committed by Johannes Berg
Browse files

mac80211: remove trailing semicolon in macro definitions



The macro uses should have (and already have) the semicolon.

Signed-off-by: default avatarTom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20201127193842.2876355-1-trix@redhat.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent d7832c71
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -53,7 +53,7 @@ static const struct file_operations name## _ops = { \
	DEBUGFS_READONLY_FILE_OPS(name)
	DEBUGFS_READONLY_FILE_OPS(name)


#define DEBUGFS_ADD(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)					\
#define DEBUGFS_ADD_MODE(name, mode)					\
	debugfs_create_file(#name, mode, phyd, local, &name## _ops);
	debugfs_create_file(#name, mode, phyd, local, &name## _ops);
+1 −1
Original line number Original line Diff line number Diff line
@@ -319,7 +319,7 @@ KEY_OPS(key);


#define DEBUGFS_ADD(name) \
#define DEBUGFS_ADD(name) \
	debugfs_create_file(#name, 0400, key->debugfs.dir, \
	debugfs_create_file(#name, 0400, key->debugfs.dir, \
			    key, &key_##name##_ops);
			    key, &key_##name##_ops)
#define DEBUGFS_ADD_W(name) \
#define DEBUGFS_ADD_W(name) \
	debugfs_create_file(#name, 0600, key->debugfs.dir, \
	debugfs_create_file(#name, 0600, key->debugfs.dir, \
			    key, &key_##name##_ops);
			    key, &key_##name##_ops);
+3 −3
Original line number Original line Diff line number Diff line
@@ -642,7 +642,7 @@ IEEE80211_IF_FILE(dot11MeshConnectedToAuthServer,


#define DEBUGFS_ADD_MODE(name, mode) \
#define DEBUGFS_ADD_MODE(name, mode) \
	debugfs_create_file(#name, mode, sdata->vif.debugfs_dir, \
	debugfs_create_file(#name, mode, sdata->vif.debugfs_dir, \
			    sdata, &name##_ops);
			    sdata, &name##_ops)


#define DEBUGFS_ADD(name) DEBUGFS_ADD_MODE(name, 0400)
#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",
	struct dentry *dir = debugfs_create_dir("mesh_stats",
						sdata->vif.debugfs_dir);
						sdata->vif.debugfs_dir);
#define MESHSTATS_ADD(name)\
#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_mcast);
	MESHSTATS_ADD(fwded_unicast);
	MESHSTATS_ADD(fwded_unicast);
@@ -728,7 +728,7 @@ static void add_mesh_config(struct ieee80211_sub_if_data *sdata)
						sdata->vif.debugfs_dir);
						sdata->vif.debugfs_dir);


#define MESHPARAMS_ADD(name) \
#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(dot11MeshMaxRetries);
	MESHPARAMS_ADD(dot11MeshRetryTimeout);
	MESHPARAMS_ADD(dot11MeshRetryTimeout);
+1 −1
Original line number Original line Diff line number Diff line
@@ -985,7 +985,7 @@ STA_OPS(he_capa);


#define DEBUGFS_ADD(name) \
#define DEBUGFS_ADD(name) \
	debugfs_create_file(#name, 0400, \
	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)				\
#define DEBUGFS_ADD_COUNTER(name, field)				\
	debugfs_create_ulong(#name, 0400, sta->debugfs_dir, &sta->field);
	debugfs_create_ulong(#name, 0400, sta->debugfs_dir, &sta->field);