Move static specifier into MOST_INST_ATTR to fix checkpatch error.
ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Chaehyun Lim <chaehyun....@gmail.com>
---
 drivers/staging/most/mostcore/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/most/mostcore/core.c 
b/drivers/staging/most/mostcore/core.c
index f4f9034..192b53d 100644
--- a/drivers/staging/most/mostcore/core.c
+++ b/drivers/staging/most/mostcore/core.c
@@ -572,7 +572,7 @@ static void destroy_most_c_obj(struct most_c_obj *c)
  *                  ___I N S T A N C E___
  */
 #define MOST_INST_ATTR(_name, _mode, _show, _store) \
-               struct most_inst_attribute most_inst_attr_##_name = \
+               static struct most_inst_attribute most_inst_attr_##_name = \
                __ATTR(_name, _mode, _show, _store)
 
 static struct list_head instance_list;
@@ -696,7 +696,7 @@ static ssize_t show_interface(struct most_inst_obj 
*instance_obj,
 }
 
 #define create_inst_attribute(value) \
-       static MOST_INST_ATTR(value, S_IRUGO, show_##value, NULL)
+       MOST_INST_ATTR(value, S_IRUGO, show_##value, NULL)
 
 create_inst_attribute(description);
 create_inst_attribute(interface);
-- 
1.9.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to