checkpatch.sh 561 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # SPDX-License-Identifier: GPL-2.0+
  3. # Copyright 2018, Michael Ellerman, IBM Corporation.
  4. #
  5. # Wrapper around checkpatch that uses our preferred settings
  6. script_base=$(realpath $(dirname $0))
  7. exec $script_base/../../../scripts/checkpatch.pl \
  8. --subjective \
  9. --no-summary \
  10. --max-line-length=90 \
  11. --show-types \
  12. --ignore ARCH_INCLUDE_LINUX \
  13. --ignore BIT_MACRO \
  14. --ignore COMPARISON_TO_NULL \
  15. --ignore EMAIL_SUBJECT \
  16. --ignore FILE_PATH_CHANGES \
  17. --ignore GLOBAL_INITIALISERS \
  18. --ignore LINE_SPACING \
  19. --ignore MULTIPLE_ASSIGNMENTS \
  20. $@