Lines Matching +full:check +full:- +full:patch

1 .. SPDX-License-Identifier: GPL-2.0-only
27 - -q, --quiet
31 - -v, --verbose
35 - --no-tree
39 - --no-signoff
41 Disable the 'Signed-off-by' line check. The sign-off is a simple line at
42 the end of the explanation for the patch, which certifies that you wrote it
43 or otherwise have the right to pass it on as an open-source patch.
47 Signed-off-by: Random J Developer <random@developer.example.org>
49 Setting this flag effectively stops a message for a missing signed-off-by
50 line in a patch context.
52 - --patch
54 Treat FILE as a patch. This is the default option and need not be
57 - --emacs
61 patch.
63 - --terse
67 - --showfile
71 - -g, --git
77 - <rev>
78 - <rev>^
79 - <rev>~n
83 - <rev1>..<rev2>
84 - <rev1>...<rev2>
85 - <rev>-<count>
87 - -f, --file
92 - --subjective, --strict
94 Enable stricter tests in checkpatch. By default the tests emitted as CHECK
95 do not activate by default. Use this flag to activate the CHECK tests.
97 - --list-types
105 - --types TYPE(,TYPE2...)
111 ./scripts/checkpatch.pl mypatch.patch --types EMAIL_SUBJECT,BRACES
113 - --ignore TYPE(,TYPE2...)
119 ./scripts/checkpatch.pl mypatch.patch --ignore EMAIL_SUBJECT,BRACES
121 - --show-types
126 - --max-line-length=n
132 The message level is different for patch and file contexts. For patches,
133 a WARNING is emitted. While a milder CHECK is emitted for files. So for
134 file contexts, the --strict flag must also be enabled.
136 - --min-conf-desc-length=n
140 - --tab-size=n
144 - --root=PATH
151 - --no-summary
155 - --mailback
160 - --summary-file
164 - --debug KEY=[0|1]
169 - --fix
172 <inputfile>.EXPERIMENTAL-checkpatch-fixes is created which has the
175 - --fix-inplace
177 EXPERIMENTAL - Similar to --fix but input file is overwritten with fixes.
182 - --ignore-perl-version
187 - --codespell
191 - --codespellfile
196 - --typedefsfile
200 - --color[=WHEN]
205 - --kconfig-prefix=WORD
209 - -h, --help, --version
219 - ERROR
224 - WARNING
229 - CHECK
243 ----------------
250 See: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html
263 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#allocating-memory
269 See: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html
273 ---------
290 See: https://www.kernel.org/doc/html/latest/process/deprecated.html#bug-and-bug-on
299 …nel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple
323 has a __builtin_constant_p check::
335 See: https://lore.kernel.org/lkml/1400106425.12666.6.camel@joe-AO725/
339 old flavourful RCU APIs by their new vanilla-RCU counterparts.
343 See: https://www.kernel.org/doc/html/latest/RCU/whatisRCU.html#full-list-of-rcu-apis
357 See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes
366 See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes
375 See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes
384 See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes
388 check") added some shared const variables to be used instead of a local
395 &zero -> SYSCTL_ZERO
396 &one -> SYSCTL_ONE
397 &int_max -> SYSCTL_INT_MAX
401 1. https://lore.kernel.org/lkml/20190430180111.10688-1-mcroce@redhat.com/
402 2. https://lore.kernel.org/lkml/20190531131422.14970-1-mcroce@redhat.com/
428 See: https://lore.kernel.org/lkml/20080320201723.b87b3732.akpm@linux-foundation.org/
432 prevent warnings on conversion of device->sem to device->mutex.
446 See: https://www.kernel.org/doc/html/latest/locking/lockdep-design.html#annotations
457 --------
460 The comment style is incorrect. The preferred style for multi-
475 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting
481 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting
487 See: https://lore.kernel.org/lkml/20200401101714.44781-1-elver@google.com/
503 PHY modes "rgmii", "rgmii-rxid" and "rgmii-txid" modes require the clock
506 internally in the MAC or PHY), "rgmii-id" is the correct PHY mode.
509 --------------
512 The signed-off-by line does not fall in line with the standards
515 …//www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin
534 The patch is missing a commit description. A brief
535 description of the changes made by the patch should be added.
537 … See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
542 the patch brings.
544 … See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
547 The author's email does not match with that in the Signed-off-by:
553 - The email names do not match.
554 - The email addresses do not match.
555 - The email subaddresses do not match.
556 - The email comments do not match.
559 The patch is missing a Signed-off-by line. A signed-off-by
563 ….kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certifi…
566 The author of the patch has not signed off the patch. It is
568 end of explanation of the patch to denote that the author has
570 source patch.
572 ….kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certifi…
577 the changelog and the diff because patch(1) tries to apply the diff
580 See: https://lore.kernel.org/lkml/20150611134006.9df79a893e3636019ad2759e@linux-foundation.org/
584 have a Change-Id like::
586 Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
587 Signed-off-by: A. U. Thor <author@example.com>
589 The Change-Id line must be removed before submitting.
602 … See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
609 … See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
613 ----------------
630 See: https://lore.kernel.org/lkml/1365563834.27174.12.camel@joe-AO722/
642 ---------------------------
649 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation
681 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation
685 To use a different maximum line length, the --max-line-length=n option
689 ("checkpatch/coding-style: deprecate 80-column warning") increased the
693 …See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-stri…
697 To use a different maximum line length, the --max-line-length=n option
700 …See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-stri…
704 To use a different maximum line length, the --max-line-length=n option
707 …See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-stri…
718 struct_identifier->member[index].
731 member1->member2->member3.foo1;
732 member1->member2->member3.foo2;
734 then store the member1->member2->member3 part in a temporary variable.
756 ------------------------------
795 read-only. The __read_mostly annotation thus should be removed.
804 non-deterministic builds.
806 See: https://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html#timestamps
858 See: https://lore.kernel.org/lkml/1377655732.3619.19.camel@joe-AO722/
862 do - while block. Same should also be the case for macros
871 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl
896 See: https://lore.kernel.org/lkml/1399671106.2912.21.camel@joe-AO725/
899 If function-like macros do not utilize a parameter, it might result
908 WARNING: Argument 'a' is not used in function-like macro.
910 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl
913 For the multi-statement macros, it is necessary to use the do-while
914 loop to avoid unpredictable code paths. The do-while loop helps to
916 function-like macro can be used as a function only.
919 do-while loop. Although the code is syntactically correct but using
920 the do-while loop is redundant. So remove the do-while loop for single
929 -----------------------
934 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#naming
955 Note that this does not work with -f (--file) checkpatch option
956 as it depends on patch context providing the function name.
1014 -----------
1018 Typically only three permissions are used - 0644 (RW), 0444 (RO)
1031 any local user to write arbitrary values into device registers - a
1034 See: https://lore.kernel.org/linux-arm-kernel/cover.1296818921.git.segoon@openwall.com/
1042 understand than their symbolic counterparts because many command-line
1049 …See: https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.c…
1053 --------------------
1068 This applies for all non-functional blocks.
1077 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces
1108 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces
1114 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces
1118 next line. For any non-functional block it should be on the same line
1121 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces
1133 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces
1138 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces
1145 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces
1152 (foo->bar)();
1156 foo->bar();
1160 if ((foo->bar) && (foo->baz))
1165 if (foo->bar && foo->baz)
1170 &(foo->bar)
1171 *(foo->bar)
1175 &foo->bar
1176 *foo->bar
1185 See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces
1189 ------
1196 The patch seems to be corrupted or lines are wrapped.
1197 Please regenerate the patch file before sending it to the maintainer.
1212 For DOS-formatted patches, there are extra ^M symbols at the end of
1216 DT bindings moved to a json-schema based format instead of
1219 See: https://www.kernel.org/doc/html/latest/devicetree/bindings/writing-schema.html
1222 Devicetree bindings should be their own patch. This is because
1226 DT only tree created with git-filter-branch.
1228 …//www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
1245 The patch file does not appear to be in unified-diff format. Please
1246 regenerate the patch file before sending it to the maintainer.
1256 See: https://www.kernel.org/doc/html/latest/process/license-rules.html