Skip to content

Instantly share code, notes, and snippets.

@conor-pwbot
Created January 28, 2023 01:24
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/8415b83b5fa9e8955688fdd0c2494472 to your computer and use it in GitHub Desktop.
Save conor-pwbot/8415b83b5fa9e8955688fdd0c2494472 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
#46: FILE: include/linux/compiler_types.h:239:
+#define __noinstr_section(section) \
+ noinline notrace __section(section) __no_profile \
+ __no_kcsan __no_sanitize_address __no_sanitize_coverage \
__no_sanitize_memory
total: 1 errors, 0 warnings, 0 checks, 23 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 9ad9bcbf608b ("compiler_types.h: Add __noinstr_section() for noinstr") 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