Skip to content

Instantly share code, notes, and snippets.

@conor-pwbot
Created November 29, 2022 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conor-pwbot/7703f5d22ad6fc10cb185b010ff089ab to your computer and use it in GitHub Desktop.
Save conor-pwbot/7703f5d22ad6fc10cb185b010ff089ab to your computer and use it in GitHub Desktop.
ERROR: Macros with complex values should be enclosed in parentheses
==========
checkpatch - FAILED
ERROR: Macros with complex values should be enclosed in parentheses
#25: FILE: arch/riscv/include/asm/alternative-macros.h:133:
+#define _ALTERNATIVE_CFG(old_c, ...) \
__ALTERNATIVE_CFG old_c
ERROR: Macros with complex values should be enclosed in parentheses
#33: FILE: arch/riscv/include/asm/alternative-macros.h:136:
+#define _ALTERNATIVE_CFG_2(old_c, ...) \
+ __ALTERNATIVE_CFG old_c
total: 2 errors, 0 warnings, 0 checks, 35 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
Commit 60099b4aa4bf ("riscv: alternatives: Don't name unused macro parameters") has style problems, please review.
NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment