Skip to content

Instantly share code, notes, and snippets.

@conor-pwbot
Created January 15, 2023 18:43
Show Gist options
  • Save conor-pwbot/7a7eccae3405d2964827ca26545893b2 to your computer and use it in GitHub Desktop.
Save conor-pwbot/7a7eccae3405d2964827ca26545893b2 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 5b45beed7fee ("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