aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@meshcoding.com>2014-05-15 05:24:26 -0400
committerAntonio Quartulli <antonio@meshcoding.com>2014-05-18 09:04:00 -0400
commit2b64df20586d7525a2cf6318b33c8414f6dbd807 (patch)
treec8535a6e6d06d19c1ce4ae0e4fb1d01ca47a7e62 /net
parentf138694b15d164c64a0608b2ea36f7b153637565 (diff)
batman-adv: remove semi-colon after macro definition
Reported by checkpatch with the following warning: "WARNING: macros should not use a trailing semicolon" Signed-off-by: Antonio Quartulli <antonio@meshcoding.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/debugfs.c4
-rw-r--r--net/batman-adv/sysfs.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/debugfs.c b/net/batman-adv/debugfs.c
index 99f2ba0638fd..a12e25efaf6f 100644
--- a/net/batman-adv/debugfs.c
+++ b/net/batman-adv/debugfs.c
@@ -342,7 +342,7 @@ struct batadv_debuginfo batadv_debuginfo_##_name = { \
342 .llseek = seq_lseek, \ 342 .llseek = seq_lseek, \
343 .release = single_release, \ 343 .release = single_release, \
344 } \ 344 } \
345}; 345}
346 346
347/* the following attributes are general and therefore they will be directly 347/* the following attributes are general and therefore they will be directly
348 * placed in the BATADV_DEBUGFS_SUBDIR subdirectory of debugfs 348 * placed in the BATADV_DEBUGFS_SUBDIR subdirectory of debugfs
@@ -404,7 +404,7 @@ struct batadv_debuginfo batadv_hardif_debuginfo_##_name = { \
404 .llseek = seq_lseek, \ 404 .llseek = seq_lseek, \
405 .release = single_release, \ 405 .release = single_release, \
406 }, \ 406 }, \
407}; 407}
408static BATADV_HARDIF_DEBUGINFO(originators, S_IRUGO, 408static BATADV_HARDIF_DEBUGINFO(originators, S_IRUGO,
409 batadv_originators_hardif_open); 409 batadv_originators_hardif_open);
410 410
diff --git a/net/batman-adv/sysfs.c b/net/batman-adv/sysfs.c
index f51b484abaa4..fc47baa888c5 100644
--- a/net/batman-adv/sysfs.c
+++ b/net/batman-adv/sysfs.c
@@ -108,7 +108,7 @@ struct batadv_attribute batadv_attr_vlan_##_name = { \
108 .mode = _mode }, \ 108 .mode = _mode }, \
109 .show = _show, \ 109 .show = _show, \
110 .store = _store, \ 110 .store = _store, \
111}; 111}
112 112
113/* Use this, if you have customized show and store functions */ 113/* Use this, if you have customized show and store functions */
114#define BATADV_ATTR(_name, _mode, _show, _store) \ 114#define BATADV_ATTR(_name, _mode, _show, _store) \
@@ -117,7 +117,7 @@ struct batadv_attribute batadv_attr_##_name = { \
117 .mode = _mode }, \ 117 .mode = _mode }, \
118 .show = _show, \ 118 .show = _show, \
119 .store = _store, \ 119 .store = _store, \
120}; 120}
121 121
122#define BATADV_ATTR_SIF_STORE_BOOL(_name, _post_func) \ 122#define BATADV_ATTR_SIF_STORE_BOOL(_name, _post_func) \
123ssize_t batadv_store_##_name(struct kobject *kobj, \ 123ssize_t batadv_store_##_name(struct kobject *kobj, \