Failed check master bat_sysfs.c

postmaster at open-mesh.org postmaster at open-mesh.org
Sun Dec 4 00:25:53 CET 2011


ERROR: Macros with complex values should be enclosed in parenthesis
#87: FILE: bat_sysfs.c:87:
+#define BAT_ATTR_BOOL(_name, _mode, _post_func)				\
+	static BAT_ATTR_STORE_BOOL(_name, _post_func)			\
+	static BAT_ATTR_SHOW_BOOL(_name)				\
+	static BAT_ATTR(_name, _mode, show_##_name, store_##_name)

ERROR: Macros with complex values should be enclosed in parenthesis
#113: FILE: bat_sysfs.c:113:
+#define BAT_ATTR_UINT(_name, _mode, _min, _max, _post_func)		\
+	static BAT_ATTR_STORE_UINT(_name, _min, _max, _post_func)	\
+	static BAT_ATTR_SHOW_UINT(_name)				\
+	static BAT_ATTR(_name, _mode, show_##_name, store_##_name)

total: 2 errors, 0 warnings, 0 checks, 676 lines checked

bat_sysfs.c has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.


More information about the linux-merge mailing list