[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3,V2] lib: fix match_string() helper on -1 array size

Patchwork patchwork at emeril.freedesktop.org
Tue May 28 23:36:10 UTC 2019


== Series Details ==

Series: series starting with [1/3,V2] lib: fix match_string() helper on -1 array size
URL   : https://patchwork.freedesktop.org/series/61280/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
890a21a6b6b3 lib: fix match_string() helper on -1 array size
5fba4509e1e6 treewide: rename match_string() -> __match_string()
-:660: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#660: FILE: security/apparmor/lsm.c:1513:
+	i = __match_string(aa_profile_mode_names, APPARMOR_MODE_NAMES_MAX_INDEX,
 			 val);

total: 0 errors, 0 warnings, 1 checks, 476 lines checked
4f143de43b28 lib: re-introduce new match_string() helper/macro
-:30: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_a' - possible side-effects?
#30: FILE: include/linux/string.h:208:
+#define match_string(_a, _s) __match_string(_a, ARRAY_SIZE(_a), _s)

total: 0 errors, 0 warnings, 1 checks, 15 lines checked



More information about the Intel-gfx mailing list