€•¨Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ(/translations/zh_CN/dev-tools/checkpatch”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/zh_TW/dev-tools/checkpatch”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/it_IT/dev-tools/checkpatch”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ja_JP/dev-tools/checkpatch”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ko_KR/dev-tools/checkpatch”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/pt_BR/dev-tools/checkpatch”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/sp_SP/dev-tools/checkpatch”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ%SPDX-License-Identifier: GPL-2.0-only”h]”hŒ%SPDX-License-Identifier: GPL-2.0-only”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒB/var/lib/git/docbuild/linux/Documentation/dev-tools/checkpatch.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒ Checkpatch”h]”hŒ Checkpatch”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hŒÐCheckpatch (scripts/checkpatch.pl) is a perl script which checks for trivial style violations in patches and optionally corrects them. Checkpatch can also be run on file contexts and without the kernel tree.”h]”hŒÐCheckpatch (scripts/checkpatch.pl) is a perl script which checks for trivial style violations in patches and optionally corrects them. Checkpatch can also be run on file contexts and without the kernel tree.”…”�”}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒ¬Checkpatch is not always right. Your judgement takes precedence over checkpatch messages. If your code looks better with the violations, then its probably best left alone.”h]”hŒ¬Checkpatch is not always right. Your judgement takes precedence over checkpatch messages. If your code looks better with the violations, then its probably best left alone.”…”�”}”(hhíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hhÊh²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒOptions”h]”hŒOptions”…”�”}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhûh²hh³hÇh´KubhÞ)�”}”(hŒBThis section will describe the options checkpatch can be run with.”h]”hŒBThis section will describe the options checkpatch can be run with.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khhûh²hubhÞ)�”}”(hŒUsage::”h]”hŒUsage:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khhûh²hubhŒ literal_block”“”)�”}”(hŒ-./scripts/checkpatch.pl [OPTION]... [FILE]...”h]”hŒ-./scripts/checkpatch.pl [OPTION]... [FILE]...”…”�”}”hj*sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Khhûh²hubhÞ)�”}”(hŒAvailable options:”h]”hŒAvailable options:”…”�”}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khhûh²hubhŒ block_quote”“”)�”}”(hX=- -q, --quiet Enable quiet mode. - -v, --verbose Enable verbose mode. Additional verbose test descriptions are output so as to provide information on why that particular message is shown. - --no-tree Run checkpatch without the kernel tree. - --no-signoff Disable the 'Signed-off-by' line check. The sign-off is a simple line at the end of the explanation for the patch, which certifies that you wrote it or otherwise have the right to pass it on as an open-source patch. Example:: Signed-off-by: Random J Developer Setting this flag effectively stops a message for a missing signed-off-by line in a patch context. - --patch Treat FILE as a patch. This is the default option and need not be explicitly specified. - --emacs Set output to emacs compile window format. This allows emacs users to jump from the error in the compile window directly to the offending line in the patch. - --terse Output only one line per report. - --showfile Show the diffed file position instead of the input file position. - -g, --git Treat FILE as a single commit or a git revision range. Single commit with: - - ^ - ~n Multiple commits with: - .. - ... - - - -f, --file Treat FILE as a regular source file. This option must be used when running checkpatch on source files in the kernel. - --subjective, --strict Enable stricter tests in checkpatch. By default the tests emitted as CHECK do not activate by default. Use this flag to activate the CHECK tests. - --list-types Every message emitted by checkpatch has an associated TYPE. Add this flag to display all the types in checkpatch. Note that when this flag is active, checkpatch does not read the input FILE, and no message is emitted. Only a list of types in checkpatch is output. - --types TYPE(,TYPE2...) Only display messages with the given types. Example:: ./scripts/checkpatch.pl mypatch.patch --types EMAIL_SUBJECT,BRACES - --ignore TYPE(,TYPE2...) Checkpatch will not emit messages for the specified types. Example:: ./scripts/checkpatch.pl mypatch.patch --ignore EMAIL_SUBJECT,BRACES - --show-types By default checkpatch doesn't display the type associated with the messages. Set this flag to show the message type in the output. - --max-line-length=n Set the max line length (default 100). If a line exceeds the specified length, a LONG_LINE message is emitted. The message level is different for patch and file contexts. For patches, a WARNING is emitted. While a milder CHECK is emitted for files. So for file contexts, the --strict flag must also be enabled. - --min-conf-desc-length=n Set the Kconfig entry minimum description length, if shorter, warn. - --tab-size=n Set the number of spaces for tab (default 8). - --root=PATH PATH to the kernel tree root. This option must be specified when invoking checkpatch from outside the kernel root. - --no-summary Suppress the per file summary. - --mailback Only produce a report in case of Warnings or Errors. Milder Checks are excluded from this. - --summary-file Include the filename in summary. - --debug KEY=[0|1] Turn on/off debugging of KEY, where KEY is one of 'values', 'possible', 'type', and 'attr' (default is all off). - --fix This is an EXPERIMENTAL feature. If correctable errors exist, a file .EXPERIMENTAL-checkpatch-fixes is created which has the automatically fixable errors corrected. - --fix-inplace EXPERIMENTAL - Similar to --fix but input file is overwritten with fixes. DO NOT USE this flag unless you are absolutely sure and you have a backup in place. - --ignore-perl-version Override checking of perl version. Runtime errors may be encountered after enabling this flag if the perl version does not meet the minimum specified. - --spdx-cxx-comments Don't force C comments ``/* */`` for SPDX license (required by old toolchains), allow also C++ comments ``//``. NOTE: it should *not* be used for Linux mainline. - --codespell Use the codespell dictionary for checking spelling errors. - --codespellfile Use the specified codespell file. Default is '/usr/share/codespell/dictionary.txt'. - --typedefsfile Read additional types from this file. - --color[=WHEN] Use colors 'always', 'never', or only when output is a terminal ('auto'). Default is 'auto'. - --kconfig-prefix=WORD Use WORD as a prefix for Kconfig symbols (default is `CONFIG_`). - -h, --help, --version Display the help text. ”h]”hŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒ!-q, --quiet Enable quiet mode. ”h]”(hÞ)�”}”(hŒ -q, --quiet”h]”hŒ -q, --quiet”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhjSubhÞ)�”}”(hŒEnable quiet mode.”h]”hŒEnable quiet mode.”…”�”}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhjSubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ›-v, --verbose Enable verbose mode. Additional verbose test descriptions are output so as to provide information on why that particular message is shown. ”h]”hÞ)�”}”(hŒš-v, --verbose Enable verbose mode. Additional verbose test descriptions are output so as to provide information on why that particular message is shown.”h]”hŒš-v, --verbose Enable verbose mode. Additional verbose test descriptions are output so as to provide information on why that particular message is shown.”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khjyubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ3--no-tree Run checkpatch without the kernel tree. ”h]”(hÞ)�”}”(hŒ --no-tree”h]”hŒ --no-tree”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K#hj‘ubhÞ)�”}”(hŒ'Run checkpatch without the kernel tree.”h]”hŒ'Run checkpatch without the kernel tree.”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K%hj‘ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hXž--no-signoff Disable the 'Signed-off-by' line check. The sign-off is a simple line at the end of the explanation for the patch, which certifies that you wrote it or otherwise have the right to pass it on as an open-source patch. Example:: Signed-off-by: Random J Developer Setting this flag effectively stops a message for a missing signed-off-by line in a patch context. ”h]”(hÞ)�”}”(hŒ --no-signoff”h]”hŒ --no-signoff”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K'hj·ubhÞ)�”}”(hŒØDisable the 'Signed-off-by' line check. The sign-off is a simple line at the end of the explanation for the patch, which certifies that you wrote it or otherwise have the right to pass it on as an open-source patch.”h]”hŒÜDisable the ‘Signed-off-by’ line check. The sign-off is a simple line at the end of the explanation for the patch, which certifies that you wrote it or otherwise have the right to pass it on as an open-source patch.”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K)hj·ubhÞ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K-hj·ubj))�”}”(hŒ@Signed-off-by: Random J Developer ”h]”hŒ@Signed-off-by: Random J Developer ”…”�”}”hjåsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´K/hj·ubhÞ)�”}”(hŒbSetting this flag effectively stops a message for a missing signed-off-by line in a patch context.”h]”hŒbSetting this flag effectively stops a message for a missing signed-off-by line in a patch context.”…”�”}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K1hj·ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒb--patch Treat FILE as a patch. This is the default option and need not be explicitly specified. ”h]”(hÞ)�”}”(hŒ--patch”h]”hŒ--patch”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K4hjubhÞ)�”}”(hŒXTreat FILE as a patch. This is the default option and need not be explicitly specified.”h]”hŒXTreat FILE as a patch. This is the default option and need not be explicitly specified.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K6hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ§--emacs Set output to emacs compile window format. This allows emacs users to jump from the error in the compile window directly to the offending line in the patch. ”h]”(hÞ)�”}”(hŒ--emacs”h]”hŒ--emacs”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K9hj-ubhÞ)�”}”(hŒ�Set output to emacs compile window format. This allows emacs users to jump from the error in the compile window directly to the offending line in the patch.”h]”hŒ�Set output to emacs compile window format. This allows emacs users to jump from the error in the compile window directly to the offending line in the patch.”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K;hj-ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ*--terse Output only one line per report. ”h]”(hÞ)�”}”(hŒ--terse”h]”hŒ--terse”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K?hjSubhÞ)�”}”(hŒ Output only one line per report.”h]”hŒ Output only one line per report.”…”�”}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KAhjSubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒN--showfile Show the diffed file position instead of the input file position. ”h]”(hÞ)�”}”(hŒ --showfile”h]”hŒ --showfile”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KChjyubhÞ)�”}”(hŒAShow the diffed file position instead of the input file position.”h]”hŒAShow the diffed file position instead of the input file position.”…”�”}”(hj‹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KEhjyubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒÀ-g, --git Treat FILE as a single commit or a git revision range. Single commit with: - - ^ - ~n Multiple commits with: - .. - ... - - ”h]”(hÞ)�”}”(hŒ -g, --git”h]”hŒ -g, --git”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KGhjŸubhÞ)�”}”(hŒ6Treat FILE as a single commit or a git revision range.”h]”hŒ6Treat FILE as a single commit or a git revision range.”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KIhjŸubhÞ)�”}”(hŒSingle commit with:”h]”hŒSingle commit with:”…”�”}”(hj¿h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KKhjŸubjM)�”}”(hhh]”(jR)�”}”(hŒ”h]”hÞ)�”}”(hjÒh]”hŒ”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KMhjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhjÍubjR)�”}”(hŒ^”h]”hÞ)�”}”(hjéh]”hŒ^”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KNhjçubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhjÍubjR)�”}”(hŒ~n ”h]”hÞ)�”}”(hŒ~n”h]”hŒ~n”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KOhjþubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhjÍubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jLh³hÇh´KMhjŸubhÞ)�”}”(hŒMultiple commits with:”h]”hŒMultiple commits with:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KQhjŸubjM)�”}”(hhh]”(jR)�”}”(hŒ..”h]”hÞ)�”}”(hj1h]”hŒ..”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KShj/ubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhj,ubjR)�”}”(hŒ...”h]”hÞ)�”}”(hjHh]”hŒ...”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KThjFubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhj,ubjR)�”}”(hŒ- ”h]”hÞ)�”}”(hŒ -”h]”hŒ -”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KUhj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhj,ubeh}”(h]”h ]”h"]”h$]”h&]”jjuh1jLh³hÇh´KShjŸubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒƒ-f, --file Treat FILE as a regular source file. This option must be used when running checkpatch on source files in the kernel. ”h]”(hÞ)�”}”(hŒ -f, --file”h]”hŒ -f, --file”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KWhj�ubhÞ)�”}”(hŒuTreat FILE as a regular source file. This option must be used when running checkpatch on source files in the kernel.”h]”hŒuTreat FILE as a regular source file. This option must be used when running checkpatch on source files in the kernel.”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KYhj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ­--subjective, --strict Enable stricter tests in checkpatch. By default the tests emitted as CHECK do not activate by default. Use this flag to activate the CHECK tests. ”h]”(hÞ)�”}”(hŒ--subjective, --strict”h]”hŒ--subjective, --strict”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K\hj§ubhÞ)�”}”(hŒ“Enable stricter tests in checkpatch. By default the tests emitted as CHECK do not activate by default. Use this flag to activate the CHECK tests.”h]”hŒ“Enable stricter tests in checkpatch. By default the tests emitted as CHECK do not activate by default. Use this flag to activate the CHECK tests.”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K^hj§ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hX--list-types Every message emitted by checkpatch has an associated TYPE. Add this flag to display all the types in checkpatch. Note that when this flag is active, checkpatch does not read the input FILE, and no message is emitted. Only a list of types in checkpatch is output. ”h]”(hÞ)�”}”(hŒ --list-types”h]”hŒ --list-types”…”�”}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KahjÍubhÞ)�”}”(hŒrEvery message emitted by checkpatch has an associated TYPE. Add this flag to display all the types in checkpatch.”h]”hŒrEvery message emitted by checkpatch has an associated TYPE. Add this flag to display all the types in checkpatch.”…”�”}”(hjßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KchjÍubhÞ)�”}”(hŒ–Note that when this flag is active, checkpatch does not read the input FILE, and no message is emitted. Only a list of types in checkpatch is output.”h]”hŒ–Note that when this flag is active, checkpatch does not read the input FILE, and no message is emitted. Only a list of types in checkpatch is output.”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KfhjÍubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ–--types TYPE(,TYPE2...) Only display messages with the given types. Example:: ./scripts/checkpatch.pl mypatch.patch --types EMAIL_SUBJECT,BRACES ”h]”(hÞ)�”}”(hŒ--types TYPE(,TYPE2...)”h]”hŒ--types TYPE(,TYPE2...)”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KihjubhÞ)�”}”(hŒ+Only display messages with the given types.”h]”hŒ+Only display messages with the given types.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KkhjubhÞ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kmhjubj))�”}”(hŒB./scripts/checkpatch.pl mypatch.patch --types EMAIL_SUBJECT,BRACES”h]”hŒB./scripts/checkpatch.pl mypatch.patch --types EMAIL_SUBJECT,BRACES”…”�”}”hj/sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Kohjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ§--ignore TYPE(,TYPE2...) Checkpatch will not emit messages for the specified types. Example:: ./scripts/checkpatch.pl mypatch.patch --ignore EMAIL_SUBJECT,BRACES ”h]”(hÞ)�”}”(hŒ--ignore TYPE(,TYPE2...)”h]”hŒ--ignore TYPE(,TYPE2...)”…”�”}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KqhjCubhÞ)�”}”(hŒ:Checkpatch will not emit messages for the specified types.”h]”hŒ:Checkpatch will not emit messages for the specified types.”…”�”}”(hjUh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KshjCubhÞ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KuhjCubj))�”}”(hŒC./scripts/checkpatch.pl mypatch.patch --ignore EMAIL_SUBJECT,BRACES”h]”hŒC./scripts/checkpatch.pl mypatch.patch --ignore EMAIL_SUBJECT,BRACES”…”�”}”hjqsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´KwhjCubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ‘--show-types By default checkpatch doesn't display the type associated with the messages. Set this flag to show the message type in the output. ”h]”(hÞ)�”}”(hŒ --show-types”h]”hŒ --show-types”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kyhj…ubhÞ)�”}”(hŒ‚By default checkpatch doesn't display the type associated with the messages. Set this flag to show the message type in the output.”h]”hŒ„By default checkpatch doesn’t display the type associated with the messages. Set this flag to show the message type in the output.”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K{hj…ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hXR--max-line-length=n Set the max line length (default 100). If a line exceeds the specified length, a LONG_LINE message is emitted. The message level is different for patch and file contexts. For patches, a WARNING is emitted. While a milder CHECK is emitted for files. So for file contexts, the --strict flag must also be enabled. ”h]”(hÞ)�”}”(hŒ--max-line-length=n”h]”hŒ--max-line-length=n”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K~hj«ubhÞ)�”}”(hŒoSet the max line length (default 100). If a line exceeds the specified length, a LONG_LINE message is emitted.”h]”hŒoSet the max line length (default 100). If a line exceeds the specified length, a LONG_LINE message is emitted.”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K€hj«ubhÞ)�”}”(hŒÊThe message level is different for patch and file contexts. For patches, a WARNING is emitted. While a milder CHECK is emitted for files. So for file contexts, the --strict flag must also be enabled.”h]”hŒÊThe message level is different for patch and file contexts. For patches, a WARNING is emitted. While a milder CHECK is emitted for files. So for file contexts, the --strict flag must also be enabled.”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K„hj«ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ^--min-conf-desc-length=n Set the Kconfig entry minimum description length, if shorter, warn. ”h]”(hÞ)�”}”(hŒ--min-conf-desc-length=n”h]”hŒ--min-conf-desc-length=n”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KˆhjßubhÞ)�”}”(hŒCSet the Kconfig entry minimum description length, if shorter, warn.”h]”hŒCSet the Kconfig entry minimum description length, if shorter, warn.”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KŠhjßubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ<--tab-size=n Set the number of spaces for tab (default 8). ”h]”(hÞ)�”}”(hŒ --tab-size=n”h]”hŒ --tab-size=n”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KŒhjubhÞ)�”}”(hŒ-Set the number of spaces for tab (default 8).”h]”hŒ-Set the number of spaces for tab (default 8).”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KŽhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ�--root=PATH PATH to the kernel tree root. This option must be specified when invoking checkpatch from outside the kernel root. ”h]”(hÞ)�”}”(hŒ --root=PATH”h]”hŒ --root=PATH”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K�hj+ubhÞ)�”}”(hŒPATH to the kernel tree root.”h]”hŒPATH to the kernel tree root.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K’hj+ubhÞ)�”}”(hŒTThis option must be specified when invoking checkpatch from outside the kernel root.”h]”hŒTThis option must be specified when invoking checkpatch from outside the kernel root.”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K”hj+ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ---no-summary Suppress the per file summary. ”h]”(hÞ)�”}”(hŒ --no-summary”h]”hŒ --no-summary”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K—hj_ubhÞ)�”}”(hŒSuppress the per file summary.”h]”hŒSuppress the per file summary.”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K™hj_ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒh--mailback Only produce a report in case of Warnings or Errors. Milder Checks are excluded from this. ”h]”(hÞ)�”}”(hŒ --mailback”h]”hŒ --mailback”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K›hj…ubhÞ)�”}”(hŒ[Only produce a report in case of Warnings or Errors. Milder Checks are excluded from this.”h]”hŒ[Only produce a report in case of Warnings or Errors. Milder Checks are excluded from this.”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K�hj…ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ1--summary-file Include the filename in summary. ”h]”(hÞ)�”}”(hŒ--summary-file”h]”hŒ--summary-file”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hj«ubhÞ)�”}”(hŒ Include the filename in summary.”h]”hŒ Include the filename in summary.”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¢hj«ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ„--debug KEY=[0|1] Turn on/off debugging of KEY, where KEY is one of 'values', 'possible', 'type', and 'attr' (default is all off). ”h]”(hÞ)�”}”(hŒ--debug KEY=[0|1]”h]”hŒ--debug KEY=[0|1]”…”�”}”(hjÕh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¤hjÑubhÞ)�”}”(hŒpTurn on/off debugging of KEY, where KEY is one of 'values', 'possible', 'type', and 'attr' (default is all off).”h]”hŒ€Turn on/off debugging of KEY, where KEY is one of ‘values’, ‘possible’, ‘type’, and ‘attr’ (default is all off).”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¦hjÑubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ¸--fix This is an EXPERIMENTAL feature. If correctable errors exist, a file .EXPERIMENTAL-checkpatch-fixes is created which has the automatically fixable errors corrected. ”h]”(hÞ)�”}”(hŒ--fix”h]”hŒ--fix”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K©hj÷ubhÞ)�”}”(hŒ°This is an EXPERIMENTAL feature. If correctable errors exist, a file .EXPERIMENTAL-checkpatch-fixes is created which has the automatically fixable errors corrected.”h]”hŒ°This is an EXPERIMENTAL feature. If correctable errors exist, a file .EXPERIMENTAL-checkpatch-fixes is created which has the automatically fixable errors corrected.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K«hj÷ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ®--fix-inplace EXPERIMENTAL - Similar to --fix but input file is overwritten with fixes. DO NOT USE this flag unless you are absolutely sure and you have a backup in place. ”h]”(hÞ)�”}”(hŒ --fix-inplace”h]”hŒ --fix-inplace”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¯hjubhÞ)�”}”(hŒIEXPERIMENTAL - Similar to --fix but input file is overwritten with fixes.”h]”hŒIEXPERIMENTAL - Similar to --fix but input file is overwritten with fixes.”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K±hjubhÞ)�”}”(hŒSDO NOT USE this flag unless you are absolutely sure and you have a backup in place.”h]”hŒSDO NOT USE this flag unless you are absolutely sure and you have a backup in place.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K³hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ¯--ignore-perl-version Override checking of perl version. Runtime errors may be encountered after enabling this flag if the perl version does not meet the minimum specified. ”h]”(hÞ)�”}”(hŒ--ignore-perl-version”h]”hŒ--ignore-perl-version”…”�”}”(hjUh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¶hjQubhÞ)�”}”(hŒ—Override checking of perl version. Runtime errors may be encountered after enabling this flag if the perl version does not meet the minimum specified.”h]”hŒ—Override checking of perl version. Runtime errors may be encountered after enabling this flag if the perl version does not meet the minimum specified.”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¸hjQubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ¸--spdx-cxx-comments Don't force C comments ``/* */`` for SPDX license (required by old toolchains), allow also C++ comments ``//``. NOTE: it should *not* be used for Linux mainline. ”h]”(hÞ)�”}”(hŒ--spdx-cxx-comments”h]”hŒ--spdx-cxx-comments”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K»hjwubhÞ)�”}”(hŒoDon't force C comments ``/* */`` for SPDX license (required by old toolchains), allow also C++ comments ``//``.”h]”(hŒDon’t force C comments ”…”�”}”(hj‰h²hh³Nh´NubhŒliteral”“”)�”}”(hŒ ``/* */``”h]”hŒ/* */”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘hj‰ubhŒH for SPDX license (required by old toolchains), allow also C++ comments ”…”�”}”(hj‰h²hh³Nh´Nubj’)�”}”(hŒ``//``”h]”hŒ//”…”�”}”(hj¥h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘hj‰ubhŒ.”…”�”}”(hj‰h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K½hjwubhÞ)�”}”(hŒ1NOTE: it should *not* be used for Linux mainline.”h]”(hŒNOTE: it should ”…”�”}”(hj½h²hh³Nh´NubhŒemphasis”“”)�”}”(hŒ*not*”h]”hŒnot”…”�”}”(hjÇh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj½ubhŒ be used for Linux mainline.”…”�”}”(hj½h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÀhjwubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒH--codespell Use the codespell dictionary for checking spelling errors. ”h]”(hÞ)�”}”(hŒ --codespell”h]”hŒ --codespell”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÂhjåubhÞ)�”}”(hŒ:Use the codespell dictionary for checking spelling errors.”h]”hŒ:Use the codespell dictionary for checking spelling errors.”…”�”}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÄhjåubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒe--codespellfile Use the specified codespell file. Default is '/usr/share/codespell/dictionary.txt'. ”h]”(hÞ)�”}”(hŒ--codespellfile”h]”hŒ--codespellfile”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÆhj ubhÞ)�”}”(hŒSUse the specified codespell file. Default is '/usr/share/codespell/dictionary.txt'.”h]”hŒWUse the specified codespell file. Default is ‘/usr/share/codespell/dictionary.txt’.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÈhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ6--typedefsfile Read additional types from this file. ”h]”(hÞ)�”}”(hŒ--typedefsfile”h]”hŒ--typedefsfile”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KËhj1ubhÞ)�”}”(hŒ%Read additional types from this file.”h]”hŒ%Read additional types from this file.”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÍhj1ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒm--color[=WHEN] Use colors 'always', 'never', or only when output is a terminal ('auto'). Default is 'auto'. ”h]”(hÞ)�”}”(hŒ--color[=WHEN]”h]”hŒ--color[=WHEN]”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÏhjWubhÞ)�”}”(hŒ\Use colors 'always', 'never', or only when output is a terminal ('auto'). Default is 'auto'.”h]”hŒlUse colors ‘always’, ‘never’, or only when output is a terminal (‘auto’). Default is ‘auto’.”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÑhjWubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒX--kconfig-prefix=WORD Use WORD as a prefix for Kconfig symbols (default is `CONFIG_`). ”h]”(hÞ)�”}”(hŒ--kconfig-prefix=WORD”h]”hŒ--kconfig-prefix=WORD”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÔhj}ubhÞ)�”}”(hŒ@Use WORD as a prefix for Kconfig symbols (default is `CONFIG_`).”h]”(hŒ5Use WORD as a prefix for Kconfig symbols (default is ”…”�”}”(hj�h²hh³Nh´NubhŒtitle_reference”“”)�”}”(hŒ `CONFIG_`”h]”hŒCONFIG_”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—hj�ubhŒ).”…”�”}”(hj�h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÖhj}ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubjR)�”}”(hŒ.-h, --help, --version Display the help text. ”h]”(hÞ)�”}”(hŒ-h, --help, --version”h]”hŒ-h, --help, --version”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KØhj·ubhÞ)�”}”(hŒDisplay the help text.”h]”hŒDisplay the help text.”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÚhj·ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjNubeh}”(h]”h ]”h"]”h$]”h&]”jjuh1jLh³hÇh´KhjHubah}”(h]”h ]”h"]”h$]”h&]”uh1jFh³hÇh´Khhûh²hubeh}”(h]”Œoptions”ah ]”h"]”Œoptions”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒConfiguration file”h]”hŒConfiguration file”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjñh²hh³hÇh´KÝubhÞ)�”}”(hŒàDefault configuration options can be stored in ``.checkpatch.conf``, search path: ``.:$HOME:.scripts`` or in a directory specified by ``$CHECKPATCH_CONFIG_DIR`` environment variable (falling back to the default search path).”h]”(hŒ/Default configuration options can be stored in ”…”�”}”(hjh²hh³Nh´Nubj’)�”}”(hŒ``.checkpatch.conf``”h]”hŒ.checkpatch.conf”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘hjubhŒ, search path: ”…”�”}”(hjh²hh³Nh´Nubj’)�”}”(hŒ``.:$HOME:.scripts``”h]”hŒ.:$HOME:.scripts”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘hjubhŒ or in a directory specified by ”…”�”}”(hjh²hh³Nh´Nubj’)�”}”(hŒ``$CHECKPATCH_CONFIG_DIR``”h]”hŒ$CHECKPATCH_CONFIG_DIR”…”�”}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘hjubhŒ@ environment variable (falling back to the default search path).”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kßhjñh²hubeh}”(h]”Œconfiguration-file”ah ]”h"]”Œconfiguration file”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KÝubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒMessage Levels”h]”hŒMessage Levels”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjNh²hh³hÇh´KäubhÞ)�”}”(hŒ†Messages in checkpatch are divided into three levels. The levels of messages in checkpatch denote the severity of the error. They are:”h]”hŒ†Messages in checkpatch are divided into three levels. The levels of messages in checkpatch denote the severity of the error. They are:”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KæhjNh²hubjG)�”}”(hXy- ERROR This is the most strict level. Messages of type ERROR must be taken seriously as they denote things that are very likely to be wrong. - WARNING This is the next stricter level. Messages of type WARNING requires a more careful review. But it is milder than an ERROR. - CHECK This is the mildest level. These are things which may require some thought. ”h]”jM)�”}”(hhh]”(jR)�”}”(hŒŽERROR This is the most strict level. Messages of type ERROR must be taken seriously as they denote things that are very likely to be wrong. ”h]”(hÞ)�”}”(hŒERROR”h]”hŒERROR”…”�”}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KéhjtubhÞ)�”}”(hŒ†This is the most strict level. Messages of type ERROR must be taken seriously as they denote things that are very likely to be wrong.”h]”hŒ†This is the most strict level. Messages of type ERROR must be taken seriously as they denote things that are very likely to be wrong.”…”�”}”(hj†h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Këhjtubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjqubjR)�”}”(hŒ…WARNING This is the next stricter level. Messages of type WARNING requires a more careful review. But it is milder than an ERROR. ”h]”(hÞ)�”}”(hŒWARNING”h]”hŒWARNING”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KîhjšubhÞ)�”}”(hŒ{This is the next stricter level. Messages of type WARNING requires a more careful review. But it is milder than an ERROR.”h]”hŒ{This is the next stricter level. Messages of type WARNING requires a more careful review. But it is milder than an ERROR.”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kðhjšubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjqubjR)�”}”(hŒTCHECK This is the mildest level. These are things which may require some thought. ”h]”(hÞ)�”}”(hŒCHECK”h]”hŒCHECK”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KóhjÀubhÞ)�”}”(hŒLThis is the mildest level. These are things which may require some thought.”h]”hŒLThis is the mildest level. These are things which may require some thought.”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KõhjÀubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQhjqubeh}”(h]”h ]”h"]”h$]”h&]”jjuh1jLh³hÇh´Kéhjmubah}”(h]”h ]”h"]”h$]”h&]”uh1jFh³hÇh´KéhjNh²hubeh}”(h]”Œmessage-levels”ah ]”h"]”Œmessage levels”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KäubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒType Descriptions”h]”hŒType Descriptions”…”�”}”(hjýh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjúh²hh³hÇh´KøubhÞ)�”}”(hŒKThis section contains a description of all the message types in checkpatch.”h]”hŒKThis section contains a description of all the message types in checkpatch.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kúhjúh²hubh¶)�”}”(hŒ4Types in this section are also parsed by checkpatch.”h]”hŒ4Types in this section are also parsed by checkpatch.”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1hµhjúh²hh³hÇh´Küubh¶)�”}”(hŒ4The types are grouped into subsections based on use.”h]”hŒ4The types are grouped into subsections based on use.”…”�”}”hj' sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1hµhjúh²hh³hÇh´KÿubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒAllocation style”h]”hŒAllocation style”…”�”}”(hj8 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj5 h²hh³hÇh´MubjG)�”}”(hXù**ALLOC_ARRAY_ARGS** The first argument for kcalloc or kmalloc_array should be the number of elements. sizeof() as the first argument is generally wrong. See: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html **ALLOC_SIZEOF_STRUCT** The allocation style is bad. In general for family of allocation functions using sizeof() to get memory size, constructs like:: p = alloc(sizeof(struct foo), ...) should be:: p = alloc(sizeof(*p), ...) See: https://www.kernel.org/doc/html/latest/process/coding-style.html#allocating-memory **ALLOC_WITH_MULTIPLY** Prefer kmalloc_array/kcalloc over kmalloc/kzalloc with a sizeof multiply. See: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html ”h]”hŒdefinition_list”“”)�”}”(hhh]”(hŒdefinition_list_item”“”)�”}”(hŒè**ALLOC_ARRAY_ARGS** The first argument for kcalloc or kmalloc_array should be the number of elements. sizeof() as the first argument is generally wrong. See: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html ”h]”(hŒterm”“”)�”}”(hŒ**ALLOC_ARRAY_ARGS**”h]”hŒstrong”“”)�”}”(hjY h]”hŒALLOC_ARRAY_ARGS”…”�”}”(hj] h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjW ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MhjQ ubhŒ definition”“”)�”}”(hhh]”(hÞ)�”}”(hŒ…The first argument for kcalloc or kmalloc_array should be the number of elements. sizeof() as the first argument is generally wrong.”h]”hŒ…The first argument for kcalloc or kmalloc_array should be the number of elements. sizeof() as the first argument is generally wrong.”…”�”}”(hju h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjr ubhÞ)�”}”(hŒKSee: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html”h]”(hŒSee: ”…”�”}”(hjƒ h²hh³Nh´NubhŒ reference”“”)�”}”(hŒFhttps://www.kernel.org/doc/html/latest/core-api/memory-allocation.html”h]”hŒFhttps://www.kernel.org/doc/html/latest/core-api/memory-allocation.html”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j� uh1j‹ hjƒ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjr ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjQ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MhjL ubjP )�”}”(hXC**ALLOC_SIZEOF_STRUCT** The allocation style is bad. In general for family of allocation functions using sizeof() to get memory size, constructs like:: p = alloc(sizeof(struct foo), ...) should be:: p = alloc(sizeof(*p), ...) See: https://www.kernel.org/doc/html/latest/process/coding-style.html#allocating-memory ”h]”(jV )�”}”(hŒ**ALLOC_SIZEOF_STRUCT**”h]”j\ )�”}”(hj´ h]”hŒALLOC_SIZEOF_STRUCT”…”�”}”(hj¶ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj² ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mhj® ubjq )�”}”(hhh]”(hÞ)�”}”(hŒ€The allocation style is bad. In general for family of allocation functions using sizeof() to get memory size, constructs like::”h]”hŒThe allocation style is bad. In general for family of allocation functions using sizeof() to get memory size, constructs like:”…”�”}”(hjÌ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjÉ ubj))�”}”(hŒ"p = alloc(sizeof(struct foo), ...)”h]”hŒ"p = alloc(sizeof(struct foo), ...)”…”�”}”hjÚ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´MhjÉ ubhÞ)�”}”(hŒ should be::”h]”hŒ should be:”…”�”}”(hjè h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjÉ ubj))�”}”(hŒp = alloc(sizeof(*p), ...)”h]”hŒp = alloc(sizeof(*p), ...)”…”�”}”hjö sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´MhjÉ ubhÞ)�”}”(hŒWSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#allocating-memory”h]”(hŒSee: ”…”�”}”(hj h²hh³Nh´NubjŒ )�”}”(hŒRhttps://www.kernel.org/doc/html/latest/process/coding-style.html#allocating-memory”h]”hŒRhttps://www.kernel.org/doc/html/latest/process/coding-style.html#allocating-memory”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j uh1j‹ hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjÉ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hj® ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MhjL ubjP )�”}”(hŒ°**ALLOC_WITH_MULTIPLY** Prefer kmalloc_array/kcalloc over kmalloc/kzalloc with a sizeof multiply. See: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html ”h]”(jV )�”}”(hŒ**ALLOC_WITH_MULTIPLY**”h]”j\ )�”}”(hj3 h]”hŒALLOC_WITH_MULTIPLY”…”�”}”(hj5 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj1 ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mhj- ubjq )�”}”(hhh]”(hÞ)�”}”(hŒIPrefer kmalloc_array/kcalloc over kmalloc/kzalloc with a sizeof multiply.”h]”hŒIPrefer kmalloc_array/kcalloc over kmalloc/kzalloc with a sizeof multiply.”…”�”}”(hjK h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjH ubhÞ)�”}”(hŒKSee: https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html”h]”(hŒSee: ”…”�”}”(hjY h²hh³Nh´NubjŒ )�”}”(hŒFhttps://www.kernel.org/doc/html/latest/core-api/memory-allocation.html”h]”hŒFhttps://www.kernel.org/doc/html/latest/core-api/memory-allocation.html”…”�”}”(hja h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jc uh1j‹ hjY ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjH ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hj- ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MhjL ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ hjF ubah}”(h]”h ]”h"]”h$]”h&]”uh1jFh³hÇh´Mhj5 h²hubeh}”(h]”Œallocation-style”ah ]”h"]”Œallocation style”ah$]”h&]”uh1hÈhjúh²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ API usage”h]”hŒ API usage”…”�”}”(hj™ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj– h²hh³hÇh´MubjG)�”}”(hXm**ARCH_DEFINES** Architecture specific defines should be avoided wherever possible. **ARCH_INCLUDE_LINUX** Whenever asm/file.h is included and linux/file.h exists, a conversion can be made when linux/file.h includes asm/file.h. However this is not always the case (See signal.h). This message type is emitted only for includes from arch/. **AVOID_BUG** BUG() or BUG_ON() should be avoided totally. Use WARN() and WARN_ON() instead, and handle the "impossible" error condition as gracefully as possible. See: https://www.kernel.org/doc/html/latest/process/deprecated.html#bug-and-bug-on **CONSIDER_KSTRTO** The simple_strtol(), simple_strtoll(), simple_strtoul(), and simple_strtoull() functions explicitly ignore overflows, which may lead to unexpected results in callers. The respective kstrtol(), kstrtoll(), kstrtoul(), and kstrtoull() functions tend to be the correct replacements. See: https://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull **CONSTANT_CONVERSION** Use of __constant_ form is discouraged for the following functions:: __constant_cpu_to_be[x] __constant_cpu_to_le[x] __constant_be[x]_to_cpu __constant_le[x]_to_cpu __constant_htons __constant_ntohs Using any of these outside of include/uapi/ is not preferred as using the function without __constant_ is identical when the argument is a constant. In big endian systems, the macros like __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to the same expression:: #define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x)) #define __cpu_to_be32(x) ((__force __be32)(__u32)(x)) In little endian systems, the macros __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to __constant_swab32 and __swab32. __swab32 has a __builtin_constant_p check:: #define __swab32(x) \ (__builtin_constant_p((__u32)(x)) ? \ ___constant_swab32(x) : \ __fswab32(x)) So ultimately they have a special case for constants. Similar is the case with all of the macros in the list. Thus using the __constant_... forms are unnecessarily verbose and not preferred outside of include/uapi. See: https://lore.kernel.org/lkml/1400106425.12666.6.camel@joe-AO725/ **DEPRECATED_API** Usage of a deprecated RCU API is detected. It is recommended to replace old flavourful RCU APIs by their new vanilla-RCU counterparts. The full list of available RCU APIs can be viewed from the kernel docs. See: https://www.kernel.org/doc/html/latest/RCU/whatisRCU.html#full-list-of-rcu-apis **DEVICE_ATTR_FUNCTIONS** The function names used in DEVICE_ATTR is unusual. Typically, the store and show functions are used with _store and _show, where is a named attribute variable of the device. Consider the following examples:: static DEVICE_ATTR(type, 0444, type_show, NULL); static DEVICE_ATTR(power, 0644, power_show, power_store); The function names should preferably follow the above pattern. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes **DEVICE_ATTR_RO** The DEVICE_ATTR_RO(name) helper macro can be used instead of DEVICE_ATTR(name, 0444, name_show, NULL); Note that the macro automatically appends _show to the named attribute variable of the device for the show method. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes **DEVICE_ATTR_RW** The DEVICE_ATTR_RW(name) helper macro can be used instead of DEVICE_ATTR(name, 0644, name_show, name_store); Note that the macro automatically appends _show and _store to the named attribute variable of the device for the show and store methods. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes **DEVICE_ATTR_WO** The DEVICE_AATR_WO(name) helper macro can be used instead of DEVICE_ATTR(name, 0200, NULL, name_store); Note that the macro automatically appends _store to the named attribute variable of the device for the store method. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes **DUPLICATED_SYSCTL_CONST** Commit d91bff3011cf ("proc/sysctl: add shared variables for range check") added some shared const variables to be used instead of a local copy in each source file. Consider replacing the sysctl range checking value with the shared one in include/linux/sysctl.h. The following conversion scheme may be used:: &zero -> SYSCTL_ZERO &one -> SYSCTL_ONE &int_max -> SYSCTL_INT_MAX See: 1. https://lore.kernel.org/lkml/20190430180111.10688-1-mcroce@redhat.com/ 2. https://lore.kernel.org/lkml/20190531131422.14970-1-mcroce@redhat.com/ **ENOSYS** ENOSYS means that a nonexistent system call was called. Earlier, it was wrongly used for things like invalid operations on otherwise valid syscalls. This should be avoided in new code. See: https://lore.kernel.org/lkml/5eb299021dec23c1a48fa7d9f2c8b794e967766d.1408730669.git.luto@amacapital.net/ **ENOTSUPP** ENOTSUPP is not a standard error code and should be avoided in new patches. EOPNOTSUPP should be used instead. See: https://lore.kernel.org/netdev/20200510182252.GA411829@lunn.ch/ **EXPORT_SYMBOL** EXPORT_SYMBOL should immediately follow the symbol to be exported. **IN_ATOMIC** in_atomic() is not for driver use so any such use is reported as an ERROR. Also in_atomic() is often used to determine if sleeping is permitted, but it is not reliable in this use model. Therefore its use is strongly discouraged. However, in_atomic() is ok for core kernel use. See: https://lore.kernel.org/lkml/20080320201723.b87b3732.akpm@linux-foundation.org/ **LOCKDEP** The lockdep_no_validate class was added as a temporary measure to prevent warnings on conversion of device->sem to device->mutex. It should not be used for any other purpose. See: https://lore.kernel.org/lkml/1268959062.9440.467.camel@laptop/ **MALFORMED_INCLUDE** The #include statement has a malformed path. This has happened because the author has included a double slash "//" in the pathname accidentally. **USE_LOCKDEP** lockdep_assert_held() annotations should be preferred over assertions based on spin_is_locked() See: https://www.kernel.org/doc/html/latest/locking/lockdep-design.html#annotations **UAPI_INCLUDE** No #include statements in include/uapi should use a uapi/ path. **USLEEP_RANGE** usleep_range() should be preferred over udelay(). The proper way of using usleep_range() is mentioned in the kernel docs. ”h]”jK )�”}”(hhh]”(jP )�”}”(hŒT**ARCH_DEFINES** Architecture specific defines should be avoided wherever possible. ”h]”(jV )�”}”(hŒ**ARCH_DEFINES**”h]”j\ )�”}”(hj´ h]”hŒ ARCH_DEFINES”…”�”}”(hj¶ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj² ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M#hj® ubjq )�”}”(hhh]”hÞ)�”}”(hŒBArchitecture specific defines should be avoided wherever possible.”h]”hŒBArchitecture specific defines should be avoided wherever possible.”…”�”}”(hjÌ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M"hjÉ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp hj® ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M#hj« ubjP )�”}”(hŒÿ**ARCH_INCLUDE_LINUX** Whenever asm/file.h is included and linux/file.h exists, a conversion can be made when linux/file.h includes asm/file.h. However this is not always the case (See signal.h). This message type is emitted only for includes from arch/. ”h]”(jV )�”}”(hŒ**ARCH_INCLUDE_LINUX**”h]”j\ )�”}”(hjì h]”hŒARCH_INCLUDE_LINUX”…”�”}”(hjî h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjê ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M)hjæ ubjq )�”}”(hhh]”hÞ)�”}”(hŒçWhenever asm/file.h is included and linux/file.h exists, a conversion can be made when linux/file.h includes asm/file.h. However this is not always the case (See signal.h). This message type is emitted only for includes from arch/.”h]”hŒçWhenever asm/file.h is included and linux/file.h exists, a conversion can be made when linux/file.h includes asm/file.h. However this is not always the case (See signal.h). This message type is emitted only for includes from arch/.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M&hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp hjæ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M)hj« ubjP )�”}”(hŒø**AVOID_BUG** BUG() or BUG_ON() should be avoided totally. Use WARN() and WARN_ON() instead, and handle the "impossible" error condition as gracefully as possible. See: https://www.kernel.org/doc/html/latest/process/deprecated.html#bug-and-bug-on ”h]”(jV )�”}”(hŒ **AVOID_BUG**”h]”j\ )�”}”(hj$ h]”hŒ AVOID_BUG”…”�”}”(hj& h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj" ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M0hj ubjq )�”}”(hhh]”(hÞ)�”}”(hŒ•BUG() or BUG_ON() should be avoided totally. Use WARN() and WARN_ON() instead, and handle the "impossible" error condition as gracefully as possible.”h]”hŒ™BUG() or BUG_ON() should be avoided totally. Use WARN() and WARN_ON() instead, and handle the “impossibleâ€� error condition as gracefully as possible.”…”�”}”(hj< h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M,hj9 ubhÞ)�”}”(hŒRSee: https://www.kernel.org/doc/html/latest/process/deprecated.html#bug-and-bug-on”h]”(hŒSee: ”…”�”}”(hjJ h²hh³Nh´NubjŒ )�”}”(hŒMhttps://www.kernel.org/doc/html/latest/process/deprecated.html#bug-and-bug-on”h]”hŒMhttps://www.kernel.org/doc/html/latest/process/deprecated.html#bug-and-bug-on”…”�”}”(hjR h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jT uh1j‹ hjJ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M0hj9 ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M0hj« ubjP )�”}”(hX®**CONSIDER_KSTRTO** The simple_strtol(), simple_strtoll(), simple_strtoul(), and simple_strtoull() functions explicitly ignore overflows, which may lead to unexpected results in callers. The respective kstrtol(), kstrtoll(), kstrtoul(), and kstrtoull() functions tend to be the correct replacements. See: https://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull ”h]”(jV )�”}”(hŒ**CONSIDER_KSTRTO**”h]”j\ )�”}”(hjy h]”hŒCONSIDER_KSTRTO”…”�”}”(hj{ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjw ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M9hjs ubjq )�”}”(hhh]”(hÞ)�”}”(hXThe simple_strtol(), simple_strtoll(), simple_strtoul(), and simple_strtoull() functions explicitly ignore overflows, which may lead to unexpected results in callers. The respective kstrtol(), kstrtoll(), kstrtoul(), and kstrtoull() functions tend to be the correct replacements.”h]”hXThe simple_strtol(), simple_strtoll(), simple_strtoul(), and simple_strtoull() functions explicitly ignore overflows, which may lead to unexpected results in callers. The respective kstrtol(), kstrtoll(), kstrtoul(), and kstrtoull() functions tend to be the correct replacements.”…”�”}”(hj‘ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M3hjŽ ubhÞ)�”}”(hŒSee: https://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull”h]”(hŒSee: ”…”�”}”(hjŸ h²hh³Nh´NubjŒ )�”}”(hŒzhttps://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull”h]”hŒzhttps://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull”…”�”}”(hj§ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j© uh1j‹ hjŸ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M9hjŽ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjs ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M9hj« ubjP )�”}”(hXî**CONSTANT_CONVERSION** Use of __constant_ form is discouraged for the following functions:: __constant_cpu_to_be[x] __constant_cpu_to_le[x] __constant_be[x]_to_cpu __constant_le[x]_to_cpu __constant_htons __constant_ntohs Using any of these outside of include/uapi/ is not preferred as using the function without __constant_ is identical when the argument is a constant. In big endian systems, the macros like __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to the same expression:: #define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x)) #define __cpu_to_be32(x) ((__force __be32)(__u32)(x)) In little endian systems, the macros __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to __constant_swab32 and __swab32. __swab32 has a __builtin_constant_p check:: #define __swab32(x) \ (__builtin_constant_p((__u32)(x)) ? \ ___constant_swab32(x) : \ __fswab32(x)) So ultimately they have a special case for constants. Similar is the case with all of the macros in the list. Thus using the __constant_... forms are unnecessarily verbose and not preferred outside of include/uapi. See: https://lore.kernel.org/lkml/1400106425.12666.6.camel@joe-AO725/ ”h]”(jV )�”}”(hŒ**CONSTANT_CONVERSION**”h]”j\ )�”}”(hjÎ h]”hŒCONSTANT_CONVERSION”…”�”}”(hjÐ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjÌ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M]hjÈ ubjq )�”}”(hhh]”(hÞ)�”}”(hŒIUse of __constant_ form is discouraged for the following functions::”h]”hŒHUse of __constant_ form is discouraged for the following functions:”…”�”}”(hjæ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M<hjã ubj))�”}”(hŒ�__constant_cpu_to_be[x] __constant_cpu_to_le[x] __constant_be[x]_to_cpu __constant_le[x]_to_cpu __constant_htons __constant_ntohs”h]”hŒ�__constant_cpu_to_be[x] __constant_cpu_to_le[x] __constant_be[x]_to_cpu __constant_le[x]_to_cpu __constant_htons __constant_ntohs”…”�”}”hjô sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´M>hjã ubhÞ)�”}”(hŒ”Using any of these outside of include/uapi/ is not preferred as using the function without __constant_ is identical when the argument is a constant.”h]”hŒ”Using any of these outside of include/uapi/ is not preferred as using the function without __constant_ is identical when the argument is a constant.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MEhjã ubhÞ)�”}”(hŒsIn big endian systems, the macros like __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to the same expression::”h]”hŒrIn big endian systems, the macros like __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to the same expression:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MIhjã ubj))�”}”(hŒ}#define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x)) #define __cpu_to_be32(x) ((__force __be32)(__u32)(x))”h]”hŒ}#define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x)) #define __cpu_to_be32(x) ((__force __be32)(__u32)(x))”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´MLhjã ubhÞ)�”}”(hŒ¨In little endian systems, the macros __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to __constant_swab32 and __swab32. __swab32 has a __builtin_constant_p check::”h]”hŒ§In little endian systems, the macros __constant_cpu_to_be32(x) and cpu_to_be32(x) expand to __constant_swab32 and __swab32. __swab32 has a __builtin_constant_p check:”…”�”}”(hj, h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MOhjã ubj))�”}”(hŒ›#define __swab32(x) \ (__builtin_constant_p((__u32)(x)) ? \ ___constant_swab32(x) : \ __fswab32(x))”h]”hŒ›#define __swab32(x) \ (__builtin_constant_p((__u32)(x)) ? \ ___constant_swab32(x) : \ __fswab32(x))”…”�”}”hj: sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´MShjã ubhÞ)�”}”(hŒ×So ultimately they have a special case for constants. Similar is the case with all of the macros in the list. Thus using the __constant_... forms are unnecessarily verbose and not preferred outside of include/uapi.”h]”hŒ×So ultimately they have a special case for constants. Similar is the case with all of the macros in the list. Thus using the __constant_... forms are unnecessarily verbose and not preferred outside of include/uapi.”…”�”}”(hjH h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MXhjã ubhÞ)�”}”(hŒESee: https://lore.kernel.org/lkml/1400106425.12666.6.camel@joe-AO725/”h]”(hŒSee: ”…”�”}”(hjV h²hh³Nh´NubjŒ )�”}”(hŒ@https://lore.kernel.org/lkml/1400106425.12666.6.camel@joe-AO725/”h]”hŒ@https://lore.kernel.org/lkml/1400106425.12666.6.camel@joe-AO725/”…”�”}”(hj^ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j` uh1j‹ hjV ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M]hjã ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjÈ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M]hj« ubjP )�”}”(hX:**DEPRECATED_API** Usage of a deprecated RCU API is detected. It is recommended to replace old flavourful RCU APIs by their new vanilla-RCU counterparts. The full list of available RCU APIs can be viewed from the kernel docs. See: https://www.kernel.org/doc/html/latest/RCU/whatisRCU.html#full-list-of-rcu-apis ”h]”(jV )�”}”(hŒ**DEPRECATED_API**”h]”j\ )�”}”(hj… h]”hŒDEPRECATED_API”…”�”}”(hj‡ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjƒ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mehj ubjq )�”}”(hhh]”(hÞ)�”}”(hŒ‡Usage of a deprecated RCU API is detected. It is recommended to replace old flavourful RCU APIs by their new vanilla-RCU counterparts.”h]”hŒ‡Usage of a deprecated RCU API is detected. It is recommended to replace old flavourful RCU APIs by their new vanilla-RCU counterparts.”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M`hjš ubhÞ)�”}”(hŒGThe full list of available RCU APIs can be viewed from the kernel docs.”h]”hŒGThe full list of available RCU APIs can be viewed from the kernel docs.”…”�”}”(hj« h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mchjš ubhÞ)�”}”(hŒTSee: https://www.kernel.org/doc/html/latest/RCU/whatisRCU.html#full-list-of-rcu-apis”h]”(hŒSee: ”…”�”}”(hj¹ h²hh³Nh´NubjŒ )�”}”(hŒOhttps://www.kernel.org/doc/html/latest/RCU/whatisRCU.html#full-list-of-rcu-apis”h]”hŒOhttps://www.kernel.org/doc/html/latest/RCU/whatisRCU.html#full-list-of-rcu-apis”…”�”}”(hjÁ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jà uh1j‹ hj¹ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mehjš ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´Mehj« ubjP )�”}”(hX **DEVICE_ATTR_FUNCTIONS** The function names used in DEVICE_ATTR is unusual. Typically, the store and show functions are used with _store and _show, where is a named attribute variable of the device. Consider the following examples:: static DEVICE_ATTR(type, 0444, type_show, NULL); static DEVICE_ATTR(power, 0644, power_show, power_store); The function names should preferably follow the above pattern. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes ”h]”(jV )�”}”(hŒ**DEVICE_ATTR_FUNCTIONS**”h]”j\ )�”}”(hjè h]”hŒDEVICE_ATTR_FUNCTIONS”…”�”}”(hjê h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjæ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mshjâ ubjq )�”}”(hhh]”(hÞ)�”}”(hŒÀThe function names used in DEVICE_ATTR is unusual. Typically, the store and show functions are used with _store and _show, where is a named attribute variable of the device.”h]”hŒÀThe function names used in DEVICE_ATTR is unusual. Typically, the store and show functions are used with _store and _show, where is a named attribute variable of the device.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhhjý ubhÞ)�”}”(hŒ!Consider the following examples::”h]”hŒ Consider the following examples:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mlhjý ubj))�”}”(hŒjstatic DEVICE_ATTR(type, 0444, type_show, NULL); static DEVICE_ATTR(power, 0644, power_show, power_store);”h]”hŒjstatic DEVICE_ATTR(type, 0444, type_show, NULL); static DEVICE_ATTR(power, 0644, power_show, power_store);”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Mnhjý ubhÞ)�”}”(hŒ>The function names should preferably follow the above pattern.”h]”hŒ>The function names should preferably follow the above pattern.”…”�”}”(hj* h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mqhjý ubhÞ)�”}”(hŒZSee: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”(hŒSee: ”…”�”}”(hj8 h²hh³Nh´NubjŒ )�”}”(hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”…”�”}”(hj@ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jB uh1j‹ hj8 ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mshjý ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjâ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´Mshj« ubjP )�”}”(hXJ**DEVICE_ATTR_RO** The DEVICE_ATTR_RO(name) helper macro can be used instead of DEVICE_ATTR(name, 0444, name_show, NULL); Note that the macro automatically appends _show to the named attribute variable of the device for the show method. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes ”• h]”(jV )�”}”(hŒ**DEVICE_ATTR_RO**”h]”j\ )�”}”(hjg h]”hŒDEVICE_ATTR_RO”…”�”}”(hji h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hje ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M|hja ubjq )�”}”(hhh]”(hÞ)�”}”(hŒfThe DEVICE_ATTR_RO(name) helper macro can be used instead of DEVICE_ATTR(name, 0444, name_show, NULL);”h]”hŒfThe DEVICE_ATTR_RO(name) helper macro can be used instead of DEVICE_ATTR(name, 0444, name_show, NULL);”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mvhj| ubhÞ)�”}”(hŒrNote that the macro automatically appends _show to the named attribute variable of the device for the show method.”h]”hŒrNote that the macro automatically appends _show to the named attribute variable of the device for the show method.”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Myhj| ubhÞ)�”}”(hŒZSee: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”(hŒSee: ”…”�”}”(hj› h²hh³Nh´NubjŒ )�”}”(hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”…”�”}”(hj£ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j¥ uh1j‹ hj› ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M|hj| ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hja ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M|hj« ubjP )�”}”(hXf**DEVICE_ATTR_RW** The DEVICE_ATTR_RW(name) helper macro can be used instead of DEVICE_ATTR(name, 0644, name_show, name_store); Note that the macro automatically appends _show and _store to the named attribute variable of the device for the show and store methods. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes ”h]”(jV )�”}”(hŒ**DEVICE_ATTR_RW**”h]”j\ )�”}”(hjÊ h]”hŒDEVICE_ATTR_RW”…”�”}”(hjÌ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjÈ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M…hjÄ ubjq )�”}”(hhh]”(hÞ)�”}”(hŒlThe DEVICE_ATTR_RW(name) helper macro can be used instead of DEVICE_ATTR(name, 0644, name_show, name_store);”h]”hŒlThe DEVICE_ATTR_RW(name) helper macro can be used instead of DEVICE_ATTR(name, 0644, name_show, name_store);”…”�”}”(hjâ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjß ubhÞ)�”}”(hŒˆNote that the macro automatically appends _show and _store to the named attribute variable of the device for the show and store methods.”h]”hŒˆNote that the macro automatically appends _show and _store to the named attribute variable of the device for the show and store methods.”…”�”}”(hjð h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‚hjß ubhÞ)�”}”(hŒZSee: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”(hŒSee: ”…”�”}”(hjþ h²hh³Nh´NubjŒ )�”}”(hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”juh1j‹ hjþ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M…hjß ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjÄ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M…hj« ubjP )�”}”(hXM**DEVICE_ATTR_WO** The DEVICE_AATR_WO(name) helper macro can be used instead of DEVICE_ATTR(name, 0200, NULL, name_store); Note that the macro automatically appends _store to the named attribute variable of the device for the store method. See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes ”h]”(jV )�”}”(hŒ**DEVICE_ATTR_WO**”h]”j\ )�”}”(hj-h]”hŒDEVICE_ATTR_WO”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj+ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MŽhj'ubjq )�”}”(hhh]”(hÞ)�”}”(hŒgThe DEVICE_AATR_WO(name) helper macro can be used instead of DEVICE_ATTR(name, 0200, NULL, name_store);”h]”hŒgThe DEVICE_AATR_WO(name) helper macro can be used instead of DEVICE_ATTR(name, 0200, NULL, name_store);”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MˆhjBubhÞ)�”}”(hŒtNote that the macro automatically appends _store to the named attribute variable of the device for the store method.”h]”hŒtNote that the macro automatically appends _store to the named attribute variable of the device for the store method.”…”�”}”(hjSh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‹hjBubhÞ)�”}”(hŒZSee: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”(hŒSee: ”…”�”}”(hjah²hh³Nh´NubjŒ )�”}”(hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”h]”hŒUhttps://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jkuh1j‹ hjaubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MŽhjBubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hj'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MŽhj« ubjP )�”}”(hXH**DUPLICATED_SYSCTL_CONST** Commit d91bff3011cf ("proc/sysctl: add shared variables for range check") added some shared const variables to be used instead of a local copy in each source file. Consider replacing the sysctl range checking value with the shared one in include/linux/sysctl.h. The following conversion scheme may be used:: &zero -> SYSCTL_ZERO &one -> SYSCTL_ONE &int_max -> SYSCTL_INT_MAX See: 1. https://lore.kernel.org/lkml/20190430180111.10688-1-mcroce@redhat.com/ 2. https://lore.kernel.org/lkml/20190531131422.14970-1-mcroce@redhat.com/ ”h]”(jV )�”}”(hŒ**DUPLICATED_SYSCTL_CONST**”h]”j\ )�”}”(hj�h]”hŒDUPLICATED_SYSCTL_CONST”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjŽubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M hjŠubjq )�”}”(hhh]”(hÞ)�”}”(hŒ£Commit d91bff3011cf ("proc/sysctl: add shared variables for range check") added some shared const variables to be used instead of a local copy in each source file.”h]”hŒ§Commit d91bff3011cf (“proc/sysctl: add shared variables for range checkâ€�) added some shared const variables to be used instead of a local copy in each source file.”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‘hj¥ubhÞ)�”}”(hŒ�Consider replacing the sysctl range checking value with the shared one in include/linux/sysctl.h. The following conversion scheme may be used::”h]”hŒ�Consider replacing the sysctl range checking value with the shared one in include/linux/sysctl.h. The following conversion scheme may be used:”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M•hj¥ubj))�”}”(hŒO&zero -> SYSCTL_ZERO &one -> SYSCTL_ONE &int_max -> SYSCTL_INT_MAX”h]”hŒO&zero -> SYSCTL_ZERO &one -> SYSCTL_ONE &int_max -> SYSCTL_INT_MAX”…”�”}”hjÄsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´M™hj¥ubhÞ)�”}”(hŒSee:”h]”hŒSee:”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M�hj¥ubjG)�”}”(hŒ”1. https://lore.kernel.org/lkml/20190430180111.10688-1-mcroce@redhat.com/ 2. https://lore.kernel.org/lkml/20190531131422.14970-1-mcroce@redhat.com/ ”h]”hŒenumerated_list”“”)�”}”(hhh]”(jR)�”}”(hŒFhttps://lore.kernel.org/lkml/20190430180111.10688-1-mcroce@redhat.com/”h]”hÞ)�”}”(hjëh]”jŒ )�”}”(hjëh]”hŒFhttps://lore.kernel.org/lkml/20190430180111.10688-1-mcroce@redhat.com/”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jëuh1j‹ hjíubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MŸhjéubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhjæubjR)�”}”(hŒGhttps://lore.kernel.org/lkml/20190531131422.14970-1-mcroce@redhat.com/ ”h]”hÞ)�”}”(hŒFhttps://lore.kernel.org/lkml/20190531131422.14970-1-mcroce@redhat.com/”h]”jŒ )�”}”(hjh]”hŒFhttps://lore.kernel.org/lkml/20190531131422.14970-1-mcroce@redhat.com/”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”juh1j‹ hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jQhjæubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jähjàubah}”(h]”h ]”h"]”h$]”h&]”uh1jFh³hÇh´MŸhj¥ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjŠubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M hj« ubjP )�”}”(hX5**ENOSYS** ENOSYS means that a nonexistent system call was called. Earlier, it was wrongly used for things like invalid operations on otherwise valid syscalls. This should be avoided in new code. See: https://lore.kernel.org/lkml/5eb299021dec23c1a48fa7d9f2c8b794e967766d.1408730669.git.luto@amacapital.net/ ”h]”(jV )�”}”(hŒ **ENOSYS**”h]”j\ )�”}”(hjOh]”hŒENOSYS”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjMubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M§hjIubjq )�”}”(hhh]”(hÞ)�”}”(hŒ¹ENOSYS means that a nonexistent system call was called. Earlier, it was wrongly used for things like invalid operations on otherwise valid syscalls. This should be avoided in new code.”h]”hŒ¹ENOSYS means that a nonexistent system call was called. Earlier, it was wrongly used for things like invalid operations on otherwise valid syscalls. This should be avoided in new code.”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M£hjdubhÞ)�”}”(hŒnSee: https://lore.kernel.org/lkml/5eb299021dec23c1a48fa7d9f2c8b794e967766d.1408730669.git.luto@amacapital.net/”h]”(hŒSee: ”…”�”}”(hjuh²hh³Nh´NubjŒ )�”}”(hŒihttps://lore.kernel.org/lkml/5eb299021dec23c1a48fa7d9f2c8b794e967766d.1408730669.git.luto@amacapital.net/”h]”hŒihttps://lore.kernel.org/lkml/5eb299021dec23c1a48fa7d9f2c8b794e967766d.1408730669.git.luto@amacapital.net/”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”juh1j‹ hjuubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M§hjdubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjIubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M§hj« ubjP )�”}”(hŒÂ**ENOTSUPP** ENOTSUPP is not a standard error code and should be avoided in new patches. EOPNOTSUPP should be used instead. See: https://lore.kernel.org/netdev/20200510182252.GA411829@lunn.ch/ ”h]”(jV )�”}”(hŒ **ENOTSUPP**”h]”j\ )�”}”(hj¤h]”hŒENOTSUPP”…”�”}”(hj¦h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj¢ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M­hjžubjq )�”}”(hhh]”(hÞ)�”}”(hŒnENOTSUPP is not a standard error code and should be avoided in new patches. EOPNOTSUPP should be used instead.”h]”hŒnENOTSUPP is not a standard error code and should be avoided in new patches. EOPNOTSUPP should be used instead.”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mªhj¹ubhÞ)�”}”(hŒDSee: https://lore.kernel.org/netdev/20200510182252.GA411829@lunn.ch/”h]”(hŒSee: ”…”�”}”(hjÊh²hh³Nh´NubjŒ )�”}”(hŒ?https://lore.kernel.org/netdev/20200510182252.GA411829@lunn.ch/”h]”hŒ?https://lore.kernel.org/netdev/20200510182252.GA411829@lunn.ch/”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jÔuh1j‹ hjÊubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M­hj¹ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjžubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M­hj« ubjP )�”}”(hŒU**EXPORT_SYMBOL** EXPORT_SYMBOL should immediately follow the symbol to be exported. ”h]”(jV )�”}”(hŒ**EXPORT_SYMBOL**”h]”j\ )�”}”(hjùh]”hŒ EXPORT_SYMBOL”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj÷ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M°hjóubjq )�”}”(hhh]”hÞ)�”}”(hŒBEXPORT_SYMBOL should immediately follow the symbol to be exported.”h]”hŒBEXPORT_SYMBOL should immediately follow the symbol to be exported.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M°hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jp hjóubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M°hj« ubjP )�”}”(hX|**IN_ATOMIC** in_atomic() is not for driver use so any such use is reported as an ERROR. Also in_atomic() is often used to determine if sleeping is permitted, but it is not reliable in this use model. Therefore its use is strongly discouraged. However, in_atomic() is ok for core kernel use. See: https://lore.kernel.org/lkml/20080320201723.b87b3732.akpm@linux-foundation.org/ ”h]”(jV )�”}”(hŒ **IN_ATOMIC**”h]”j\ )�”}”(hj1h]”hŒ IN_ATOMIC”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj/ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mºhj+ubjq )�”}”(hhh]”(hÞ)�”}”(hŒæin_atomic() is not for driver use so any such use is reported as an ERROR. Also in_atomic() is often used to determine if sleeping is permitted, but it is not reliable in this use model. Therefore its use is strongly discouraged.”h]”hŒæin_atomic() is not for driver use so any such use is reported as an ERROR. Also in_atomic() is often used to determine if sleeping is permitted, but it is not reliable in this use model. Therefore its use is strongly discouraged.”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M³hjFubhÞ)�”}”(hŒ/However, in_atomic() is ok for core kernel use.”h]”hŒ/However, in_atomic() is ok for core kernel use.”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¸hjFubhÞ)�”}”(hŒTSee: https://lore.kernel.org/lkml/20080320201723.b87b3732.akpm@linux-foundation.org/”h]”(hŒSee: ”…”�”}”(hjeh²hh³Nh´NubjŒ )�”}”(hŒOhttps://lore.kernel.org/lkml/20080320201723.b87b3732.akpm@linux-foundation.org/”h]”hŒOhttps://lore.kernel.org/lkml/20080320201723.b87b3732.akpm@linux-foundation.org/”…”�”}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jouh1j‹ hjeubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MºhjFubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hj+ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´Mºhj« ubjP )�”}”(hX**LOCKDEP** The lockdep_no_validate class was added as a temporary measure to prevent warnings on conversion of device->sem to device->mutex. It should not be used for any other purpose. See: https://lore.kernel.org/lkml/1268959062.9440.467.camel@laptop/ ”h]”(jV )�”}”(hŒ **LOCKDEP**”h]”j\ )�”}”(hj”h]”hŒLOCKDEP”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj’ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MÁhjŽubjq )�”}”(hhh]”(hÞ)�”}”(hŒ®The lockdep_no_validate class was added as a temporary measure to prevent warnings on conversion of device->sem to device->mutex. It should not be used for any other purpose.”h]”hŒ®The lockdep_no_validate class was added as a temporary measure to prevent warnings on conversion of device->sem to device->mutex. It should not be used for any other purpose.”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M½hj©ubhÞ)�”}”(hŒCSee: https://lore.kernel.org/lkml/1268959062.9440.467.camel@laptop/”h]”(hŒSee: ”…”�”}”(hjºh²hh³Nh´NubjŒ )�”}”(hŒ>https://lore.kernel.org/lkml/1268959062.9440.467.camel@laptop/”h]”hŒ>https://lore.kernel.org/lkml/1268959062.9440.467.camel@laptop/”…”�”}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jÄuh1j‹ hjºubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÁhj©ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjŽubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MÁhj« ubjP )�”}”(hŒ¨**MALFORMED_INCLUDE** The #include statement has a malformed path. This has happened because the author has included a double slash "//" in the pathname accidentally. ”h]”(jV )�”}”(hŒ**MALFORMED_INCLUDE**”h]”j\ )�”}”(hjéh]”hŒMALFORMED_INCLUDE”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjçubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MÆhjãubjq )�”}”(hhh]”hÞ)�”}”(hŒ‘The #include statement has a malformed path. This has happened because the author has included a double slash "//" in the pathname accidentally.”h]”hŒ•The #include statement has a malformed path. This has happened because the author has included a double slash “//â€� in the pathname accidentally.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÄhjþubah}”(h]”h ]”h"]”h$]”h&]”uh1jp hjãubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MÆhj« ubjP )�”}”(hŒÅ**USE_LOCKDEP** lockdep_assert_held() annotations should be preferred over assertions based on spin_is_locked() See: https://www.kernel.org/doc/html/latest/locking/lockdep-design.html#annotations ”h]”(jV )�”}”(hŒ**USE_LOCKDEP**”h]”j\ )�”}”(hj!h]”hŒ USE_LOCKDEP”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MÌhjubjq )�”}”(hhh]”(hÞ)�”}”(hŒ_lockdep_assert_held() annotations should be preferred over assertions based on spin_is_locked()”h]”hŒ_lockdep_assert_held() annotations should be preferred over assertions based on spin_is_locked()”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÉhj6ubhÞ)�”}”(hŒSSee: https://www.kernel.org/doc/html/latest/locking/lockdep-design.html#annotations”h]”(hŒSee: ”…”�”}”(hjGh²hh³Nh´NubjŒ )�”}”(hŒNhttps://www.kernel.org/doc/html/latest/locking/lockdep-design.html#annotations”h]”hŒNhttps://www.kernel.org/doc/html/latest/locking/lockdep-design.html#annotations”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jQuh1j‹ hjGubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÌhj6ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MÌhj« ubjP )�”}”(hŒQ**UAPI_INCLUDE** No #include statements in include/uapi should use a uapi/ path. ”h]”(jV )�”}”(hŒ**UAPI_INCLUDE**”h]”j\ )�”}”(hjvh]”hŒ UAPI_INCLUDE”…”�”}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MÏhjpubjq )�”}”(hhh]”hÞ)�”}”(hŒ?No #include statements in include/uapi should use a uapi/ path.”h]”hŒ?No #include statements in include/uapi should use a uapi/ path.”…”�”}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÏhj‹ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp hjpubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MÏhj« ubjP )�”}”(hŒŒ**USLEEP_RANGE** usleep_range() should be preferred over udelay(). The proper way of using usleep_range() is mentioned in the kernel docs. ”h]”(jV )�”}”(hŒ**USLEEP_RANGE**”h]”j\ )�”}”(hj®h]”hŒ USLEEP_RANGE”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hj¬ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MÔhj¨ubjq )�”}”(hhh]”hÞ)�”}”(hŒyusleep_range() should be preferred over udelay(). The proper way of using usleep_range() is mentioned in the kernel docs.”h]”hŒyusleep_range() should be preferred over udelay(). The proper way of using usleep_range() is mentioned in the kernel docs.”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÒhjÃubah}”(h]”h ]”h"]”h$]”h&]”uh1jp hj¨ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´MÔhj« ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ hj§ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jFh³hÇh´M!hj– h²hubeh}”(h]”Œ api-usage”ah ]”h"]”Œ api usage”ah$]”h&]”uh1hÈhjúh²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒComments”h]”hŒComments”…”�”}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjôh²hh³hÇh´M×ubjG)�”}”(hX.**BLOCK_COMMENT_STYLE** The comment style is incorrect. The preferred style for multi- line comments is:: /* * This is the preferred style * for multi line comments. */ See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting **C99_COMMENTS** C99 style single line comments (//) should not be used. Prefer the block comment style instead. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting **DATA_RACE** Applications of data_race() should have a comment so as to document the reasoning behind why it was deemed safe. See: https://lore.kernel.org/lkml/20200401101714.44781-1-elver@google.com/ **FSF_MAILING_ADDRESS** Kernel maintainers reject new instances of the GPL boilerplate paragraph directing people to write to the FSF for a copy of the GPL, since the FSF has moved in the past and may do so again. So do not write paragraphs about writing to the Free Software Foundation's mailing address. See: https://lore.kernel.org/lkml/20131006222342.GT19510@leaf/ **UNCOMMENTED_RGMII_MODE** Historically, the RGMII PHY modes specified in Device Trees have been used inconsistently, often referring to the usage of delays on the PHY side rather than describing the board. PHY modes "rgmii", "rgmii-rxid" and "rgmii-txid" modes require the clock signal to be delayed on the PCB; this unusual configuration should be described in a comment. If they are not (meaning that the delay is realized internally in the MAC or PHY), "rgmii-id" is the correct PHY mode. ”h]”jK )�”}”(hhh]”(jP )�”}”(hX**BLOCK_COMMENT_STYLE** The comment style is incorrect. The preferred style for multi- line comments is:: /* * This is the preferred style * for multi line comments. */ See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting ”h]”(jV )�”}”(hŒ**BLOCK_COMMENT_STYLE**”h]”j\ )�”}”(hjh]”hŒBLOCK_COMMENT_STYLE”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mâhj ubjq )�”}”(hhh]”(hÞ)�”}”(hŒRThe comment style is incorrect. The preferred style for multi- line comments is::”h]”hŒQThe comment style is incorrect. The preferred style for multi- line comments is:”…”�”}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÚhj'ubj))�”}”(hŒA/* * This is the preferred style * for multi line comments. */”h]”hŒA/* * This is the preferred style * for multi line comments. */”…”�”}”hj8sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´MÝhj'ubhÞ)�”}”(hŒPSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting”h]”(hŒSee: ”…”�”}”(hjFh²hh³Nh´NubjŒ )�”}”(hŒKhttps://www.kernel.org/doc/html/latest/process/coding-style.html#commenting”h]”hŒKhttps://www.kernel.org/doc/html/latest/process/coding-style.html#commenting”…”�”}”(hjNh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jPuh1j‹ hjFubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mâhj'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´Mâhj ubjP )�”}”(hŒÃ**C99_COMMENTS** C99 style single line comments (//) should not be used. Prefer the block comment style instead. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting ”h]”(jV )�”}”(hŒ**C99_COMMENTS**”h]”j\ )�”}”(hjuh]”hŒ C99_COMMENTS”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjsubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mèhjoubjq )�”}”(hhh]”(hÞ)�”}”(hŒ_C99 style single line comments (//) should not be used. Prefer the block comment style instead.”h]”hŒ_C99 style single line comments (//) should not be used. Prefer the block comment style instead.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MåhjŠubhÞ)�”}”(hŒPSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting”h]”(hŒSee: ”…”�”}”(hj›h²hh³Nh´NubjŒ )�”}”(hŒKhttps://www.kernel.org/doc/html/latest/process/coding-style.html#commenting”h]”hŒKhttps://www.kernel.org/doc/html/latest/process/coding-style.html#commenting”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j¥uh1j‹ hj›ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MèhjŠubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjoubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´Mèhj ubjP )�”}”(hŒË**DATA_RACE** Applications of data_race() should have a comment so as to document the reasoning behind why it was deemed safe. See: https://lore.kernel.org/lkml/20200401101714.44781-1-elver@google.com/ ”h]”(jV )�”}”(hŒ **DATA_RACE**”h]”j\ )�”}”(hjÊh]”hŒ DATA_RACE”…”�”}”(hjÌh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjÈubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´MîhjÄubjq )�”}”(hhh]”(hÞ)�”}”(hŒpApplications of data_race() should have a comment so as to document the reasoning behind why it was deemed safe.”h]”hŒpApplications of data_race() should have a comment so as to document the reasoning behind why it was deemed safe.”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MëhjßubhÞ)�”}”(hŒJSee: https://lore.kernel.org/lkml/20200401101714.44781-1-elver@google.com/”h]”(hŒSee: ”…”�”}”(hjðh²hh³Nh´NubjŒ )�”}”(hŒEhttps://lore.kernel.org/lkml/20200401101714.44781-1-elver@google.com/”h]”hŒEhttps://lore.kernel.org/lkml/20200401101714.44781-1-elver@google.com/”…”�”}”(hjøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”júuh1j‹ hjðubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mîhjßubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjÄubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´Mîhj ubjP )�”}”(hXr**FSF_MAILING_ADDRESS** Kernel maintainers reject new instances of the GPL boilerplate paragraph directing people to write to the FSF for a copy of the GPL, since the FSF has moved in the past and may do so again. So do not write paragraphs about writing to the Free Software Foundation's mailing address. See: https://lore.kernel.org/lkml/20131006222342.GT19510@leaf/ ”h]”(jV )�”}”(hŒ**FSF_MAILING_ADDRESS**”h]”j\ )�”}”(hjh]”hŒFSF_MAILING_ADDRESS”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´M÷hjubjq )�”}”(hhh]”(hÞ)�”}”(hXKernel maintainers reject new instances of the GPL boilerplate paragraph directing people to write to the FSF for a copy of the GPL, since the FSF has moved in the past and may do so again. So do not write paragraphs about writing to the Free Software Foundation's mailing address.”h]”hXKernel maintainers reject new instances of the GPL boilerplate paragraph directing people to write to the FSF for a copy of the GPL, since the FSF has moved in the past and may do so again. So do not write paragraphs about writing to the Free Software Foundation’s mailing address.”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mñhj4ubhÞ)�”}”(hŒ>See: https://lore.kernel.org/lkml/20131006222342.GT19510@leaf/”h]”(hŒSee: ”…”�”}”(hjEh²hh³Nh´NubjŒ )�”}”(hŒ9https://lore.kernel.org/lkml/20131006222342.GT19510@leaf/”h]”hŒ9https://lore.kernel.org/lkml/20131006222342.GT19510@leaf/”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jOuh1j‹ hjEubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M÷hj4ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´M÷hj ubjP )�”}”(hXî**UNCOMMENTED_RGMII_MODE** Historically, the RGMII PHY modes specified in Device Trees have been used inconsistently, often referring to the usage of delays on the PHY side rather than describing the board. PHY modes "rgmii", "rgmii-rxid" and "rgmii-txid" modes require the clock signal to be delayed on the PCB; this unusual configuration should be described in a comment. If they are not (meaning that the delay is realized internally in the MAC or PHY), "rgmii-id" is the correct PHY mode. ”h]”(jV )�”}”(hŒ**UNCOMMENTED_RGMII_MODE**”h]”j\ )�”}”(hjth]”hŒUNCOMMENTED_RGMII_MODE”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ hjrubah}”(h]”h ]”h"]”h$]”h&]”uh1jU h³hÇh´Mhjnubjq )�”}”(hhh]”(hÞ)�”}”(hŒ³Historically, the RGMII PHY modes specified in Device Trees have been used inconsistently, often referring to the usage of delays on the PHY side rather than describing the board.”h]”hŒ³Historically, the RGMII PHY modes specified in Device Trees have been used inconsistently, often referring to the usage of delays on the PHY side rather than describing the board.”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Múhj‰ubhÞ)�”}”(hXPHY modes "rgmii", "rgmii-rxid" and "rgmii-txid" modes require the clock signal to be delayed on the PCB; this unusual configuration should be described in a comment. If they are not (meaning that the delay is realized internally in the MAC or PHY), "rgmii-id" is the correct PHY mode.”h]”hX-PHY modes “rgmiiâ€�, “rgmii-rxidâ€� and “rgmii-txidâ€� modes require the clock signal to be delayed on the PCB; this unusual configuration should be described in a comment. If they are not (meaning that the delay is realized internally in the MAC or PHY), “rgmii-idâ€� is the correct PHY mode.”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mþhj‰ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp hjnubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO h³hÇh´Mhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jFh³hÇh´MÙhjôh²hubeh}”(h]”Œcomments”ah ]”h"]”Œcomments”ah$]”h&]”uh1hÈhjúh²hh³hÇh´M×ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒCommit message”h]”hŒCommit message”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÈh²hh³hÇh´MubjG)�”}”(hXn**BAD_SIGN_OFF** The signed-off-by line does not fall in line with the standards specified by the community. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1 **BAD_STABLE_ADDRESS_STYLE** The email format for stable is incorrect. Some valid options for stable address are:: 1. stable@vger.kernel.org 2. stable@kernel.org For adding version info, the following comment style should be used:: stable@vger.kernel.org # version info **COMMIT_COMMENT_SYMBOL** Commit log lines starting with a '#' are ignored by git as comments. To solve this problem addition of a single space infront of the log line is enough. **COMMIT_MESSAGE** The patch is missing a commit description. A brief description of the changes made by the patch should be added. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes **EMAIL_SUBJECT** Naming the tool that found the issue is not very useful in the subject line. A good subject line summarizes the change that the patch brings. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes **FROM_SIGN_OFF_MISMATCH** The author's email does not match with that in the Signed-off-by: line(s). This can be sometimes caused due to an improperly configured email client. This message is emitted due to any of the following reasons:: - The email names do not match. - The email addresses do not match. - The email subaddresses do not match. - The email comments do not match. **MISSING_SIGN_OFF** The patch is missing a Signed-off-by line. A signed-off-by line should be added according to Developer's certificate of Origin. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin **NO_AUTHOR_SIGN_OFF** The author of the patch has not signed off the patch. It is required that a simple sign off line should be present at the end of explanation of the patch to denote that the author has written it or otherwise has the rights to pass it on as an open source patch. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin **DIFF_IN_COMMIT_MSG** Avoid having diff content in commit message. This causes problems when one tries to apply a file containing both the changelog and the diff because patch(1) tries to apply the diff which it found in the changelog. See: https://lore.kernel.org/lkml/20150611134006.9df79a893e3636019ad2759e@linux-foundation.org/ **GERRIT_CHANGE_ID** To be picked up by gerrit, the footer of the commit message might have a Change-Id like:: Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b Signed-off-by: A. U. Thor The Change-Id line must be removed before submitting. **GIT_COMMIT_ID** The proper way to reference a commit id is: commit <12+ chars of sha1> ("") An example may be:: Commit e21d2170f36602ae2708 ("video: remove unnecessary platform_set_drvdata()") removed the unnecessary platform_set_drvdata(), but left the variable "dev" unused, delete it. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes **BAD_FIXES_TAG** The Fixes: tag is malformed or does not follow the community conventions. This can occur if the tag have been split into multiple lines (e.g., when pasted in an email program with word wrapping enabled). See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes **BAD_COMMIT_SEPARATOR** The commit separator is a single line with 3 dashes. The regex match is '^---$' Lines that start with 3 dashes and have more content on the same line may confuse tools that apply patches. ”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒà**BAD_SIGN_OFF** The signed-off-by line does not fall in line with the standards specified by the community. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1 ”h]”(jV ��)�”}”(hŒ**BAD_SIGN_OFF**”h]”j\ ��)�”}”(hjæ��h]”hŒ BAD_SIGN_OFF”…”�”}”(hjè��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjä��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M hjà��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ[The signed-off-by line does not fall in line with the standards specified by the community.”h]”hŒ[The signed-off-by line does not fall in line with the standards specified by the community.”…”�”}”(hjþ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjû��ubhÞ)�”}”(hŒqSee: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1”h]”(hŒSee: ”…”�”}”(hj ��h²hh³Nh´NubjŒ ��)�”}”(hŒlhttps://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1”h]”hŒlhttps://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j��uh1j‹ ��hj ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjû��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjà��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M hjÝ��ubjP ��)�”}”(hX��**BAD_STABLE_ADDRESS_STYLE** The email format for stable is incorrect. Some valid options for stable address are:: 1. stable@vger.kernel.org 2. stable@kernel.org For adding version info, the following comment style should be used:: stable@vger.kernel.org # version info ”h]”(jV ��)�”}”(hŒ**BAD_STABLE_ADDRESS_STYLE**”h]”j\ ��)�”}”(hj;��h]”hŒBAD_STABLE_ADDRESS_STYLE”…”�”}”(hj=��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj9��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhj5��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒUThe email format for stable is incorrect. Some valid options for stable address are::”h]”hŒTThe email format for stable is incorrect. Some valid options for stable address are:”…”�”}”(hjS��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjP��ubj)��)�”}”(hŒ.1. stable@vger.kernel.org 2. stable@kernel.org”h]”hŒ.1. stable@vger.kernel.org 2. stable@kernel.org”…”�”}”hja��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MhjP��ubhÞ)�”}”(hŒEFor adding version info, the following comment style should be used::”h]”hŒDFor adding version info, the following comment style should be used:”…”�”}”(hjo��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjP��ubj)��)�”}”(hŒ%stable@vger.kernel.org # version info”h]”hŒ%stable@vger.kernel.org # version info”…”�”}”hj}��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MhjP��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj5��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MhjÝ��ubjP ��)�”}”(hŒ´**COMMIT_COMMENT_SYMBOL** Commit log lines starting with a '#' are ignored by git as comments. To solve this problem addition of a single space infront of the log line is enough. ”h]”(jV ��)�”}”(hŒ**COMMIT_COMMENT_SYMBOL**”h]”j\ ��)�”}”(hj���h]”hŒCOMMIT_COMMENT_SYMBOL”…”�”}”(hjŸ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj›��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhj—��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒ™Commit log lines starting with a '#' are ignored by git as comments. To solve this problem addition of a single space infront of the log line is enough.”h]”hŒ�Commit log lines starting with a ‘#’ are ignored by git as comments. To solve this problem addition of a single space infront of the log line is enough.”…”�”}”(hjµ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj²��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj—��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MhjÝ��ubjP ��)�”}”(hŒè**COMMIT_MESSAGE** The patch is missing a commit description. A brief description of the changes made by the patch should be added. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes ”h]”(jV ��)�”}”(hŒ**COMMIT_MESSAGE**”h]”j\ ��)�”}”(hjÕ��h]”hŒCOMMIT_MESSAGE”…”�”}”(hj×��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÓ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M hjÏ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒqThe patch is missing a commit description. A brief description of the changes made by the patch should be added.”h]”hŒqThe patch is missing a commit description. A brief description of the changes made by the patch should be added.”…”�”}”(hjí��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjê��ubhÞ)�”}”(hŒaSee: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”(hŒSee: ”…”�”}”(hjû��h²hh³Nh´NubjŒ ��)�”}”(hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j��uh1j‹ ��hjû��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjê��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÏ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M hjÝ��ubjP ��)�”}”(hX��**EMAIL_SUBJECT** Naming the tool that found the issue is not very useful in the subject line. A good subject line summarizes the change that the patch brings. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes ”h]”(jV ��)�”}”(hŒ**EMAIL_SUBJECT**”h]”j\ ��)�”}”(hj*��h]”hŒ EMAIL_SUBJECT”…”�”}”(hj,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj(��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M'hj$��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒŽNaming the tool that found the issue is not very useful in the subject line. A good subject line summarizes the change that the patch brings.”h]”hŒŽNaming the tool that found the issue is not very useful in the subject line. A good subject line summarizes the change that the patch brings.”…”�”}”(hjB��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M#hj?��ubhÞ)�”}”(hŒaSee: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”(hŒSee: ”…”�”}”(hjP��h²hh³Nh´NubjŒ ��)�”}”(hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”…”�”}”(hjX��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jZ��uh1j‹ ��hjP��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M'hj?��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj$��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M'hjÝ��ubjP ��)�”}”(hX‡��**FROM_SIGN_OFF_MISMATCH** The author's email does not match with that in the Signed-off-by: line(s). This can be sometimes caused due to an improperly configured email client. This message is emitted due to any of the following reasons:: - The email names do not match. - The email addresses do not match. - The email subaddresses do not match. - The email comments do not match. ”h]”(jV ��)�”}”(hŒ**FROM_SIGN_OFF_MISMATCH**”h]”j\ ��)�”}”(hj��h]”hŒFROM_SIGN_OFF_MISMATCH”…”�”}”(hj���h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj}��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M3hjy��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ•The author's email does not match with that in the Signed-off-by: line(s). This can be sometimes caused due to an improperly configured email client.”h]”hŒ—The author’s email does not match with that in the Signed-off-by: line(s). This can be sometimes caused due to an improperly configured email client.”…”�”}”(hj—��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M*hj”��ubhÞ)�”}”(hŒ=This message is emitted due to any of the following reasons::”h]”hŒ<This message is emitted due to any of the following reasons:”…”�”}”(hj¥��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M.hj”��ubj)��)�”}”(hŒ�- The email names do not match. - The email addresses do not match. - The email subaddresses do not match. - The email comments do not match.”h]”hŒ�- The email names do not match. - The email addresses do not match. - The email subaddresses do not match. - The email comments do not match.”…”�”}”hj³��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M0hj”��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjy��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M3hjÝ��ubjP ��)�”}”(hX��**MISSING_SIGN_OFF** The patch is missing a Signed-off-by line. A signed-off-by line should be added according to Developer's certificate of Origin. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin ”h]”(jV ��)�”}”(hŒ**MISSING_SIGN_OFF**”h]”j\ ��)�”}”(hjÓ��h]”hŒMISSING_SIGN_OFF”…”�”}”(hjÕ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÑ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M:hjÍ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ€The patch is missing a Signed-off-by line. A signed-off-by line should be added according to Developer's certificate of Origin.”h]”hŒ‚The patch is missing a Signed-off-by line. A signed-off-by line should be added according to Developer’s certificate of Origin.”…”�”}”(hjë��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M6hjè��ubhÞ)�”}”(hŒ€See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin”h]”(hŒSee: ”…”�”}”(hjù��h²hh³Nh´NubjŒ ��)�”}”(hŒ{https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin”h]”hŒ{https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j��uh1j‹ ��hjù��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M:hjè��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÍ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M:hjÝ��ubjP ��)�”}”(hX ��**NO_AUTHOR_SIGN_OFF** The author of the patch has not signed off the patch. It is required that a simple sign off line should be present at the end of explanation of the patch to denote that the author has written it or otherwise has the rights to pass it on as an open source patch. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin ”h]”(jV ��)�”}”(hŒ**NO_AUTHOR_SIGN_OFF**”h]”j\ ��)�”}”(hj(��h]”hŒNO_AUTHOR_SIGN_OFF”…”�”}”(hj*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj&��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MChj"��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hX��The author of the patch has not signed off the patch. It is required that a simple sign off line should be present at the end of explanation of the patch to denote that the author has written it or otherwise has the rights to pass it on as an open source patch.”h]”hX��The author of the patch has not signed off the patch. It is required that a simple sign off line should be present at the end of explanation of the patch to denote that the author has written it or otherwise has the rights to pass it on as an open source patch.”…”�”}”(hj@��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M=hj=��ubhÞ)�”}”(hŒ€See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin”h]”(hŒSee: ”…”�”}”(hjN��h²hh³Nh´NubjŒ ��)�”}”(hŒ{https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin”h]”hŒ{https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin”…”�”}”(hjV��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jX��uh1j‹ ��hjN��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MChj=��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj"��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MChjÝ��ubjP ��)�”}”(hXN��**DIFF_IN_COMMIT_MSG** Avoid having diff content in commit message. This causes problems when one tries to apply a file containing both the changelog and the diff because patch(1) tries to apply the diff which it found in the changelog. See: https://lore.kernel.org/lkml/20150611134006.9df79a893e3636019ad2759e@linux-foundation.org/ ”h]”(jV ��)�”}”(hŒ**DIFF_IN_COMMIT_MSG**”h]”j\ ��)�”}”(hj}��h]”hŒDIFF_IN_COMMIT_MSG”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj{��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MKhjw��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒÕAvoid having diff content in commit message. This causes problems when one tries to apply a file containing both the changelog and the diff because patch(1) tries to apply the diff which it found in the changelog.”h]”hŒÕAvoid having diff content in commit message. This causes problems when one tries to apply a file containing both the changelog and the diff because patch(1) tries to apply the diff which it found in the changelog.”…”�”}”(hj•��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MFhj’��ubhÞ)�”}”(hŒ_See: https://lore.kernel.org/lkml/20150611134006.9df79a893e3636019ad2759e@linux-foundation.org/”h]”(hŒSee: ”…”�”}”(hj£��h²hh³Nh´NubjŒ ��)�”}”(hŒZhttps://lore.kernel.org/lkml/20150611134006.9df79a893e3636019ad2759e@linux-foundation.org/”h]”hŒZhttps://lore.kernel.org/lkml/20150611134006.9df79a893e3636019ad2759e@linux-foundation.org/”…”�”}”(hj«��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j­��uh1j‹ ��hj£��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MKhj’��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjw��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MKhjÝ��ubjP ��)�”}”(hX��**GERRIT_CHANGE_ID** To be picked up by gerrit, the footer of the commit message might have a Change-Id like:: Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b Signed-off-by: A. U. Thor <author@example.com> The Change-Id line must be removed before submitting. ”h]”(jV ��)�”}”(hŒ**GERRIT_CHANGE_ID**”h]”j\ ��)�”}”(hjÒ��h]”hŒGERRIT_CHANGE_ID”…”�”}”(hjÔ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÐ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MThjÌ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒYTo be picked up by gerrit, the footer of the commit message might have a Change-Id like::”h]”hŒXTo be picked up by gerrit, the footer of the commit message might have a Change-Id like:”…”�”}”(hjê��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MNhjç��ubj)��)�”}”(hŒcChange-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b Signed-off-by: A. U. Thor <author@example.com>”h]”hŒcChange-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b Signed-off-by: A. U. Thor <author@example.com>”…”�”}”hjø��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MQhjç��ubhÞ)�”}”(hŒ5The Change-Id line must be removed before submitting.”h]”hŒ5The Change-Id line must be removed before submitting.”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MThjç��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÌ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MThjÝ��ubjP ��)�”}”(hX›��**GIT_COMMIT_ID** The proper way to reference a commit id is: commit <12+ chars of sha1> ("<title line>") An example may be:: Commit e21d2170f36602ae2708 ("video: remove unnecessary platform_set_drvdata()") removed the unnecessary platform_set_drvdata(), but left the variable "dev" unused, delete it. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes ”h]”(jV ��)�”}”(hŒ**GIT_COMMIT_ID**”h]”j\ ��)�”}”(hj&��h]”hŒ GIT_COMMIT_ID”…”�”}”(hj(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj$��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mahj ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒWThe proper way to reference a commit id is: commit <12+ chars of sha1> ("<title line>")”h]”hŒ[The proper way to reference a commit id is: commit <12+ chars of sha1> (“<title line>â€�)”…”�”}”(hj>��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MWhj;��ubhÞ)�”}”(hŒAn example may be::”h]”hŒAn example may be:”…”�”}”(hjL��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MZhj;��ubj)��)�”}”(hŒ¯Commit e21d2170f36602ae2708 ("video: remove unnecessary platform_set_drvdata()") removed the unnecessary platform_set_drvdata(), but left the variable "dev" unused, delete it.”h]”hŒ¯Commit e21d2170f36602ae2708 ("video: remove unnecessary platform_set_drvdata()") removed the unnecessary platform_set_drvdata(), but left the variable "dev" unused, delete it.”…”�”}”hjZ��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M\hj;��ubhÞ)�”}”(hŒaSee: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”(hŒSee: ”…”�”}”(hjh��h²hh³Nh´NubjŒ ��)�”}”(hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”…”�”}”(hjp��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jr��uh1j‹ ��hjh��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mahj;��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MahjÝ��ubjP ��)�”}”(hXA��**BAD_FIXES_TAG** The Fixes: tag is malformed or does not follow the community conventions. This can occur if the tag have been split into multiple lines (e.g., when pasted in an email program with word wrapping enabled). See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes ”h]”(jV ��)�”}”(hŒ**BAD_FIXES_TAG**”h]”j\ ��)�”}”(hj—��h]”hŒ BAD_FIXES_TAG”…”�”}”(hj™��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj•��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhhj‘��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒËThe Fixes: tag is malformed or does not follow the community conventions. This can occur if the tag have been split into multiple lines (e.g., when pasted in an email program with word wrapping enabled).”h]”hŒËThe Fixes: tag is malformed or does not follow the community conventions. This can occur if the tag have been split into multiple lines (e.g., when pasted in an email program with word wrapping enabled).”…”�”}”(hj¯��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mdhj¬��ubhÞ)�”}”(hŒaSee: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”(hŒSee: ”…”�”}”(hj½��h²hh³Nh´NubjŒ ��)�”}”(hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”h]”hŒ\https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes”…”�”}”(hjÅ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jÇ��uh1j‹ ��hj½��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhhj¬��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj‘��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MhhjÝ��ubjP ��)�”}”(hŒÕ**BAD_COMMIT_SEPARATOR** The commit separator is a single line with 3 dashes. The regex match is '^---$' Lines that start with 3 dashes and have more content on the same line may confuse tools that apply patches. ”h]”(jV ��)�”}”(hŒ**BAD_COMMIT_SEPARATOR**”h]”j\ ��)�”}”(hjì��h]”hŒBAD_COMMIT_SEPARATOR”…”�”}”(hjî��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjê��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mnhjæ��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒ»The commit separator is a single line with 3 dashes. The regex match is '^---$' Lines that start with 3 dashes and have more content on the same line may confuse tools that apply patches.”h]”hŒ¿The commit separator is a single line with 3 dashes. The regex match is ‘^---$’ Lines that start with 3 dashes and have more content on the same line may confuse tools that apply patches.”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mkhj��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjæ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MnhjÝ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hjÙ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´MhjÈ��h²hubeh}”(h]”Œcommit-message”ah ]”h"]”Œcommit message”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒComparison style”h]”hŒComparison style”…”�”}”(hj5��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj2��h²hh³hÇh´MqubjG��)�”}”(hXZ��**ASSIGN_IN_IF** Do not use assignments in if condition. Example:: if ((foo = bar(...)) < BAZ) { should be written as:: foo = bar(...); if (foo < BAZ) { **BOOL_COMPARISON** Comparisons of A to true and false are better written as A and !A. See: https://lore.kernel.org/lkml/1365563834.27174.12.camel@joe-AO722/ **COMPARISON_TO_NULL** Comparisons to NULL in the form (foo == NULL) or (foo != NULL) are better written as (!foo) and (foo). **CONSTANT_COMPARISON** Comparisons with a constant or upper case identifier on the left side of the test should be avoided. ”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒ¢**ASSIGN_IN_IF** Do not use assignments in if condition. Example:: if ((foo = bar(...)) < BAZ) { should be written as:: foo = bar(...); if (foo < BAZ) { ”h]”(jV ��)�”}”(hŒ**ASSIGN_IN_IF**”h]”j\ ��)�”}”(hjP��h]”hŒ ASSIGN_IN_IF”…”�”}”(hjR��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjN��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M|hjJ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ1Do not use assignments in if condition. Example::”h]”hŒ0Do not use assignments in if condition. Example:”…”�”}”(hjh��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mthje��ubj)��)�”}”(hŒif ((foo = bar(...)) < BAZ) {”h]”hŒif ((foo = bar(...)) < BAZ) {”…”�”}”hjv��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mwhje��ubhÞ)�”}”(hŒshould be written as::”h]”hŒshould be written as:”…”�”}”(hj„��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Myhje��ubj)��)�”}”(hŒ foo = bar(...); if (foo < BAZ) {”h]”hŒ foo = bar(...); if (foo < BAZ) {”…”�”}”hj’��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M{hje��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjJ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M|hjG��ubjP ��)�”}”(hŒŸ**BOOL_COMPARISON** Comparisons of A to true and false are better written as A and !A. See: https://lore.kernel.org/lkml/1365563834.27174.12.camel@joe-AO722/ ”h]”(jV ��)�”}”(hŒ**BOOL_COMPARISON**”h]”j\ ��)�”}”(hj²��h]”hŒBOOL_COMPARISON”…”�”}”(hj´��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj°��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M‚hj¬��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒBComparisons of A to true and false are better written as A and !A.”h]”hŒBComparisons of A to true and false are better written as A and !A.”…”�”}”(hjÊ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjÇ��ubhÞ)�”}”(hŒFSee: https://lore.kernel.org/lkml/1365563834.27174.12.camel@joe-AO722/”h]”(hŒSee: ”…”�”}”(hjØ��h²hh³Nh´NubjŒ ��)�”}”(hŒAhttps://lore.kernel.org/lkml/1365563834.27174.12.camel@joe-AO722/”h]”hŒAhttps://lore.kernel.org/lkml/1365563834.27174.12.camel@joe-AO722/”…”�”}”(hjà��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jâ��uh1j‹ ��hjØ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‚hjÇ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj¬��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M‚hjG��ubjP ��)�”}”(hŒ~**COMPARISON_TO_NULL** Comparisons to NULL in the form (foo == NULL) or (foo != NULL) are better written as (!foo) and (foo). ”h]”(jV ��)�”}”(hŒ**COMPARISON_TO_NULL**”h]”j\ ��)�”}”(hj��h]”hŒCOMPARISON_TO_NULL”…”�”}”(hj ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M†hj��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒfComparisons to NULL in the form (foo == NULL) or (foo != NULL) are better written as (!foo) and (foo).”h]”hŒfComparisons to NULL in the form (foo == NULL) or (foo != NULL) are better written as (!foo) and (foo).”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M…hj��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M†hjG��ubjP ��)�”}”(hŒ~**CONSTANT_COMPARISON** Comparisons with a constant or upper case identifier on the left side of the test should be avoided. ”h]”(jV ��)�”}”(hŒ**CONSTANT_COMPARISON**”h]”j\ ��)�”}”(hj?��h]”hŒCONSTANT_COMPARISON”…”�”}”(hjA��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj=��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M‹hj9��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒdComparisons with a constant or upper case identifier on the left side of the test should be avoided.”h]”hŒdComparisons with a constant or upper case identifier on the left side of the test should be avoided.”…”�”}”(hjW��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‰hjT��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj9��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M‹hjG��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hjC��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´Mshj2��h²hubeh}”(h]”Œcomparison-style”ah ]”h"]”Œcomparison style”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´MqubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒIndentation and Line Breaks”h]”hŒIndentation and Line Breaks”…”�”}”(hjˆ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj…��h²hh³hÇh´MŽubjG��)�”}”(hX@��**CODE_INDENT** Code indent should use tabs instead of spaces. Outside of comments, documentation and Kconfig, spaces are never used for indentation. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation **DEEP_INDENTATION** Indentation with 6 or more tabs usually indicate overly indented code. It is suggested to refactor excessive indentation of if/else/for/do/while/switch statements. See: https://lore.kernel.org/lkml/1328311239.21255.24.camel@joe2Laptop/ **SWITCH_CASE_INDENT_LEVEL** switch should be at the same indent as case. Example:: switch (suffix) { case 'G': case 'g': mem <<= 30; break; case 'M': case 'm': mem <<= 20; break; case 'K': case 'k': mem <<= 10; fallthrough; default: break; } See: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation **LONG_LINE** The line has exceeded the specified maximum length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch. Earlier, the default line length was 80 columns. Commit bdc48fa11e46 ("checkpatch/coding-style: deprecate 80-column warning") increased the limit to 100 columns. This is not a hard limit either and it's preferable to stay within 80 columns whenever possible. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings **LONG_LINE_STRING** A string starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings **LONG_LINE_COMMENT** A comment starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings **SPLIT_STRING** Quoted strings that appear as messages in userspace and can be grepped, should not be split across multiple lines. See: https://lore.kernel.org/lkml/20120203052727.GA15035@leaf/ **MULTILINE_DEREFERENCE** A single dereferencing identifier spanned on multiple lines like:: struct_identifier->member[index]. member = <foo>; is generally hard to follow. It can easily lead to typos and so makes the code vulnerable to bugs. If fixing the multiple line dereferencing leads to an 80 column violation, then either rewrite the code in a more simple way or if the starting part of the dereferencing identifier is the same and used at multiple places then store it in a temporary variable, and use that temporary variable only at all the places. For example, if there are two dereferencing identifiers:: member1->member2->member3.foo1; member1->member2->member3.foo2; then store the member1->member2->member3 part in a temporary variable. It not only helps to avoid the 80 column violation but also reduces the program size by removing the unnecessary dereferences. But if none of the above methods work then ignore the 80 column violation because it is much easier to read a dereferencing identifier on a single line. **TRAILING_STATEMENTS** Trailing statements (for example after any conditional) should be on the next line. Statements, such as:: if (x == y) break; should be:: if (x == y) break; ”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒé**CODE_INDENT** Code indent should use tabs instead of spaces. Outside of comments, documentation and Kconfig, spaces are never used for indentation. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation ”h]”(jV ��)�”}”(hŒ**CODE_INDENT**”h]”j\ ��)�”}”(hj£��h]”hŒ CODE_INDENT”…”�”}”(hj¥��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj¡��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M•hj���ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ…Code indent should use tabs instead of spaces. Outside of comments, documentation and Kconfig, spaces are never used for indentation.”h]”hŒ…Code indent should use tabs instead of spaces. Outside of comments, documentation and Kconfig, spaces are never used for indentation.”…”�”}”(hj»��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‘hj¸��ubhÞ)�”}”(hŒQSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation”h]”(hŒSee: ”…”�”}”(hjÉ��h²hh³Nh´NubjŒ ��)�”}”(hŒLhttps://www.kernel.org/doc/html/latest/process/coding-style.html#indentation”h]”hŒLhttps://www.kernel.org/doc/html/latest/process/coding-style.html#indentation”…”�”}”(hjÑ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jÓ��uh1j‹ ��hjÉ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M•hj¸��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj���ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M•hjš��ubjP ��)�”}”(hX��**DEEP_INDENTATION** Indentation with 6 or more tabs usually indicate overly indented code. It is suggested to refactor excessive indentation of if/else/for/do/while/switch statements. See: https://lore.kernel.org/lkml/1328311239.21255.24.camel@joe2Laptop/ ”h]”(jV ��)�”}”(hŒ**DEEP_INDENTATION**”h]”j\ ��)�”}”(hjø��h]”hŒDEEP_INDENTATION”…”�”}”(hjú��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjö��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mžhjò��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒFIndentation with 6 or more tabs usually indicate overly indented code.”h]”hŒFIndentation with 6 or more tabs usually indicate overly indented code.”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M˜hj ��ubhÞ)�”}”(hŒ\It is suggested to refactor excessive indentation of if/else/for/do/while/switch statements.”h]”hŒ\It is suggested to refactor excessive indentation of if/else/for/do/while/switch statements.”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M›hj ��ubhÞ)�”}”(hŒGSee: https://lore.kernel.org/lkml/1328311239.21255.24.camel@joe2Laptop/”h]”(hŒSee: ”…”�”}”(hj,��h²hh³Nh´NubjŒ ��)�”}”(hŒBhttps://lore.kernel.org/lkml/1328311239.21255.24.camel@joe2Laptop/”h]”hŒBhttps://lore.kernel.org/lkml/1328311239.21255.24.camel@joe2Laptop/”…”�”}”(hj4��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j6��uh1j‹ ��hj,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mžhj ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjò��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mžhjš��ubjP ��)�”}”(hXŸ��**SWITCH_CASE_INDENT_LEVEL** switch should be at the same indent as case. Example:: switch (suffix) { case 'G': case 'g': mem <<= 30; break; case 'M': case 'm': mem <<= 20; break; case 'K': case 'k': mem <<= 10; fallthrough; default: break; } See: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation ”h]”(jV ��)�”}”(hŒ**SWITCH_CASE_INDENT_LEVEL**”h]”j\ ��)�”}”(hj[��h]”hŒSWITCH_CASE_INDENT_LEVEL”…”�”}”(hj]��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjY��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MµhjU��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ6switch should be at the same indent as case. Example::”h]”hŒ5switch should be at the same indent as case. Example:”…”�”}”(hjs��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¡hjp��ubj)��)�”}”(hŒÖswitch (suffix) { case 'G': case 'g': mem <<= 30; break; case 'M': case 'm': mem <<= 20; break; case 'K': case 'k': mem <<= 10; fallthrough; default: break; }”•²�����h]”hŒÖswitch (suffix) { case 'G': case 'g': mem <<= 30; break; case 'M': case 'm': mem <<= 20; break; case 'K': case 'k': mem <<= 10; fallthrough; default: break; }”…”�”}”hj���sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M¤hjp��ubhÞ)�”}”(hŒQSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation”h]”(hŒSee: ”…”�”}”(hj���h²hh³Nh´NubjŒ ��)�”}”(hŒLhttps://www.kernel.org/doc/html/latest/process/coding-style.html#indentation”h]”hŒLhttps://www.kernel.org/doc/html/latest/process/coding-style.html#indentation”…”�”}”(hj—��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j™��uh1j‹ ��hj���ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mµhjp��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjU��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mµhjš��ubjP ��)�”}”(hX��**LONG_LINE** The line has exceeded the specified maximum length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch. Earlier, the default line length was 80 columns. Commit bdc48fa11e46 ("checkpatch/coding-style: deprecate 80-column warning") increased the limit to 100 columns. This is not a hard limit either and it's preferable to stay within 80 columns whenever possible. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings ”h]”(jV ��)�”}”(hŒ **LONG_LINE**”h]”j\ ��)�”}”(hj¾��h]”hŒ LONG_LINE”…”�”}”(hjÀ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj¼��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÁhj¸��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ¢The line has exceeded the specified maximum length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch.”h]”hŒ¢The line has exceeded the specified maximum length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch.”…”�”}”(hjÖ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¸hjÓ��ubhÞ)�”}”(hX��Earlier, the default line length was 80 columns. Commit bdc48fa11e46 ("checkpatch/coding-style: deprecate 80-column warning") increased the limit to 100 columns. This is not a hard limit either and it's preferable to stay within 80 columns whenever possible.”h]”hX ��Earlier, the default line length was 80 columns. Commit bdc48fa11e46 (“checkpatch/coding-style: deprecate 80-column warningâ€�) increased the limit to 100 columns. This is not a hard limit either and it’s preferable to stay within 80 columns whenever possible.”…”�”}”(hjä��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¼hjÓ��ubhÞ)�”}”(hŒeSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”h]”(hŒSee: ”…”�”}”(hjò��h²hh³Nh´NubjŒ ��)�”}”(hŒ`https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”h]”hŒ`https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”…”�”}”(hjú��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jü��uh1j‹ ��hjò��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÁhjÓ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj¸��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÁhjš��ubjP ��)�”}”(hX.��**LONG_LINE_STRING** A string starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings ”h]”(jV ��)�”}”(hŒ**LONG_LINE_STRING**”h]”j\ ��)�”}”(hj!��h]”hŒLONG_LINE_STRING”…”�”}”(hj#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÈhj��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ±A string starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch.”h]”hŒ±A string starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch.”…”�”}”(hj9��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÄhj6��ubhÞ)�”}”(hŒeSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”h]”(hŒSee: ”…”�”}”(hjG��h²hh³Nh´NubjŒ ��)�”}”(hŒ`https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”h]”hŒ`https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”…”�”}”(hjO��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jQ��uh1j‹ ��hjG��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÈhj6��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÈhjš��ubjP ��)�”}”(hX0��**LONG_LINE_COMMENT** A comment starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings ”h]”(jV ��)�”}”(hŒ**LONG_LINE_COMMENT**”h]”j\ ��)�”}”(hjv��h]”hŒLONG_LINE_COMMENT”…”�”}”(hjx��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjt��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÏhjp��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ²A comment starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch.”h]”hŒ²A comment starts before but extends beyond the maximum line length. To use a different maximum line length, the --max-line-length=n option may be added while invoking checkpatch.”…”�”}”(hjŽ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MËhj‹��ubhÞ)�”}”(hŒeSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”h]”(hŒSee: ”…”�”}”(hjœ��h²hh³Nh´NubjŒ ��)�”}”(hŒ`https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”h]”hŒ`https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings”…”�”}”(hj¤��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j¦��uh1j‹ ��hjœ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÏhj‹��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjp��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÏhjš��ubjP ��)�”}”(hŒÄ**SPLIT_STRING** Quoted strings that appear as messages in userspace and can be grepped, should not be split across multiple lines. See: https://lore.kernel.org/lkml/20120203052727.GA15035@leaf/ ”h]”(jV ��)�”}”(hŒ**SPLIT_STRING**”h]”j\ ��)�”}”(hjË��h]”hŒ SPLIT_STRING”…”�”}”(hjÍ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÉ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÕhjÅ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒrQuoted strings that appear as messages in userspace and can be grepped, should not be split across multiple lines.”h]”hŒrQuoted strings that appear as messages in userspace and can be grepped, should not be split across multiple lines.”…”�”}”(hjã��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÒhjà��ubhÞ)�”}”(hŒ>See: https://lore.kernel.org/lkml/20120203052727.GA15035@leaf/”h]”(hŒSee: ”…”�”}”(hjñ��h²hh³Nh´NubjŒ ��)�”}”(hŒ9https://lore.kernel.org/lkml/20120203052727.GA15035@leaf/”h]”hŒ9https://lore.kernel.org/lkml/20120203052727.GA15035@leaf/”…”�”}”(hjù��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jû��uh1j‹ ��hjñ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÕhjà��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÅ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÕhjš��ubjP ��)�”}”(hX��**MULTILINE_DEREFERENCE** A single dereferencing identifier spanned on multiple lines like:: struct_identifier->member[index]. member = <foo>; is generally hard to follow. It can easily lead to typos and so makes the code vulnerable to bugs. If fixing the multiple line dereferencing leads to an 80 column violation, then either rewrite the code in a more simple way or if the starting part of the dereferencing identifier is the same and used at multiple places then store it in a temporary variable, and use that temporary variable only at all the places. For example, if there are two dereferencing identifiers:: member1->member2->member3.foo1; member1->member2->member3.foo2; then store the member1->member2->member3 part in a temporary variable. It not only helps to avoid the 80 column violation but also reduces the program size by removing the unnecessary dereferences. But if none of the above methods work then ignore the 80 column violation because it is much easier to read a dereferencing identifier on a single line. ”h]”(jV ��)�”}”(hŒ**MULTILINE_DEREFERENCE**”h]”j\ ��)�”}”(hj ��h]”hŒMULTILINE_DEREFERENCE”…”�”}”(hj"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mðhj��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒBA single dereferencing identifier spanned on multiple lines like::”h]”hŒAA single dereferencing identifier spanned on multiple lines like:”…”�”}”(hj8��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MØhj5��ubj)��)�”}”(hŒ1struct_identifier->member[index]. member = <foo>;”h]”hŒ1struct_identifier->member[index]. member = <foo>;”…”�”}”hjF��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MÚhj5��ubhÞ)�”}”(hŒbis generally hard to follow. It can easily lead to typos and so makes the code vulnerable to bugs.”h]”hŒbis generally hard to follow. It can easily lead to typos and so makes the code vulnerable to bugs.”…”�”}”(hjT��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÝhj5��ubhÞ)�”}”(hXu��If fixing the multiple line dereferencing leads to an 80 column violation, then either rewrite the code in a more simple way or if the starting part of the dereferencing identifier is the same and used at multiple places then store it in a temporary variable, and use that temporary variable only at all the places. For example, if there are two dereferencing identifiers::”h]”hXt��If fixing the multiple line dereferencing leads to an 80 column violation, then either rewrite the code in a more simple way or if the starting part of the dereferencing identifier is the same and used at multiple places then store it in a temporary variable, and use that temporary variable only at all the places. For example, if there are two dereferencing identifiers:”…”�”}”(hjb��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Màhj5��ubj)��)�”}”(hŒ?member1->member2->member3.foo1; member1->member2->member3.foo2;”h]”hŒ?member1->member2->member3.foo1; member1->member2->member3.foo2;”…”�”}”hjp��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mçhj5��ubhÞ)�”}”(hŒÅthen store the member1->member2->member3 part in a temporary variable. It not only helps to avoid the 80 column violation but also reduces the program size by removing the unnecessary dereferences.”h]”hŒÅthen store the member1->member2->member3 part in a temporary variable. It not only helps to avoid the 80 column violation but also reduces the program size by removing the unnecessary dereferences.”…”�”}”(hj~��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mêhj5��ubhÞ)�”}”(hŒ˜But if none of the above methods work then ignore the 80 column violation because it is much easier to read a dereferencing identifier on a single line.”h]”hŒ˜But if none of the above methods work then ignore the 80 column violation because it is much easier to read a dereferencing identifier on a single line.”…”�”}”(hjŒ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mîhj5��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mðhjš��ubjP ��)�”}”(hŒÆ**TRAILING_STATEMENTS** Trailing statements (for example after any conditional) should be on the next line. Statements, such as:: if (x == y) break; should be:: if (x == y) break; ”h]”(jV ��)�”}”(hŒ**TRAILING_STATEMENTS**”h]”j\ ��)�”}”(hj¬��h]”hŒTRAILING_STATEMENTS”…”�”}”(hj®��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjª��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mýhj¦��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒiTrailing statements (for example after any conditional) should be on the next line. Statements, such as::”h]”hŒhTrailing statements (for example after any conditional) should be on the next line. Statements, such as:”…”�”}”(hjÄ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MóhjÁ��ubj)��)�”}”(hŒif (x == y) break;”h]”hŒif (x == y) break;”…”�”}”hjÒ��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M÷hjÁ��ubhÞ)�”}”(hŒ should be::”h]”hŒ should be:”…”�”}”(hjà��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MùhjÁ��ubj)��)�”}”(hŒif (x == y) break;”h]”hŒif (x == y) break;”…”�”}”hjî��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MûhjÁ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj¦��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mýhjš��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hj–��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´M�hj…��h²hubeh}”(h]”Œindentation-and-line-breaks”ah ]”h"]”Œindentation and line breaks”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´MŽubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒMacros, Attributes and Symbols”h]”hŒMacros, Attributes and Symbols”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj��h²hh³hÇh´M�ubjG��)�”}”(hXõ��**ARRAY_SIZE** The ARRAY_SIZE(foo) macro should be preferred over sizeof(foo)/sizeof(foo[0]) for finding number of elements in an array. The macro is defined in include/linux/array_size.h:: #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) **AVOID_EXTERNS** Function prototypes don't need to be declared extern in .h files. It's assumed by the compiler and is unnecessary. **AVOID_L_PREFIX** Local symbol names that are prefixed with `.L` should be avoided, as this has special meaning for the assembler; a symbol entry will not be emitted into the symbol table. This can prevent `objtool` from generating correct unwind info. Symbols with STB_LOCAL binding may still be used, and `.L` prefixed local symbol names are still generally usable within a function, but `.L` prefixed local symbol names should not be used to denote the beginning or end of code regions via `SYM_CODE_START_LOCAL`/`SYM_CODE_END` **BIT_MACRO** Defines like: 1 << <digit> could be BIT(digit). The BIT() macro is defined via include/linux/bits.h:: #define BIT(nr) (1UL << (nr)) **CONST_READ_MOSTLY** When a variable is tagged with the __read_mostly annotation, it is a signal to the compiler that accesses to the variable will be mostly reads and rarely(but NOT never) a write. const __read_mostly does not make any sense as const data is already read-only. The __read_mostly annotation thus should be removed. **DATE_TIME** It is generally desirable that building the same source code with the same set of tools is reproducible, i.e. the output is always exactly the same. The kernel does *not* use the ``__DATE__`` and ``__TIME__`` macros, and enables warnings if they are used as they can lead to non-deterministic builds. See: https://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html#timestamps **DEFINE_ARCH_HAS** The ARCH_HAS_xyz and ARCH_HAVE_xyz patterns are wrong. For big conceptual features use Kconfig symbols instead. And for smaller things where we have compatibility fallback functions but want architectures able to override them with optimized ones, we should either use weak functions (appropriate for some cases), or the symbol that protects them should be the same symbol we use. See: https://lore.kernel.org/lkml/CA+55aFycQ9XJvEOsiM3txHL5bjUc8CeKWJNR_H+MiicaddB42Q@mail.gmail.com/ **DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON** do {} while(0) macros should not have a trailing semicolon. **INIT_ATTRIBUTE** Const init definitions should use __initconst instead of __initdata. Similarly init definitions without const require a separate use of const. **INLINE_LOCATION** The inline keyword should sit between storage class and type. For example, the following segment:: inline static int example_function(void) { ... } should be:: static inline int example_function(void) { ... } **MISPLACED_INIT** It is possible to use section markers on variables in a way which gcc doesn't understand (or at least not the way the developer intended):: static struct __initdata samsung_pll_clock exynos4_plls[nr_plls] = { does not put exynos4_plls in the .initdata section. The __initdata marker can be virtually anywhere on the line, except right after "struct". The preferred location is before the "=" sign if there is one, or before the trailing ";" otherwise. See: https://lore.kernel.org/lkml/1377655732.3619.19.camel@joe-AO722/ **MULTISTATEMENT_MACRO_USE_DO_WHILE** Macros with multiple statements should be enclosed in a do - while block. Same should also be the case for macros starting with `if` to avoid logic defects:: #define macrofun(a, b, c) \ do { \ if (a == 5) \ do_this(b, c); \ } while (0) See: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl **PREFER_FALLTHROUGH** Use the `fallthrough;` pseudo keyword instead of `/* fallthrough */` like comments. **TRAILING_SEMICOLON** Macro definition should not end with a semicolon. The macro invocation style should be consistent with function calls. This can prevent any unexpected code paths:: #define MAC do_something; If this macro is used within a if else statement, like:: if (some_condition) MAC; else do_something; Then there would be a compilation error, because when the macro is expanded there are two trailing semicolons, so the else branch gets orphaned. See: https://lore.kernel.org/lkml/1399671106.2912.21.camel@joe-AO725/ **MACRO_ARG_UNUSED** If function-like macros do not utilize a parameter, it might result in a build warning. We advocate for utilizing static inline functions to replace such macros. For example, for a macro such as the one below:: #define test(a) do { } while (0) there would be a warning like below:: WARNING: Argument 'a' is not used in function-like macro. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl **SINGLE_STATEMENT_DO_WHILE_MACRO** For the multi-statement macros, it is necessary to use the do-while loop to avoid unpredictable code paths. The do-while loop helps to group the multiple statements into a single one so that a function-like macro can be used as a function only. But for the single statement macros, it is unnecessary to use the do-while loop. Although the code is syntactically correct but using the do-while loop is redundant. So remove the do-while loop for single statement macros. **WEAK_DECLARATION** Using weak declarations like __attribute__((weak)) or __weak can have unintended link defects. Avoid using them. ”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒõ**ARRAY_SIZE** The ARRAY_SIZE(foo) macro should be preferred over sizeof(foo)/sizeof(foo[0]) for finding number of elements in an array. The macro is defined in include/linux/array_size.h:: #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) ”h]”(jV ��)�”}”(hŒ**ARRAY_SIZE**”h]”j\ ��)�”}”(hj:��h]”hŒ ARRAY_SIZE”…”�”}”(hj<��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj8��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M hj4��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒyThe ARRAY_SIZE(foo) macro should be preferred over sizeof(foo)/sizeof(foo[0]) for finding number of elements in an array.”h]”hŒyThe ARRAY_SIZE(foo) macro should be preferred over sizeof(foo)/sizeof(foo[0]) for finding number of elements in an array.”…”�”}”(hjR��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjO��ubhÞ)�”}”(hŒ4The macro is defined in include/linux/array_size.h::”h]”hŒ3The macro is defined in include/linux/array_size.h:”…”�”}”(hj`��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjO��ubj)��)�”}”(hŒ2#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))”h]”hŒ2#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))”…”�”}”hjn��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M hjO��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj4��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M hj1��ubjP ��)�”}”(hŒ†**AVOID_EXTERNS** Function prototypes don't need to be declared extern in .h files. It's assumed by the compiler and is unnecessary. ”h]”(jV ��)�”}”(hŒ**AVOID_EXTERNS**”h]”j\ ��)�”}”(hjŽ��h]”hŒ AVOID_EXTERNS”…”�”}”(hj���h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjŒ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M hjˆ��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒsFunction prototypes don't need to be declared extern in .h files. It's assumed by the compiler and is unnecessary.”h]”hŒwFunction prototypes don’t need to be declared extern in .h files. It’s assumed by the compiler and is unnecessary.”…”�”}”(hj¦��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hj£��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjˆ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M hj1��ubjP ��)�”}”(hX��**AVOID_L_PREFIX** Local symbol names that are prefixed with `.L` should be avoided, as this has special meaning for the assembler; a symbol entry will not be emitted into the symbol table. This can prevent `objtool` from generating correct unwind info. Symbols with STB_LOCAL binding may still be used, and `.L` prefixed local symbol names are still generally usable within a function, but `.L` prefixed local symbol names should not be used to denote the beginning or end of code regions via `SYM_CODE_START_LOCAL`/`SYM_CODE_END` ”h]”(jV ��)�”}”(hŒ**AVOID_L_PREFIX**”h]”j\ ��)�”}”(hjÆ��h]”hŒAVOID_L_PREFIX”…”�”}”(hjÈ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÄ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MhjÀ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒëLocal symbol names that are prefixed with `.L` should be avoided, as this has special meaning for the assembler; a symbol entry will not be emitted into the symbol table. This can prevent `objtool` from generating correct unwind info.”h]”(hŒ*Local symbol names that are prefixed with ”…”�”}”(hjÞ��h²hh³Nh´Nubj˜��)�”}”(hŒ`.L`”h]”hŒ.L”…”�”}”(hjæ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hjÞ��ubhŒ� should be avoided, as this has special meaning for the assembler; a symbol entry will not be emitted into the symbol table. This can prevent ”…”�”}”(hjÞ��h²hh³Nh´Nubj˜��)�”}”(hŒ `objtool`”h]”hŒobjtool”…”�”}”(hjø��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hjÞ��ubhŒ% from generating correct unwind info.”…”�”}”(hjÞ��h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjÛ��ubhÞ)�”}”(hX��Symbols with STB_LOCAL binding may still be used, and `.L` prefixed local symbol names are still generally usable within a function, but `.L` prefixed local symbol names should not be used to denote the beginning or end of code regions via `SYM_CODE_START_LOCAL`/`SYM_CODE_END`”h]”(hŒ6Symbols with STB_LOCAL binding may still be used, and ”…”�”}”(hj��h²hh³Nh´Nubj˜��)�”}”(hŒ`.L`”h]”hŒ.L”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hj��ubhŒO prefixed local symbol names are still generally usable within a function, but ”…”�”}”(hj��h²hh³Nh´Nubj˜��)�”}”(hŒ`.L`”h]”hŒ.L”…”�”}”(hj*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hj��ubhŒc prefixed local symbol names should not be used to denote the beginning or end of code regions via ”…”�”}”(hj��h²hh³Nh´Nubj˜��)�”}”(hŒ`SYM_CODE_START_LOCAL`”h]”hŒSYM_CODE_START_LOCAL”…”�”}”(hj<��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hj��ubhŒ/”…”�”}”(hj��h²hh³Nh´Nubj˜��)�”}”(hŒ`SYM_CODE_END`”h]”hŒ SYM_CODE_END”…”�”}”(hjN��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hj��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjÛ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÀ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mhj1��ubjP ��)�”}”(hŒ�**BIT_MACRO** Defines like: 1 << <digit> could be BIT(digit). The BIT() macro is defined via include/linux/bits.h:: #define BIT(nr) (1UL << (nr)) ”h]”(jV ��)�”}”(hŒ **BIT_MACRO**”h]”j\ ��)�”}”(hjt��h]”hŒ BIT_MACRO”…”�”}”(hjv��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjr��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhjn��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒeDefines like: 1 << <digit> could be BIT(digit). The BIT() macro is defined via include/linux/bits.h::”h]”hŒdDefines like: 1 << <digit> could be BIT(digit). The BIT() macro is defined via include/linux/bits.h:”…”�”}”(hjŒ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj‰��ubj)��)�”}”(hŒ%#define BIT(nr) (1UL << (nr))”h]”hŒ%#define BIT(nr) (1UL << (nr))”…”�”}”hjš��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mhj‰��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjn��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mhj1��ubjP ��)�”}”(hXO��**CONST_READ_MOSTLY** When a variable is tagged with the __read_mostly annotation, it is a signal to the compiler that accesses to the variable will be mostly reads and rarely(but NOT never) a write. const __read_mostly does not make any sense as const data is already read-only. The __read_mostly annotation thus should be removed. ”h]”(jV ��)�”}”(hŒ**CONST_READ_MOSTLY**”h]”j\ ��)�”}”(hjº��h]”hŒCONST_READ_MOSTLY”…”�”}”(hj¼��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj¸��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M'hj´��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ±When a variable is tagged with the __read_mostly annotation, it is a signal to the compiler that accesses to the variable will be mostly reads and rarely(but NOT never) a write.”h]”hŒ±When a variable is tagged with the __read_mostly annotation, it is a signal to the compiler that accesses to the variable will be mostly reads and rarely(but NOT never) a write.”…”�”}”(hjÒ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M"hjÏ��ubhÞ)�”}”(hŒ…const __read_mostly does not make any sense as const data is already read-only. The __read_mostly annotation thus should be removed.”h]”hŒ…const __read_mostly does not make any sense as const data is already read-only. The __read_mostly annotation thus should be removed.”…”�”}”(hjà��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M&hjÏ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj´��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M'hj1��ubjP ��)�”}”(hX”��**DATE_TIME** It is generally desirable that building the same source code with the same set of tools is reproducible, i.e. the output is always exactly the same. The kernel does *not* use the ``__DATE__`` and ``__TIME__`` macros, and enables warnings if they are used as they can lead to non-deterministic builds. See: https://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html#timestamps ”h]”(jV ��)�”}”(hŒ **DATE_TIME**”h]”j\ ��)�”}”(hj���h]”hŒ DATE_TIME”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjþ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M2hjú��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ”It is generally desirable that building the same source code with the same set of tools is reproducible, i.e. the output is always exactly the same.”h]”hŒ”It is generally desirable that building the same source code with the same set of tools is reproducible, i.e. the output is always exactly the same.”…”�”}”(hj��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M*hj��ubhÞ)�”}”(hŒ—The kernel does *not* use the ``__DATE__`` and ``__TIME__`` macros, and enables warnings if they are used as they can lead to non-deterministic builds.”h]”(hŒThe kernel does ”…”�”}”(hj&��h²hh³Nh´NubjÆ��)�”}”(hŒ*not*”h]”hŒnot”…”�”}”(hj.��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅ��hj&��ubhŒ use the ”…”�”}”(hj&��h²hh³Nh´Nubj’��)�”}”(hŒ ``__DATE__``”h]”hŒ__DATE__”…”�”}”(hj@��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘��hj&��ubhŒ and ”…”�”}”(hj&��h²hh³Nh´Nubj’��)�”}”(hŒ ``__TIME__``”h]”hŒ__TIME__”…”�”}”(hjR��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘��hj&��ubhŒ\ macros, and enables warnings if they are used as they can lead to non-deterministic builds.”…”�”}”(hj&��h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M.hj��ubhÞ)�”}”(hŒVSee: https://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html#timestamps”h]”(hŒSee: ”…”�”}”(hjj��h²hh³Nh´NubjŒ ��)�”}”(hŒQhttps://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html#timestamps”h]”hŒQhttps://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html#timestamps”…”�”}”(hjr��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jt��uh1j‹ ��hjj��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M2hj��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjú��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M2hj1��ubjP ��)�”}”(hXú��**DEFINE_ARCH_HAS** The ARCH_HAS_xyz and ARCH_HAVE_xyz patterns are wrong. For big conceptual features use Kconfig symbols instead. And for smaller things where we have compatibility fallback functions but want architectures able to override them with optimized ones, we should either use weak functions (appropriate for some cases), or the symbol that protects them should be the same symbol we use. See: https://lore.kernel.org/lkml/CA+55aFycQ9XJvEOsiM3txHL5bjUc8CeKWJNR_H+MiicaddB42Q@mail.gmail.com/ ”h]”(jV ��)�”}”(hŒ**DEFINE_ARCH_HAS**”h]”j\ ��)�”}”(hj™��h]”hŒDEFINE_ARCH_HAS”…”�”}”(hj›��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj—��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M=hj“��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ6The ARCH_HAS_xyz and ARCH_HAVE_xyz patterns are wrong.”h]”hŒ6The ARCH_HAS_xyz and ARCH_HAVE_xyz patterns are wrong.”…”�”}”(hj±��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M5hj®��ubhÞ)�”}”(hXF��For big conceptual features use Kconfig symbols instead. And for smaller things where we have compatibility fallback functions but want architectures able to override them with optimized ones, we should either use weak functions (appropriate for some cases), or the symbol that protects them should be the same symbol we use.”h]”hXF��For big conceptual features use Kconfig symbols instead. And for smaller things where we have compatibility fallback functions but want architectures able to override them with optimized ones, we should either use weak functions (appropriate for some cases), or the symbol that protects them should be the same symbol we use.”…”�”}”(hj¿��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M7hj®��ubhÞ)�”}”(hŒeSee: https://lore.kernel.org/lkml/CA+55aFycQ9XJvEOsiM3txHL5bjUc8CeKWJNR_H+MiicaddB42Q@mail.gmail.com/”h]”(hŒSee: ”…”�”}”(hjÍ��h²hh³Nh´NubjŒ ��)�”}”(hŒ`https://lore.kernel.org/lkml/CA+55aFycQ9XJvEOsiM3txHL5bjUc8CeKWJNR_H+MiicaddB42Q@mail.gmail.com/”h]”hŒ`https://lore.kernel.org/lkml/CA+55aFycQ9XJvEOsiM3txHL5bjUc8CeKWJNR_H+MiicaddB42Q@mail.gmail.com/”…”�”}”(hjÕ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j×��uh1j‹ ��hjÍ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M=hj®��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj“��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M=hj1��ubjP ��)�”}”(hŒg**DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON** do {} while(0) macros should not have a trailing semicolon. ”h]”(jV ��)�”}”(hŒ***DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON**”h]”j\ ��)�”}”(hjü��h]”hŒ&DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON”…”�”}”(hjþ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjú��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M@hjö��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒ;do {} while(0) macros should not have a trailing semicolon.”h]”hŒ;do {} while(0) macros should not have a trailing semicolon.”…”�”}”(hj ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M@hj ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjö��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M@hj1��ubjP ��)�”}”(hŒ£**INIT_ATTRIBUTE** Const init definitions should use __initconst instead of __initdata. Similarly init definitions without const require a separate use of const. ”h]”(jV ��)�”}”(hŒ**INIT_ATTRIBUTE**”h]”j\ ��)�”}”(hj4 ��h]”hŒINIT_ATTRIBUTE”…”�”}”(hj6 ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj2 ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MGhj. ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒDConst init definitions should use __initconst instead of __initdata.”h]”hŒDConst init definitions should use __initconst instead of __initdata.”…”�”}”(hjL ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MChjI ��ubhÞ)�”}”(hŒISimilarly init definitions without const require a separate use of const.”h]”hŒISimilarly init definitions without const require a separate use of const.”…”�”}”(hjZ ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MFhjI ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj. ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MGhj1��ubjP ��)�”}”(hX ��**INLINE_LOCATION** The inline keyword should sit between storage class and type. For example, the following segment:: inline static int example_function(void) { ... } should be:: static inline int example_function(void) { ... } ”h]”(jV ��)�”}”(hŒ**INLINE_LOCATION**”h]”j\ ��)�”}”(hjz ��h]”hŒINLINE_LOCATION”…”�”}”(hj| ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjx ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MXhjt ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ=The inline keyword should sit between storage class and type.”h]”hŒ=The inline keyword should sit between storage class and type.”…”�”}”(hj’ ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MJhj� ��ubhÞ)�”}”(hŒ$For example, the following segment::”h]”hŒ#For example, the following segment:”…”�”}”(hj  ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MLhj� ��ubj)��)�”}”(hŒ8inline static int example_function(void) { ... }”h]”hŒ8inline static int example_function(void) { ... }”…”�”}”hj® ��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MNhj� ��ubhÞ)�”}”(hŒ should be::”h]”hŒ should be:”…”�”}”(hj¼ ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MShj� ��ubj)��)�”}”(hŒ8static inline int example_function(void) { ... }”h]”hŒ8static inline int example_function(void) { ... }”…”�”}”hjÊ ��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MUhj� ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjt ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MXhj1��ubjP ��)�”}”(hX"��**MISPLACED_INIT** It is possible to use section markers on variables in a way which gcc doesn't understand (or at least not the way the developer intended):: static struct __initdata samsung_pll_clock exynos4_plls[nr_plls] = { does not put exynos4_plls in the .initdata section. The __initdata marker can be virtually anywhere on the line, except right after "struct". The preferred location is before the "=" sign if there is one, or before the trailing ";" otherwise. See: https://lore.kernel.org/lkml/1377655732.3619.19.camel@joe-AO722/ ”h]”(jV ��)�”}”(hŒ**MISPLACED_INIT**”h]”j\ ��)�”}”(hjê ��h]”hŒMISPLACED_INIT”…”�”}”(hjì ��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjè ��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mfhjä ��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ‹It is possible to use section markers on variables in a way which gcc doesn't understand (or at least not the way the developer intended)::”h]”hŒŒIt is possible to use section markers on variables in a way which gcc doesn’t understand (or at least not the way the developer intended):”…”�”}”(hj!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M[hjÿ ��ubj)��)�”}”(hŒDstatic struct __initdata samsung_pll_clock exynos4_plls[nr_plls] = {”h]”hŒDstatic struct __initdata samsung_pll_clock exynos4_plls[nr_plls] = {”…”�”}”hj!��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M_hjÿ ��ubhÞ)�”}”(hŒòdoes not put exynos4_plls in the .initdata section. The __initdata marker can be virtually anywhere on the line, except right after "struct". The preferred location is before the "=" sign if there is one, or before the trailing ";" otherwise.”h]”hŒþdoes not put exynos4_plls in the .initdata section. The __initdata marker can be virtually anywhere on the line, except right after “structâ€�. The preferred location is before the “=â€� sign if there is one, or before the trailing “;â€� otherwise.”…”�”}”(hj!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mahjÿ ��ubhÞ)�”}”(hŒESee: https://lore.kernel.org/lkml/1377655732.3619.19.camel@joe-AO722/”h]”(hŒSee: ”…”�”}”(hj,!��h²hh³Nh´NubjŒ ��)�”}”(hŒ@https://lore.kernel.org/lkml/1377655732.3619.19.camel@joe-AO722/”h]”hŒ@https://lore.kernel.org/lkml/1377655732.3619.19.camel@joe-AO722/”…”�”}”(hj4!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j6!��uh1j‹ ��hj,!��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mfhjÿ ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjä ��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mfhj1��ubjP ��)�”}”(hXê��**MULTISTATEMENT_MACRO_USE_DO_WHILE** Macros with multiple statements should be enclosed in a do - while block. Same should also be the case for macros starting with `if` to avoid logic defects:: #define macrofun(a, b, c) \ do { \ if (a == 5) \ do_this(b, c); \ } while (0) See: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl ”h]”(jV ��)�”}”(hŒ%**MULTISTATEMENT_MACRO_USE_DO_WHILE**”h]”j\ ��)�”}”(hj[!��h]”hŒ!MULTISTATEMENT_MACRO_USE_DO_WHILE”…”�”}”(hj]!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjY!��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MshjU!��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒžMacros with multiple statements should be enclosed in a do - while block. Same should also be the case for macros starting with `if` to avoid logic defects::”h]”(hŒ�Macros with multiple statements should be enclosed in a do - while block. Same should also be the case for macros starting with ”…”�”}”(hjs!��h²hh³Nh´Nubj˜��)�”}”(hŒ`if`”h]”hŒif”…”�”}”(hj{!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hjs!��ubhŒ to avoid logic defects:”…”�”}”(hjs!��h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mihjp!��ubj)��)�”}”(hŒ½#define macrofun(a, b, c) \ do { \ if (a == 5) \ do_this(b, c); \ } while (0)”h]”hŒ½#define macrofun(a, b, c) \ do { \ if (a == 5) \ do_this(b, c); \ } while (0)”…”�”}”hj“!��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mmhjp!��ubhÞ)�”}”(hŒZSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl”h]”(hŒSee: ”…”�”}”(hj¡!��h²hh³Nh´NubjŒ ��)�”}”(hŒUhttps://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl”h]”hŒUhttps://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl”…”�”}”(hj©!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j«!��uh1j‹ ��hj¡!��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mshjp!��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjU!��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mshj1��ubjP ��)�”}”(hŒk**PREFER_FALLTHROUGH** Use the `fallthrough;` pseudo keyword instead of `/* fallthrough */` like comments. ”h]”(jV ��)�”}”(hŒ**PREFER_FALLTHROUGH**”h]”j\ ��)�”}”(hjÐ!��h]”hŒPREFER_FALLTHROUGH”…”�”}”(hjÒ!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÎ!��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MwhjÊ!��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒSUse the `fallthrough;` pseudo keyword instead of `/* fallthrough */` like comments.”h]”(hŒUse the ”…”�”}”(hjè!��h²hh³Nh´Nubj˜��)�”}”(hŒ`fallthrough;`”h]”hŒ fallthrough;”…”�”}”(hjð!��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hjè!��ubhŒ pseudo keyword instead of ”…”�”}”(hjè!��h²hh³Nh´Nubj˜��)�”}”(hŒ`/* fallthrough */`”h]”hŒ/* fallthrough */”…”�”}”(hj"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hjè!��ubhŒ like comments.”…”�”}”(hjè!��h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mvhjå!��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÊ!��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mwhj1��ubjP ��)�”}”(hX1��**TRAILING_SEMICOLON** Macro definition should not end with a semicolon. The macro invocation style should be consistent with function calls. This can prevent any unexpected code paths:: #define MAC do_something; If this macro is used within a if else statement, like:: if (some_condition) MAC; else do_something; Then there would be a compilation error, because when the macro is expanded there are two trailing semicolons, so the else branch gets orphaned. See: https://lore.kernel.org/lkml/1399671106.2912.21.camel@joe-AO725/ ”h]”(jV ��)�”}”(hŒ**TRAILING_SEMICOLON**”h]”j\ ��)�”}”(hj,"��h]”hŒTRAILING_SEMICOLON”…”�”}”(hj."��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj*"��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MŒhj&"��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ£Macro definition should not end with a semicolon. The macro invocation style should be consistent with function calls. This can prevent any unexpected code paths::”h]”hŒ¢Macro definition should not end with a semicolon. The macro invocation style should be consistent with function calls. This can prevent any unexpected code paths:”…”�”}”(hjD"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MzhjA"��ubj)��)�”}”(hŒ#define MAC do_something;”h]”hŒ#define MAC do_something;”…”�”}”hjR"��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M~hjA"��ubhÞ)�”}”(hŒ8If this macro is used within a if else statement, like::”h]”hŒ7If this macro is used within a if else statement, like:”…”�”}”(hj`"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M€hjA"��ubj)��)�”}”(hŒ<if (some_condition) MAC; else do_something;”h]”hŒ<if (some_condition) MAC; else do_something;”…”�”}”hjn"��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M‚hjA"��ubhÞ)�”}”(hŒ�Then there would be a compilation error, because when the macro is expanded there are two trailing semicolons, so the else branch gets orphaned.”h]”hŒ�Then there would be a compilation error, because when the macro is expanded there are two trailing semicolons, so the else branch gets orphaned.”…”�”}”(hj|"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MˆhjA"��ubhÞ)�”}”(hŒESee: https://lore.kernel.org/lkml/1399671106.2912.21.camel@joe-AO725/”h]”(hŒSee: ”…”�”}”(hjŠ"��h²hh³Nh´NubjŒ ��)�”}”(hŒ@https://lore.kernel.org/lkml/1399671106.2912.21.camel@joe-AO725/”h]”hŒ@https://lore.kernel.org/lkml/1399671106.2912.21.camel@joe-AO725/”…”�”}”(hj’"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j”"��uh1j‹ ��hjŠ"��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MŒhjA"��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj&"��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MŒhj1��ubjP ��)�”}”(hXÌ��**MACRO_ARG_UNUSED** If function-like macros do not utilize a parameter, it might result in a build warning. We advocate for utilizing static inline functions to replace such macros. For example, for a macro such as the one below:: #define test(a) do { } while (0) there would be a warning like below:: WARNING: Argument 'a' is not used in function-like macro. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl ”h]”(jV ��)�”}”(hŒ**MACRO_ARG_UNUSED**”h]”j\ ��)�”}”(hj¹"��h]”hŒMACRO_ARG_UNUSED”…”�”}”(hj»"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj·"��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mšhj³"��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒÒIf function-like macros do not utilize a parameter, it might result in a build warning. We advocate for utilizing static inline functions to replace such macros. For example, for a macro such as the one below::”h]”hŒÑIf function-like macros do not utilize a parameter, it might result in a build warning. We advocate for utilizing static inline functions to replace such macros. For example, for a macro such as the one below:”…”�”}”(hjÑ"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M�hjÎ"��ubj)��)�”}”(hŒ #define test(a) do { } while (0)”h]”hŒ #define test(a) do { } while (0)”…”�”}”hjß"��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M”hjÎ"��ubhÞ)�”}”(hŒ%there would be a warning like below::”h]”hŒ$there would be a warning like below:”…”�”}”(hjí"��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M–hjÎ"��ubj)��)�”}”(hŒ9WARNING: Argument 'a' is not used in function-like macro.”h]”hŒ9WARNING: Argument 'a' is not used in function-like macro.”…”�”}”hjû"��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M˜hjÎ"��ubhÞ)�”}”(hŒZSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl”h]”(hŒSee: ”…”�”}”(hj #��h²hh³Nh´NubjŒ ��)�”}”(hŒUhttps://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl”h]”hŒUhttps://www.kernel.org/doc/html/latest/process/coding-style.html#macros-enums-and-rtl”…”�”}”(hj#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j#��uh1j‹ ��hj #��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MšhjÎ"��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj³"��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mšhj1��ubjP ��)�”}”(hXù��**SINGLE_STATEMENT_DO_WHILE_MACRO** For the multi-statement macros, it is necessary to use the do-while loop to avoid unpredictable code paths. The do-while loop helps to group the multiple statements into a single one so that a function-like macro can be used as a function only. But for the single statement macros, it is unnecessary to use the do-while loop. Although the code is syntactically correct but using the do-while loop is redundant. So remove the do-while loop for single statement macros. ”h]”(jV ��)�”}”(hŒ#**SINGLE_STATEMENT_DO_WHILE_MACRO**”h]”j\ ��)�”}”(hj8#��h]”hŒSINGLE_STATEMENT_DO_WHILE_MACRO”…”�”}”(hj:#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj6#��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M¥hj2#��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒôFor the multi-statement macros, it is necessary to use the do-while loop to avoid unpredictable code paths. The do-while loop helps to group the multiple statements into a single one so that a function-like macro can be used as a function only.”h]”hŒôFor the multi-statement macros, it is necessary to use the do-while loop to avoid unpredictable code paths. The do-while loop helps to group the multiple statements into a single one so that a function-like macro can be used as a function only.”…”�”}”(hjP#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M�hjM#��ubhÞ)�”}”(hŒÞBut for the single statement macros, it is unnecessary to use the do-while loop. Although the code is syntactically correct but using the do-while loop is redundant. So remove the do-while loop for single statement macros.”h]”hŒÞBut for the single statement macros, it is unnecessary to use the do-while loop. Although the code is syntactically correct but using the do-while loop is redundant. So remove the do-while loop for single statement macros.”…”�”}”(hj^#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¢hjM#��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj2#��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M¥hj1��ubjP ��)�”}”(hŒˆ**WEAK_DECLARATION** Using weak declarations like __attribute__((weak)) or __weak can have unintended link defects. Avoid using them. ”h]”(jV ��)�”}”(hŒ**WEAK_DECLARATION**”h]”j\ ��)�”}”(hj~#��h]”hŒWEAK_DECLARATION”…”�”}”(hj€#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj|#��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mªhjx#��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒqUsing weak declarations like __attribute__((weak)) or __weak can have unintended link defects. Avoid using them.”h]”hŒqUsing weak declarations like __attribute__((weak)) or __weak can have unintended link defects. Avoid using them.”…”�”}”(hj–#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¨hj“#��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjx#��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mªhj1��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hj-��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´Mhj��h²hubeh}”(h]”Œmacros-attributes-and-symbols”ah ]”h"]”Œmacros, attributes and symbols”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´M�ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒFunctions and Variables”h]”hŒFunctions and Variables”…”�”}”(hjÇ#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÄ#��h²hh³hÇh´M­ubjG��)�”}”(hXç ��**CAMELCASE** Avoid CamelCase Identifiers. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#naming **CONST_CONST** Using `const <type> const *` is generally meant to be written `const <type> * const`. **CONST_STRUCT** Using const is generally a good idea. Checkpatch reads a list of frequently used structs that are always or almost always constant. The existing structs list can be viewed from `scripts/const_structs.checkpatch`. See: https://lore.kernel.org/lkml/alpine.DEB.2.10.1608281509480.3321@hadrien/ **EMBEDDED_FUNCTION_NAME** Embedded function names are less appropriate to use as refactoring can cause function renaming. Prefer the use of "%s", __func__ to embedded function names. Note that this does not work with -f (--file) checkpatch option as it depends on patch context providing the function name. **FUNCTION_ARGUMENTS** This warning is emitted due to any of the following reasons: 1. Arguments for the function declaration do not follow the identifier name. Example:: void foo (int bar, int baz) This should be corrected to:: void foo(int bar, int baz) 2. Some arguments for the function definition do not have an identifier name. Example:: void foo(int) All arguments should have identifier names. **FUNCTION_WITHOUT_ARGS** Function declarations without arguments like:: int foo() should be:: int foo(void) **GLOBAL_INITIALISERS** Global variables should not be initialized explicitly to 0 (or NULL, false, etc.). Your compiler (or rather your loader, which is responsible for zeroing out the relevant sections) automatically does it for you. **INITIALISED_STATIC** Static variables should not be initialized explicitly to zero. Your compiler (or rather your loader) automatically does it for you. **MULTIPLE_ASSIGNMENTS** Multiple assignments on a single line makes the code unnecessarily complicated. So on a single line assign value to a single variable only, this makes the code more readable and helps avoid typos. **RETURN_PARENTHESES** return is not a function and as such doesn't need parentheses:: return (bar); can simply be:: return bar; **UNINITIALIZED_PTR_WITH_FREE** Pointers with __free attribute should be declared at the place of use and initialized (see include/linux/cleanup.h). In this case declarations at the top of the function rule can be relaxed. Not doing so may lead to undefined behavior as the memory assigned (garbage, in case not initialized) to the pointer is freed automatically when the pointer goes out of scope. Also see: https://lore.kernel.org/lkml/58fd478f408a34b578ee8d949c5c4b4da4d4f41d.camel@HansenPartnership.com/ Example:: type var __free(free_func); ... // var not used, but, in future someone might add a return here var = malloc(var_size); ... should be initialized as:: ... type var __free(free_func) = malloc(var_size); ... ”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒy**CAMELCASE** Avoid CamelCase Identifiers. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#naming ”h]”(jV ��)�”}”(hŒ **CAMELCASE**”h]”j\ ��)�”}”(hjâ#��h]”hŒ CAMELCASE”…”�”}”(hjä#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjà#��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M²hjÜ#��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒAvoid CamelCase Identifiers.”h]”hŒAvoid CamelCase Identifiers.”…”�”}”(hjú#��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M°hj÷#��ubhÞ)�”}”(hŒLSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#naming”h]”(hŒSee: ”…”�”}”(hj$��h²hh³Nh´NubjŒ ��)�”}”(hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#naming”h]”hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#naming”…”�”}”(hj$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j$��uh1j‹ ��hj$��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M²hj÷#��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÜ#��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M²hjÙ#��ubjP ��)�”}”(hŒf**CONST_CONST** Using `const <type> const *` is generally meant to be written `const <type> * const`. ”h]”(jV ��)�”}”(hŒ**CONST_CONST**”h]”j\ ��)�”}”(hj7$��h]”hŒ CONST_CONST”…”�”}”(hj9$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj5$��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M¶hj1$��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒUUsing `const <type> const *` is generally meant to be written `const <type> * const`.”h]”(hŒUsing ”…”�”}”(hjO$��h²hh³Nh´Nubj˜��)�”}”(hŒ`const <type> const *`”h]”hŒconst <type> const *”…”�”}”(hjW$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hjO$��ubhŒ" is generally meant to be written ”…”�”}”(hjO$��h²hh³Nh´Nubj˜��)�”}”(hŒ`const <type> * const`”h]”hŒconst <type> * const”…”�”}”(hji$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hjO$��ubhŒ.”…”�”}”(hjO$��h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MµhjL$��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj1$��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M¶hjÙ#��ubjP ��)�”}”(hX7��**CONST_STRUCT** Using const is generally a good idea. Checkpatch reads a list of frequently used structs that are always or almost always constant. The existing structs list can be viewed from `scripts/const_structs.checkpatch`. See: https://lore.kernel.org/lkml/alpine.DEB.2.10.1608281509480.3321@hadrien/ ”h]”(jV ��)�”}”(hŒ**CONST_STRUCT**”h]”j\ ��)�”}”(hj“$��h]”hŒ CONST_STRUCT”…”�”}”(hj•$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj‘$��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÀhj�$��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ„Using const is generally a good idea. Checkpatch reads a list of frequently used structs that are always or almost always constant.”h]”hŒ„Using const is generally a good idea. Checkpatch reads a list of frequently used structs that are always or almost always constant.”…”�”}”(hj«$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¹hj¨$��ubhÞ)�”}”(hŒPThe existing structs list can be viewed from `scripts/const_structs.checkpatch`.”h]”(hŒ-The existing structs list can be viewed from ”…”�”}”(hj¹$��h²hh³Nh´Nubj˜��)�”}”(hŒ"`scripts/const_structs.checkpatch`”h]”hŒ scripts/const_structs.checkpatch”…”�”}”(hjÁ$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hj¹$��ubhŒ.”…”�”}”(hj¹$��h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M½hj¨$��ubhÞ)�”}”(hŒMSee: https://lore.kernel.org/lkml/alpine.DEB.2.10.1608281509480.3321@hadrien/”h]”(hŒSee: ”…”�”}”(hjÙ$��h²hh³Nh´NubjŒ ��)�”}”(hŒHhttps://lore.kernel.org/lkml/alpine.DEB.2.10.1608281509480.3321@hadrien/”h]”hŒHhttps://lore.kernel.org/lkml/alpine.DEB.2.10.1608281509480.3321@hadrien/”…”�”}”(hjá$��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jã$��uh1j‹ ��hjÙ$��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÀhj¨$��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj�$��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÀhjÙ#��ubjP ��)�”}”(hX6��**EMBEDDED_FUNCTION_NAME** Embedded function names are less appropriate to use as refactoring can cause function renaming. Prefer the use of "%s", __func__ to embedded function names. Note that this does not work with -f (--file) checkpatch option as it depends on patch context providing the function name. ”h]”(jV ��)�”}”(hŒ**EMBEDDED_FUNCTION_NAME**”h]”j\ ��)�”}”(hj%��h]”hŒEMBEDDED_FUNCTION_NAME”…”�”}”(hj %��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj%��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÈhj%��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ�Embedded function names are less appropriate to use as refactoring can cause function renaming. Prefer the use of "%s", __func__ to embedded function names.”h]”hŒ¡Embedded function names are less appropriate to use as refactoring can cause function renaming. Prefer the use of “%sâ€�, __func__ to embedded function names.”…”�”}”(hj %��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÃhj%��ubhÞ)�”}”(hŒ{Note that this does not work with -f (--file) checkpatch option as it depends on patch context providing the function name.”h]”hŒ{Note that this does not work with -f (--file) checkpatch option as it depends on patch context providing the function name.”…”�”}”(hj.%��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÇhj%��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj%��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÈhjÙ#��ubjP ��)�”}”(hXÏ��**FUNCTION_ARGUMENTS** This warning is emitted due to any of the following reasons: 1. Arguments for the function declaration do not follow the identifier name. Example:: void foo (int bar, int baz) This should be corrected to:: void foo(int bar, int baz) 2. Some arguments for the function definition do not have an identifier name. Example:: void foo(int) All arguments should have identifier names. ”h]”(jV ��)�”}”(hŒ**FUNCTION_ARGUMENTS**”h]”j\ ��)�”}”(hjN%��h]”hŒFUNCTION_ARGUMENTS”…”�”}”(hjP%��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjL%��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÜhjH%��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ<This warning is emitted due to any of the following reasons:”h]”hŒ<This warning is emitted due to any of the following reasons:”…”�”}”(hjf%��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MËhjc%��ubjG��)�”}”(hXf��1. Arguments for the function declaration do not follow the identifier name. Example:: void foo (int bar, int baz) This should be corrected to:: void foo(int bar, int baz) 2. Some arguments for the function definition do not have an identifier name. Example:: void foo(int) All arguments should have identifier names. ”h]”jå��)�”}”(hhh]”(jR��)�”}”(hŒ³Arguments for the function declaration do not follow the identifier name. Example:: void foo (int bar, int baz) This should be corrected to:: void foo(int bar, int baz) ”h]”(hÞ)�”}”(hŒTArguments for the function declaration do not follow the identifier name. Example::”h]”hŒSArguments for the function declaration do not follow the identifier name. Example:”…”�”}”(hj%��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÍhj{%��ubj)��)�”}”(hŒvoid foo (int bar, int baz)”h]”hŒvoid foo (int bar, int baz)”…”�”}”hj�%��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MÐhj{%��ubhÞ)�”}”(hŒThis should be corrected to::”h]”hŒThis should be corrected to:”…”�”}”(hj›%��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÓhj{%��ubj)��)�”}”(hŒvoid foo(int bar, int baz)”h]”hŒvoid foo(int bar, int baz)”…”�”}”hj©%��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MÕhj{%��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hjx%��ubjR��)�”}”(hŒ”Some arguments for the function definition do not have an identifier name. Example:: void foo(int) All arguments should have identifier names. ”h]”(hÞ)�”}”(hŒUSome arguments for the function definition do not have an identifier name. Example::”h]”hŒTSome arguments for the function definition do not have an identifier name. Example:”…”�”}”(hjÁ%��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M×hj½%��ubj)��)�”}”(hŒ void foo(int)”h]”hŒ void foo(int)”…”�”}”hjÏ%��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MÚhj½%��ubhÞ)�”}”(hŒ+All arguments should have identifier names.”h]”hŒ+All arguments should have identifier names.”…”�”}”(hjÝ%��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÜhj½%��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hjx%��ubeh}”(h]”h ]”h"]”h$]”h&]”j2��j3��j4��hj5��j6��uh1jä��hjt%��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´MÍhjc%��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjH%��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÜhjÙ#��ubjP ��)�”}”(hŒt**FUNCTION_WITHOUT_ARGS** Function declarations without arguments like:: int foo() should be:: int foo(void) ”h]”(jV ��)�”}”(hŒ**FUNCTION_WITHOUT_ARGS**”h]”j\ ��)�”}”(hj&��h]”hŒFUNCTION_WITHOUT_ARGS”…”�”}”(hj&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj &��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Måhj &��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ.Function declarations without arguments like::”h]”hŒ-Function declarations without arguments like:”…”�”}”(hj'&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mßhj$&��ubj)��)�”}”(hŒ int foo()”h]”hŒ int foo()”…”�”}”hj5&��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Máhj$&��ubhÞ)�”}”(hŒ should be::”h]”hŒ should be:”…”�”}”(hjC&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mãhj$&��ubj)��)�”}”(hŒ int foo(void)”h]”hŒ int foo(void)”…”�”}”hjQ&��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Måhj$&��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj &��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MåhjÙ#��ubjP ��)�”}”(hŒí**GLOBAL_INITIALISERS** Global variables should not be initialized explicitly to 0 (or NULL, false, etc.). Your compiler (or rather your loader, which is responsible for zeroing out the relevant sections) automatically does it for you. ”h]”(jV ��)�”}”(hŒ**GLOBAL_INITIALISERS**”h]”j\ ��)�”}”(hjq&��h]”hŒGLOBAL_INITIALISERS”…”�”}”(hjs&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjo&��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mëhjk&��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒÔGlobal variables should not be initialized explicitly to 0 (or NULL, false, etc.). Your compiler (or rather your loader, which is responsible for zeroing out the relevant sections) automatically does it for you.”h]”hŒÔGlobal variables should not be initialized explicitly to 0 (or NULL, false, etc.). Your compiler (or rather your loader, which is responsible for zeroing out the relevant sections) automatically does it for you.”…”�”}”(hj‰&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mèhj†&��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjk&��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MëhjÙ#��ubjP ��)�”}”(hŒ›**INITIALISED_STATIC** Static variables should not be initialized explicitly to zero. Your compiler (or rather your loader) automatically does it for you. ”h]”(jV ��)�”}”(hŒ**INITIALISED_STATIC**”h]”j\ ��)�”}”(hj©&��h]”hŒINITIALISED_STATIC”…”�”}”(hj«&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj§&��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mðhj£&��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒƒStatic variables should not be initialized explicitly to zero. Your compiler (or rather your loader) automatically does it for you.”h]”hŒƒStatic variables should not be initialized explicitly to zero. Your compiler (or rather your loader) automatically does it for you.”…”�”}”(hjÁ&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mîhj¾&��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj£&��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MðhjÙ#��ubjP ��)�”}”(hŒÞ**MULTIPLE_ASSIGNMENTS** Multiple assignments on a single line makes the code unnecessarily complicated. So on a single line assign value to a single variable only, this makes the code more readable and helps avoid typos. ”h]”(jV ��)�”}”(hŒ**MULTIPLE_ASSIGNMENTS**”h]”j\ ��)�”}”(hjá&��h]”hŒMULTIPLE_ASSIGNMENTS”…”�”}”(hjã&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjß&��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MõhjÛ&��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒÄMultiple assignments on a single line makes the code unnecessarily complicated. So on a single line assign value to a single variable only, this makes the code more readable and helps avoid typos.”h]”hŒÄMultiple assignments on a single line makes the code unnecessarily complicated. So on a single line assign value to a single variable only, this makes the code more readable and helps avoid typos.”…”�”}”(hjù&��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Móhjö&��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÛ&��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MõhjÙ#��ubjP ��)�”}”(hŒˆ**RETURN_PARENTHESES** return is not a function and as such doesn't need parentheses:: return (bar); can simply be:: return bar; ”h]”(jV ��)�”}”(hŒ**RETURN_PARENTHESES**”h]”j\ ��)�”}”(hj'��h]”hŒRETURN_PARENTHESES”…”�”}”(hj'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj'��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mþhj'��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ?return is not a function and as such doesn't need parentheses::”h]”hŒ@return is not a function and as such doesn’t need parentheses:”…”�”}”(hj1'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Møhj.'��ubj)��)�”}”(hŒ return (bar);”h]”hŒ return (bar);”…”�”}”hj?'��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Múhj.'��ubhÞ)�”}”(hŒcan simply be::”h]”hŒcan simply be:”…”�”}”(hjM'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mühj.'��ubj)��)�”}”(hŒ return bar;”h]”hŒ return bar;”…”�”}”hj['��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mþhj.'��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj'��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MþhjÙ#��ubjP ��)�”}”(hXè��**UNINITIALIZED_PTR_WITH_FREE** Pointers with __free attribute should be declared at the place of use and initialized (see include/linux/cleanup.h). In this case declarations at the top of the function rule can be relaxed. Not doing so may lead to undefined behavior as the memory assigned (garbage, in case not initialized) to the pointer is freed automatically when the pointer goes out of scope. Also see: https://lore.kernel.org/lkml/58fd478f408a34b578ee8d949c5c4b4da4d4f41d.camel@HansenPartnership.com/ Example:: type var __free(free_func); ... // var not used, but, in future someone might add a return here var = malloc(var_size); ... should be initialized as:: ... type var __free(free_func) = malloc(var_size); ... ”•å������h]”(jV ��)�”}”(hŒ**UNINITIALIZED_PTR_WITH_FREE**”h]”j\ ��)�”}”(hj{'��h]”hŒUNINITIALIZED_PTR_WITH_FREE”…”�”}”(hj}'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjy'��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhju'��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hXn��Pointers with __free attribute should be declared at the place of use and initialized (see include/linux/cleanup.h). In this case declarations at the top of the function rule can be relaxed. Not doing so may lead to undefined behavior as the memory assigned (garbage, in case not initialized) to the pointer is freed automatically when the pointer goes out of scope.”h]”hXn��Pointers with __free attribute should be declared at the place of use and initialized (see include/linux/cleanup.h). In this case declarations at the top of the function rule can be relaxed. Not doing so may lead to undefined behavior as the memory assigned (garbage, in case not initialized) to the pointer is freed automatically when the pointer goes out of scope.”…”�”}”(hj“'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj�'��ubhÞ)�”}”(hŒlAlso see: https://lore.kernel.org/lkml/58fd478f408a34b578ee8d949c5c4b4da4d4f41d.camel@HansenPartnership.com/”h]”(hŒ Also see: ”…”�”}”(hj¡'��h²hh³Nh´NubjŒ ��)�”}”(hŒbhttps://lore.kernel.org/lkml/58fd478f408a34b578ee8d949c5c4b4da4d4f41d.camel@HansenPartnership.com/”h]”hŒbhttps://lore.kernel.org/lkml/58fd478f408a34b578ee8d949c5c4b4da4d4f41d.camel@HansenPartnership.com/”…”�”}”(hj©'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j«'��uh1j‹ ��hj¡'��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj�'��ubhÞ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hj¾'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hj�'��ubj)��)�”}”(hŒ{type var __free(free_func); ... // var not used, but, in future someone might add a return here var = malloc(var_size); ...”h]”hŒ{type var __free(free_func); ... // var not used, but, in future someone might add a return here var = malloc(var_size); ...”…”�”}”hjÌ'��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M hj�'��ubhÞ)�”}”(hŒshould be initialized as::”h]”hŒshould be initialized as:”…”�”}”(hjÚ'��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj�'��ubj)��)�”}”(hŒ6... type var __free(free_func) = malloc(var_size); ...”h]”hŒ6... type var __free(free_func) = malloc(var_size); ...”…”�”}”hjè'��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mhj�'��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hju'��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MhjÙ#��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hjÕ#��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´M¯hjÄ#��h²hubeh}”(h]”Œfunctions-and-variables”ah ]”h"]”Œfunctions and variables”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´M­ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Permissions”h]”hŒ Permissions”…”�”}”(hj(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj(��h²hh³hÇh´MubjG��)�”}”(hX-��**DEVICE_ATTR_PERMS** The permissions used in DEVICE_ATTR are unusual. Typically only three permissions are used - 0644 (RW), 0444 (RO) and 0200 (WO). See: https://www.kernel.org/doc/html/latest/filesystems/sysfs.html#attributes **EXECUTE_PERMISSIONS** There is no reason for source files to be executable. The executable bit can be removed safely. **EXPORTED_WORLD_WRITABLE** Exporting world writable sysfs/debugfs files is usually a bad thing. When done arbitrarily they can introduce serious security bugs. In the past, some of the debugfs vulnerabilities would seemingly allow any local user to write arbitrary values into device registers - a situation from which little good can be expected to emerge. See: https://lore.kernel.org/linux-arm-kernel/cover.1296818921.git.segoon@openwall.com/ **NON_OCTAL_PERMISSIONS** Permission bits should use 4 digit octal permissions (like 0700 or 0444). Avoid using any other base like decimal. **SYMBOLIC_PERMS** Permission bits in the octal form are more readable and easier to understand than their symbolic counterparts because many command-line tools use this notation. Experienced kernel developers have been using these traditional Unix permission bits for decades and so they find it easier to understand the octal notation than the symbolic macros. For example, it is harder to read S_IWUSR|S_IRUGO than 0644, which obscures the developer's intent rather than clarifying it. See: https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com/ ”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒæ**DEVICE_ATTR_PERMS** The permissions used in DEVICE_ATTR are unusual. Typically only three permissions are used - 0644 (RW), 0444 (RO) and 0200 (WO). See: https://www.kernel.org/doc/html/latest/filesystems/sysfs.html#attributes ”h]”(jV ��)�”}”(hŒ**DEVICE_ATTR_PERMS**”h]”j\ ��)�”}”(hj4(��h]”hŒDEVICE_ATTR_PERMS”…”�”}”(hj6(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj2(��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M hj.(��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ€The permissions used in DEVICE_ATTR are unusual. Typically only three permissions are used - 0644 (RW), 0444 (RO) and 0200 (WO).”h]”hŒ€The permissions used in DEVICE_ATTR are unusual. Typically only three permissions are used - 0644 (RW), 0444 (RO) and 0200 (WO).”…”�”}”(hjL(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjI(��ubhÞ)�”}”(hŒMSee: https://www.kernel.org/doc/html/latest/filesystems/sysfs.html#attributes”h]”(hŒSee: ”…”�”}”(hjZ(��h²hh³Nh´NubjŒ ��)�”}”(hŒHhttps://www.kernel.org/doc/html/latest/filesystems/sysfs.html#attributes”h]”hŒHhttps://www.kernel.org/doc/html/latest/filesystems/sysfs.html#attributes”…”�”}”(hjb(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jd(��uh1j‹ ��hjZ(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjI(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj.(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M hj+(��ubjP ��)�”}”(hŒy**EXECUTE_PERMISSIONS** There is no reason for source files to be executable. The executable bit can be removed safely. ”h]”(jV ��)�”}”(hŒ**EXECUTE_PERMISSIONS**”h]”j\ ��)�”}”(hj‰(��h]”hŒEXECUTE_PERMISSIONS”…”�”}”(hj‹(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj‡(��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M$hjƒ(��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒ`There is no reason for source files to be executable. The executable bit can be removed safely.”h]”hŒ`There is no reason for source files to be executable. The executable bit can be removed safely.”…”�”}”(hj¡(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M#hjž(��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjƒ(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M$hj+(��ubjP ��)�”}”(hXÀ��**EXPORTED_WORLD_WRITABLE** Exporting world writable sysfs/debugfs files is usually a bad thing. When done arbitrarily they can introduce serious security bugs. In the past, some of the debugfs vulnerabilities would seemingly allow any local user to write arbitrary values into device registers - a situation from which little good can be expected to emerge. See: https://lore.kernel.org/linux-arm-kernel/cover.1296818921.git.segoon@openwall.com/ ”h]”(jV ��)�”}”(hŒ**EXPORTED_WORLD_WRITABLE**”h]”j\ ��)�”}”(hjÁ(��h]”hŒEXPORTED_WORLD_WRITABLE”…”�”}”(hjÃ(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj¿(��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M-hj»(��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hXJ��Exporting world writable sysfs/debugfs files is usually a bad thing. When done arbitrarily they can introduce serious security bugs. In the past, some of the debugfs vulnerabilities would seemingly allow any local user to write arbitrary values into device registers - a situation from which little good can be expected to emerge.”h]”hXJ��Exporting world writable sysfs/debugfs files is usually a bad thing. When done arbitrarily they can introduce serious security bugs. In the past, some of the debugfs vulnerabilities would seemingly allow any local user to write arbitrary values into device registers - a situation from which little good can be expected to emerge.”…”�”}”(hjÙ(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M'hjÖ(��ubhÞ)�”}”(hŒWSee: https://lore.kernel.org/linux-arm-kernel/cover.1296818921.git.segoon@openwall.com/”h]”(hŒSee: ”…”�”}”(hjç(��h²hh³Nh´NubjŒ ��)�”}”(hŒRhttps://lore.kernel.org/linux-arm-kernel/cover.1296818921.git.segoon@openwall.com/”h]”hŒRhttps://lore.kernel.org/linux-arm-kernel/cover.1296818921.git.segoon@openwall.com/”…”�”}”(hjï(��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jñ(��uh1j‹ ��hjç(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M-hjÖ(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj»(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M-hj+(��ubjP ��)�”}”(hŒ�**NON_OCTAL_PERMISSIONS** Permission bits should use 4 digit octal permissions (like 0700 or 0444). Avoid using any other base like decimal. ”h]”(jV ��)�”}”(hŒ**NON_OCTAL_PERMISSIONS**”h]”j\ ��)�”}”(hj)��h]”hŒNON_OCTAL_PERMISSIONS”…”�”}”(hj)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj)��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M1hj)��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒrPermission bits should use 4 digit octal permissions (like 0700 or 0444). Avoid using any other base like decimal.”h]”hŒrPermission bits should use 4 digit octal permissions (like 0700 or 0444). Avoid using any other base like decimal.”…”�”}”(hj.)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M0hj+)��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj)��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M1hj+(��ubjP ��)�”}”(hXQ��**SYMBOLIC_PERMS** Permission bits in the octal form are more readable and easier to understand than their symbolic counterparts because many command-line tools use this notation. Experienced kernel developers have been using these traditional Unix permission bits for decades and so they find it easier to understand the octal notation than the symbolic macros. For example, it is harder to read S_IWUSR|S_IRUGO than 0644, which obscures the developer's intent rather than clarifying it. See: https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com/ ”h]”(jV ��)�”}”(hŒ**SYMBOLIC_PERMS**”h]”j\ ��)�”}”(hjN)��h]”hŒSYMBOLIC_PERMS”…”�”}”(hjP)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjL)��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M=hjH)��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hXÕ��Permission bits in the octal form are more readable and easier to understand than their symbolic counterparts because many command-line tools use this notation. Experienced kernel developers have been using these traditional Unix permission bits for decades and so they find it easier to understand the octal notation than the symbolic macros. For example, it is harder to read S_IWUSR|S_IRUGO than 0644, which obscures the developer's intent rather than clarifying it.”h]”hX×��Permission bits in the octal form are more readable and easier to understand than their symbolic counterparts because many command-line tools use this notation. Experienced kernel developers have been using these traditional Unix permission bits for decades and so they find it easier to understand the octal notation than the symbolic macros. For example, it is harder to read S_IWUSR|S_IRUGO than 0644, which obscures the developer’s intent rather than clarifying it.”…”�”}”(hjf)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M4hjc)��ubhÞ)�”}”(hŒeSee: https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com/”h]”(hŒSee: ”…”�”}”(hjt)��h²hh³Nh´NubjŒ ��)�”}”(hŒ`https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com/”h]”hŒ`https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com/”…”�”}”(hj|)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j~)��uh1j‹ ��hjt)��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M<hjc)��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjH)��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M=hj+(��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hj'(��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´Mhj(��h²hubeh}”(h]”Œ permissions”ah ]”h"]”Œ permissions”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒSpacing and Brackets”h]”hŒSpacing and Brackets”…”�”}”(hj´)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj±)��h²hh³hÇh´M@ubjG��)�”}”(hX\ ��**ASSIGNMENT_CONTINUATIONS** Assignment operators should not be written at the start of a line but should follow the operand at the previous line. **BRACES** The placement of braces is stylistically incorrect. The preferred way is to put the opening brace last on the line, and put the closing brace first:: if (x is true) { we do y } This applies for all non-functional blocks. However, there is one special case, namely functions: they have the opening brace at the beginning of the next line, thus:: int function(int x) { body of function } See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces **BRACKET_SPACE** Whitespace before opening bracket '[' is prohibited. There are some exceptions: 1. With a type on the left:: int [] a; 2. At the beginning of a line for slice initialisers:: [0...10] = 5, 3. Inside a curly brace:: = { [0...10] = 5 } **CONCATENATED_STRING** Concatenated elements should have a space in between. Example:: printk(KERN_INFO"bar"); should be:: printk(KERN_INFO "bar"); **ELSE_AFTER_BRACE** `else {` should follow the closing block `}` on the same line. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces **LINE_SPACING** Vertical space is wasted given the limited number of lines an editor window can display when multiple blank lines are used. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces **OPEN_BRACE** The opening brace should be following the function definitions on the next line. For any non-functional block it should be on the same line as the last construct. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces **POINTER_LOCATION** When using pointer data or a function that returns a pointer type, the preferred use of * is adjacent to the data name or function name and not adjacent to the type name. Examples:: char *linux_banner; unsigned long long memparse(char *ptr, char **retptr); char *match_strdup(substring_t *s); See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces **SPACING** Whitespace style used in the kernel sources is described in kernel docs. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces **TRAILING_WHITESPACE** Trailing whitespace should always be removed. Some editors highlight the trailing whitespace and cause visual distractions when editing files. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces **UNNECESSARY_PARENTHESES** Parentheses are not required in the following cases: 1. Function pointer uses:: (foo->bar)(); could be:: foo->bar(); 2. Comparisons in if:: if ((foo->bar) && (foo->baz)) if ((foo == bar)) could be:: if (foo->bar && foo->baz) if (foo == bar) 3. addressof/dereference single Lvalues:: &(foo->bar) *(foo->bar) could be:: &foo->bar *foo->bar **WHILE_AFTER_BRACE** while should follow the closing bracket on the same line:: do { ... } while(something); See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces ”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒ“**ASSIGNMENT_CONTINUATIONS** Assignment operators should not be written at the start of a line but should follow the operand at the previous line. ”h]”(jV ��)�”}”(hŒ**ASSIGNMENT_CONTINUATIONS**”h]”j\ ��)�”}”(hjÏ)��h]”hŒASSIGNMENT_CONTINUATIONS”…”�”}”(hjÑ)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÍ)��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MDhjÉ)��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒuAssignment operators should not be written at the start of a line but should follow the operand at the previous line.”h]”hŒuAssignment operators should not be written at the start of a line but should follow the operand at the previous line.”…”�”}”(hjç)��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MChjä)��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÉ)��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MDhjÆ)��ubjP ��)�”}”(hX��**BRACES** The placement of braces is stylistically incorrect. The preferred way is to put the opening brace last on the line, and put the closing brace first:: if (x is true) { we do y } This applies for all non-functional blocks. However, there is one special case, namely functions: they have the opening brace at the beginning of the next line, thus:: int function(int x) { body of function } See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces ”h]”(jV ��)�”}”(hŒ **BRACES**”h]”j\ ��)�”}”(hj*��h]”hŒBRACES”…”�”}”(hj *��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj*��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MXhj*��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ•The placement of braces is stylistically incorrect. The preferred way is to put the opening brace last on the line, and put the closing brace first::”h]”hŒ”The placement of braces is stylistically incorrect. The preferred way is to put the opening brace last on the line, and put the closing brace first:”…”�”}”(hj*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MGhj*��ubj)��)�”}”(hŒ"if (x is true) { we do y }”h]”hŒ"if (x is true) { we do y }”…”�”}”hj-*��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MKhj*��ubhÞ)�”}”(hŒ§This applies for all non-functional blocks. However, there is one special case, namely functions: they have the opening brace at the beginning of the next line, thus::”h]”hŒ¦This applies for all non-functional blocks. However, there is one special case, namely functions: they have the opening brace at the beginning of the next line, thus:”…”�”}”(hj;*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MOhj*��ubj)��)�”}”(hŒ0int function(int x) { body of function }”h]”hŒ0int function(int x) { body of function }”…”�”}”hjI*��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MShj*��ubhÞ)�”}”(hŒ_See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”(hŒSee: ”…”�”}”(hjW*��h²hh³Nh´NubjŒ ��)�”}”(hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”…”�”}”(hj_*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”ja*��uh1j‹ ��hjW*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MXhj*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MXhjÆ)��ubjP ��)�”}”(hX ��**BRACKET_SPACE** Whitespace before opening bracket '[' is prohibited. There are some exceptions: 1. With a type on the left:: int [] a; 2. At the beginning of a line for slice initialisers:: [0...10] = 5, 3. Inside a curly brace:: = { [0...10] = 5 } ”h]”(jV ��)�”}”(hŒ**BRACKET_SPACE**”h]”j\ ��)�”}”(hj†*��h]”hŒ BRACKET_SPACE”…”�”}”(hjˆ*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj„*��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhhj€*��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒOWhitespace before opening bracket '[' is prohibited. There are some exceptions:”h]”hŒSWhitespace before opening bracket ‘[’ is prohibited. There are some exceptions:”…”�”}”(hjž*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M[hj›*��ubjå��)�”}”(hhh]”(jR��)�”}”(hŒ&With a type on the left:: int [] a; ”h]”(hÞ)�”}”(hŒWith a type on the left::”h]”hŒWith a type on the left:”…”�”}”(hj³*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M^hj¯*��ubj)��)�”}”(hŒ int [] a;”h]”hŒ int [] a;”…”�”}”hjÁ*��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M`hj¯*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hj¬*��ubjR��)�”}”(hŒDAt the beginning of a line for slice initialisers:: [0...10] = 5, ”h]”(hÞ)�”}”(hŒ3At the beginning of a line for slice initialisers::”h]”hŒ2At the beginning of a line for slice initialisers:”…”�”}”(hjÙ*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MbhjÕ*��ubj)��)�”}”(hŒ [0...10] = 5,”h]”hŒ [0...10] = 5,”…”�”}”hjç*��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MdhjÕ*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hj¬*��ubjR��)�”}”(hŒ,Inside a curly brace:: = { [0...10] = 5 } ”h]”(hÞ)�”}”(hŒInside a curly brace::”h]”hŒInside a curly brace:”…”�”}”(hjÿ*��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mfhjû*��ubj)��)�”}”(hŒ= { [0...10] = 5 }”h]”hŒ= { [0...10] = 5 }”…”�”}”hj +��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mhhjû*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hj¬*��ubeh}”(h]”h ]”h"]”h$]”h&]”j2��j3��j4��hj5��j6��uh1jä��hj›*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj€*��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MhhjÆ)��ubjP ��)�”}”(hŒœ**CONCATENATED_STRING** Concatenated elements should have a space in between. Example:: printk(KERN_INFO"bar"); should be:: printk(KERN_INFO "bar"); ”h]”(jV ��)�”}”(hŒ**CONCATENATED_STRING**”h]”j\ ��)�”}”(hj9+��h]”hŒCONCATENATED_STRING”…”�”}”(hj;+��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj7+��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mrhj3+��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ?Concatenated elements should have a space in between. Example::”h]”hŒ>Concatenated elements should have a space in between. Example:”…”�”}”(hjQ+��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MkhjN+��ubj)��)�”}”(hŒprintk(KERN_INFO"bar");”h]”hŒprintk(KERN_INFO"bar");”…”�”}”hj_+��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MnhjN+��ubhÞ)�”}”(hŒ should be::”h]”hŒ should be:”…”�”}”(hjm+��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MphjN+��ubj)��)�”}”(hŒprintk(KERN_INFO "bar");”h]”hŒprintk(KERN_INFO "bar");”…”�”}”hj{+��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MrhjN+��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj3+��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MrhjÆ)��ubjP ��)�”}”(hŒµ**ELSE_AFTER_BRACE** `else {` should follow the closing block `}` on the same line. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces ”h]”(jV ��)�”}”(hŒ**ELSE_AFTER_BRACE**”h]”j\ ��)�”}”(hj›+��h]”hŒELSE_AFTER_BRACE”…”�”}”(hj�+��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj™+��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mwhj•+��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ>`else {` should follow the closing block `}` on the same line.”h]”(j˜��)�”}”(hŒ`else {`”h]”hŒelse {”…”�”}”(hj·+��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hj³+��ubhŒ! should follow the closing block ”…”�”}”(hj³+��h²hh³Nh´Nubj˜��)�”}”(hŒ`}`”h]”hŒ}”…”�”}”(hjÉ+��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j—��hj³+��ubhŒ on the same line.”…”�”}”(hj³+��h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Muhj°+��ubhÞ)�”}”(hŒ_See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”(hŒSee: ”…”�”}”(hjá+��h²hh³Nh´NubjŒ ��)�”}”(hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”…”�”}”(hjé+��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jë+��uh1j‹ ��hjá+��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mwhj°+��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj•+��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MwhjÆ)��ubjP ��)�”}”(hŒÛ**LINE_SPACING** Vertical space is wasted given the limited number of lines an editor window can display when multiple blank lines are used. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces ”h]”(jV ��)�”}”(hŒ**LINE_SPACING**”h]”j\ ��)�”}”(hj,��h]”hŒ LINE_SPACING”…”�”}”(hj,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj,��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M}hj ,��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ{Vertical space is wasted given the limited number of lines an editor window can display when multiple blank lines are used.”h]”hŒ{Vertical space is wasted given the limited number of lines an editor window can display when multiple blank lines are used.”…”�”}”(hj(,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mzhj%,��ubhÞ)�”}”(hŒLSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”(hŒSee: ”…”�”}”(hj6,��h²hh³Nh´NubjŒ ��)�”}”(hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”…”�”}”(hj>,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j@,��uh1j‹ ��hj6,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M}hj%,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj ,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M}hjÆ)��ubjP ��)�”}”(hX��**OPEN_BRACE** The opening brace should be following the function definitions on the next line. For any non-functional block it should be on the same line as the last construct. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces ”h]”(jV ��)�”}”(hŒ**OPEN_BRACE**”h]”j\ ��)�”}”(hje,��h]”hŒ OPEN_BRACE”…”�”}”(hjg,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjc,��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M„hj_,��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ£The opening brace should be following the function definitions on the next line. For any non-functional block it should be on the same line as the last construct.”h]”hŒ£The opening brace should be following the function definitions on the next line. For any non-functional block it should be on the same line as the last construct.”…”�”}”(hj},��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M€hjz,��ubhÞ)�”}”(hŒ_See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”(hŒSee: ”…”�”}”(hj‹,��h²hh³Nh´NubjŒ ��)�”}”(hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”…”�”}”(hj“,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j•,��uh1j‹ ��hj‹,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M„hjz,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj_,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M„hjÆ)��ubjP ��)�”}”(hX���**POINTER_LOCATION** When using pointer data or a function that returns a pointer type, the preferred use of * is adjacent to the data name or function name and not adjacent to the type name. Examples:: char *linux_banner; unsigned long long memparse(char *ptr, char **retptr); char *match_strdup(substring_t *s); See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces ”h]”(jV ��)�”}”(hŒ**POINTER_LOCATION**”h]”j\ ��)�”}”(hjº,��h]”hŒPOINTER_LOCATION”…”�”}”(hj¼,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj¸,��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M�hj´,��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒµWhen using pointer data or a function that returns a pointer type, the preferred use of * is adjacent to the data name or function name and not adjacent to the type name. Examples::”h]”hŒ´When using pointer data or a function that returns a pointer type, the preferred use of * is adjacent to the data name or function name and not adjacent to the type name. Examples:”…”�”}”(hjÒ,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‡hjÏ,��ubj)��)�”}”(hŒnchar *linux_banner; unsigned long long memparse(char *ptr, char **retptr); char *match_strdup(substring_t *s);”h]”hŒnchar *linux_banner; unsigned long long memparse(char *ptr, char **retptr); char *match_strdup(substring_t *s);”…”�”}”hjà,��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MŒhjÏ,��ubhÞ)�”}”(hŒLSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”(hŒSee: ”…”�”}”(hjî,��h²hh³Nh´NubjŒ ��)�”}”(hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”…”�”}”(hjö,��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jø,��uh1j‹ ��hjî,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M�hjÏ,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj´,��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M�hjÆ)��ubjP ��)�”}”(hŒ£**SPACING** Whitespace style used in the kernel sources is described in kernel docs. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces ”h]”(jV ��)�”}”(hŒ **SPACING**”h]”j\ ��)�”}”(hj-��h]”hŒSPACING”…”�”}”(hj-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj-��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M•hj-��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒHWhitespace style used in the kernel sources is described in kernel docs.”h]”hŒHWhitespace style used in the kernel sources is described in kernel docs.”…”�”}”(hj5-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M“hj2-��ubhÞ)�”}”(hŒLSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”(hŒSee: ”…”�”}”(hjC-��h²hh³Nh´NubjŒ ��)�”}”(hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”…”�”}”(hjK-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jM-��uh1j‹ ��hjC-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M•hj2-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M•hjÆ)��ubjP ��)�”}”(hŒõ**TRAILING_WHITESPACE** Trailing whitespace should always be removed. Some editors highlight the trailing whitespace and cause visual distractions when editing files. See: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces ”h]”(jV ��)�”}”(hŒ**TRAILING_WHITESPACE**”h]”j\ ��)�”}”(hjr-��h]”hŒTRAILING_WHITESPACE”…”�”}”(hjt-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjp-��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mœhjl-��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒŽTrailing whitespace should always be removed. Some editors highlight the trailing whitespace and cause visual distractions when editing files.”h]”hŒŽTrailing whitespace should always be removed. Some editors highlight the trailing whitespace and cause visual distractions when editing files.”…”�”}”(hjŠ-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M˜hj‡-��ubhÞ)�”}”(hŒLSee: https://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”(hŒSee: ”…”�”}”(hj˜-��h²hh³Nh´NubjŒ ��)�”}”(hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”h]”hŒGhttps://www.kernel.org/doc/html/latest/process/coding-style.html#spaces”…”�”}”(hj -��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j¢-��uh1j‹ ��hj˜-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mœhj‡-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjl-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MœhjÆ)��ubjP ��)�”}”(hXÈ��**UNNECESSARY_PARENTHESES** Parentheses are not required in the following cases: 1. Function pointer uses:: (foo->bar)(); could be:: foo->bar(); 2. Comparisons in if:: if ((foo->bar) && (foo->baz)) if ((foo == bar)) could be:: if (foo->bar && foo->baz) if (foo == bar) 3. addressof/dereference single Lvalues:: &(foo->bar) *(foo->bar) could be:: &foo->bar *foo->bar ”h]”(jV ��)�”}”(hŒ**UNNECESSARY_PARENTHESES**”h]”j\ ��)�”}”(hjÇ-��h]”hŒUNNECESSARY_PARENTHESES”…”�”}”(hjÉ-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÅ-��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M»hjÁ-��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ4Parentheses are not required in the following cases:”h]”hŒ4Parentheses are not required in the following cases:”…”�”}”(hjß-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MŸhjÜ-��ubjG��)�”}”(hXV��1. Function pointer uses:: (foo->bar)(); could be:: foo->bar(); 2. Comparisons in if:: if ((foo->bar) && (foo->baz)) if ((foo == bar)) could be:: if (foo->bar && foo->baz) if (foo == bar) 3. addressof/dereference single Lvalues:: &(foo->bar) *(foo->bar) could be:: &foo->bar *foo->bar ”h]”(jå��)�”}”(hhh]”jR��)�”}”(hŒ(Function pointer uses:: (foo->bar)(); ”h]”(hÞ)�”}”(hŒFunction pointer uses::”h]”hŒFunction pointer uses:”…”�”}”(hjø-��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¡hjô-��ubj)��)�”}”(hŒ (foo->bar)();”h]”hŒ (foo->bar)();”…”�”}”hj.��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M£hjô-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hjñ-��ubah}”(h]”h ]”h"]”h$]”h&]”j2��j3��j4��hj5��j6��uh1jä��hjí-��ubjG��)�”}”(hŒcould be:: foo->bar(); ”h]”(hÞ)�”}”(hŒ could be::”h]”hŒ could be:”…”�”}”(hj$.��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¥hj .��ubj)��)�”}”(hŒ foo->bar();”h]”hŒ foo->bar();”…”�”}”hj2.��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M§hj .��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´M¥hjí-��ubjå��)�”}”(hhh]”jR��)�”}”(hŒGComparisons in if:: if ((foo->bar) && (foo->baz)) if ((foo == bar)) ”h]”(hÞ)�”}”(hŒComparisons in if::”h]”hŒComparisons in if:”…”�”}”(hjM.��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M©hjI.��ubj)��)�”}”(hŒ/if ((foo->bar) && (foo->baz)) if ((foo == bar))”h]”hŒ/if ((foo->bar) && (foo->baz)) if ((foo == bar))”…”�”}”hj[.��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M«hjI.��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hjF.��ubah}”(h]”h ]”h"]”h$]”h&]”j2��j3��j4��hj5��j6��Œstart”Kuh1jä��hjí-��ubjG��)�”}”(hŒ:could be:: if (foo->bar && foo->baz) if (foo == bar) ”h]”(hÞ)�”}”(hŒ could be::”h]”hŒ could be:”…”�”}”(hjz.��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M®hjv.��ubj)��)�”}”(hŒ)if (foo->bar && foo->baz) if (foo == bar)”h]”hŒ)if (foo->bar && foo->baz) if (foo == bar)”…”�”}”hjˆ.��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´M°hjv.��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´M®hjí-��ubjå��)�”}”(hhh]”jR��)�”}”(hŒBaddressof/dereference single Lvalues:: &(foo->bar) *(foo->bar) ”h]”(hÞ)�”}”(hŒ&addressof/dereference single Lvalues::”h]”hŒ%addressof/dereference single Lvalues:”…”�”}”(hj£.��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M³hjŸ.��ubj)��)�”}”(hŒ&(foo->bar) *(foo->bar)”h]”hŒ&(foo->bar) *(foo->bar)”…”�”}”hj±.��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MµhjŸ.��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQ��hjœ.��ubah}”(h]”h ]”h"]”h$]”h&]”j2��j3��j4��hj5��j6��ju.��Kuh1jä��hjí-��ubjG��)�”}”(hŒ$could be:: &foo->bar *foo->bar ”h]”(hÞ)�”}”(hŒ could be::”h]”hŒ could be:”…”�”}”(hjÏ.��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¸hjË.��ubj)��)�”}”(hŒ&foo->bar *foo->bar”h]”hŒ&foo->bar *foo->bar”…”�”}”hjÝ.��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MºhjË.��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´M¸hjí-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´M¡hjÜ-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÁ-��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M»hjÆ)��ubjP ��)�”}”(hŒß**WHILE_AFTER_BRACE** while should follow the closing bracket on the same line:: do { ... } while(something); See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces ”h]”(jV ��)�”}”(hŒ**WHILE_AFTER_BRACE**”h]”j\ ��)�”}”(hj /��h]”hŒWHILE_AFTER_BRACE”…”�”}”(hj /��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj/��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÅhj/��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒ:while should follow the closing bracket on the same line::”h]”hŒ9while should follow the closing bracket on the same line:”…”�”}”(hj!/��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¾hj/��ubj)��)�”}”(hŒ$do { ... } while(something);”h]”hŒ$do { ... } while(something);”…”�”}”hj//��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´MÀhj/��ubhÞ)�”}”(hŒ_See: https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”(hŒSee: ”…”�”}”(hj=/��h²hh³Nh´NubjŒ ��)�”}”(hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”h]”hŒZhttps://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces”…”�”}”(hjE/��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jG/��uh1j‹ ��hj=/��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÄhj/��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj/��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÅhjÆ)��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hjÂ)��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´MBhj±)��h²hubeh}”(h]”Œspacing-and-brackets”ah ]”h"]”Œspacing and brackets”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´M@ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒOthers”h]”hŒOthers”…”�”}”(hj}/��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjz/��h²hh³hÇh´MÈubjG��)�”}”(hX' ��**CONFIG_DESCRIPTION** Kconfig symbols should have a help text which fully describes it. **CORRUPTED_PATCH** The patch seems to be corrupted or lines are wrapped. Please regenerate the patch file before sending it to the maintainer. **CVS_KEYWORD** Since linux moved to git, the CVS markers are no longer used. So, CVS style keywords ($Id$, $Revision$, $Log$) should not be added. **DEFAULT_NO_BREAK** switch default case is sometimes written as "default:;". This can cause new cases added below default to be defective. A "break;" should be added after empty default statement to avoid unwanted fallthrough. **DOS_LINE_ENDINGS** For DOS-formatted patches, there are extra ^M symbols at the end of the line. These should be removed. **DT_SCHEMA_BINDING_PATCH** DT bindings moved to a json-schema based format instead of freeform text. See: https://www.kernel.org/doc/html/latest/devicetree/bindings/writing-schema.html **DT_SPLIT_BINDING_PATCH** Devicetree bindings should be their own patch. This is because bindings are logically independent from a driver implementation, they have a different maintainer (even though they often are applied via the same tree), and it makes for a cleaner history in the DT only tree created with git-filter-branch. See: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters **EMBEDDED_FILENAME** Embedding the complete filename path inside the file isn't particularly useful as often the path is moved around and becomes incorrect. **FILE_PATH_CHANGES** Whenever files are added, moved, or deleted, the MAINTAINERS file patterns can be out of sync or outdated. So MAINTAINERS might need updating in these cases. **MEMSET** The memset use appears to be incorrect. This may be caused due to badly ordered parameters. Please recheck the usage. **NOT_UNIFIED_DIFF** The patch file does not appear to be in unified-diff format. Please regenerate the patch file before sending it to the maintainer. **PLACEHOLDER_USE** Detects unhandled placeholder text left in cover letters or commit headers/logs. Common placeholders include lines like:: *** SUBJECT HERE *** *** BLURB HERE *** These typically come from autogenerated templates. Replace them with a proper subject and description before sending. **PRINTF_0XDECIMAL** Prefixing 0x with decimal output is defective and should be corrected. **SPDX_LICENSE_TAG** The source file is missing or has an improper SPDX identifier tag. The Linux kernel requires the precise SPDX identifier in all source files, and it is thoroughly documented in the kernel docs. See: https://www.kernel.org/doc/html/latest/process/license-rules.html **TYPO_SPELLING** Some words may have been misspelled. Consider reviewing them.”h]”jK ��)�”}”(hhh]”(jP ��)�”}”(hŒY**CONFIG_DESCRIPTION** Kconfig symbols should have a help text which fully describes it. ”h]”(jV ��)�”}”(hŒ**CONFIG_DESCRIPTION**”h]”j\ ��)�”}”(hj˜/��h]”hŒCONFIG_DESCRIPTION”…”�”}”(hjš/��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj–/��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÌhj’/��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒAKconfig symbols should have a help text which fully describes it.”h]”hŒAKconfig symbols should have a help text which fully describes it.”…”�”}”(hj°/��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MËhj­/��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj’/��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÌhj�/��ubjP ��)�”}”(hŒ�**CORRUPTED_PATCH** The patch seems to be corrupted or lines are wrapped. Please regenerate the patch file before sending it to the maintainer. ”h]”(jV ��)�”}”(hŒ**CORRUPTED_PATCH**”h]”j\ ��)�”}”(hjÐ/��h]”hŒCORRUPTED_PATCH”…”�”}”(hjÒ/��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjÎ/��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÐhjÊ/��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒ{The patch seems to be corrupted or lines are wrapped. Please regenerate the patch file before sending it to the maintainer.”h]”hŒ{The patch seems to be corrupted or lines are wrapped. Please regenerate the patch file before sending it to the maintainer.”…”�”}”(hjè/��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÏhjå/��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÊ/��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÐhj�/��ubjP ��)�”}”(hŒ”**CVS_KEYWORD** Since linux moved to git, the CVS markers are no longer used. So, CVS style keywords ($Id$, $Revision$, $Log$) should not be added. ”h]”(jV ��)�”}”(hŒ**CVS_KEYWORD**”h]”j\ ��)�”}”(hj0��h]”hŒ CVS_KEYWORD”…”�”}”(hj 0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj0��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÕhj0��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒƒSince linux moved to git, the CVS markers are no longer used. So, CVS style keywords ($Id$, $Revision$, $Log$) should not be added.”h]”hŒƒSince linux moved to git, the CVS markers are no longer used. So, CVS style keywords ($Id$, $Revision$, $Log$) should not be added.”…”�”}”(hj 0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÓhj0��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj0��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÕhj�/��ubjP ��)�”}”(hŒæ**DEFAULT_NO_BREAK** switch default case is sometimes written as "default:;". This can cause new cases added below default to be defective. A "break;" should be added after empty default statement to avoid unwanted fallthrough. ”h]”(jV ��)�”}”(hŒ**DEFAULT_NO_BREAK**”h]”j\ ��)�”}”(hj@0��h]”hŒDEFAULT_NO_BREAK”…”�”}”(hjB0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj>0��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MÜhj:0��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒwswitch default case is sometimes written as "default:;". This can cause new cases added below default to be defective.”h]”hŒ{switch default case is sometimes written as “default:;â€�. This can cause new cases added below default to be defective.”…”�”}”(hjX0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MØhjU0��ubhÞ)�”}”(hŒWA "break;" should be added after empty default statement to avoid unwanted fallthrough.”h]”hŒ[A “break;â€� should be added after empty default statement to avoid unwanted fallthrough.”…”�”}”(hjf0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÛhjU0��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj:0��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´MÜhj�/��ubjP ��)�”}”(hŒ}**DOS_LINE_ENDINGS** For DOS-formatted patches, there are extra ^M symbols at the end of the line. These should be removed. ”h]”(jV ��)�”}”(hŒ**DOS_LINE_ENDINGS**”h]”j\ ��)�”}”(hj†0��h]”hŒDOS_LINE_ENDINGS”…”�”}”(hjˆ0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj„0��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Màhj€0��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒgFor DOS-formatted patches, there are extra ^M symbols at the end of the line. These should be removed.”h]”hŒgFor DOS-formatted patches, there are extra ^M symbols at the end of the line. These should be removed.”…”�”}”(hjž0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mßhj›0��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj€0��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Màhj�/��ubjP ��)�”}”(hŒ»**DT_SCHEMA_BINDING_PATCH** DT bindings moved to a json-schema based format instead of freeform text. See: https://www.kernel.org/doc/html/latest/devicetree/bindings/writing-schema.html ”h]”(jV ��)�”}”(hŒ**DT_SCHEMA_BINDING_PATCH**”h]”j\ ��)�”}”(hj¾0��h]”hŒDT_SCHEMA_BINDING_PATCH”…”�”}”(hjÀ0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj¼0��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mæhj¸0��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒIDT bindings moved to a json-schema based format instead of freeform text.”h]”hŒIDT bindings moved to a json-schema based format instead of freeform text.”…”�”}”(hjÖ0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MãhjÓ0��ubhÞ)�”}”(hŒSSee: https://www.kernel.org/doc/html/latest/devicetree/bindings/writing-schema.html”h]”(hŒSee: ”…”�”}”(hjä0��h²hh³Nh´NubjŒ ��)�”}”(hŒNhttps://www.kernel.org/doc/html/latest/devicetree/bindings/writing-schema.html”h]”hŒNhttps://www.kernel.org/doc/html/latest/devicetree/bindings/writing-schema.html”…”�”}”(hjì0��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jî0��uh1j‹ ��hjä0��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MæhjÓ0��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj¸0��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mæhj�/��ubjP ��)�”}”(hX¼��**DT_SPLIT_BINDING_PATCH** Devicetree bindings should be their own patch. This is because bindings are logically independent from a driver implementation, they have a different maintainer (even though they often are applied via the same tree), and it makes for a cleaner history in the DT only tree created with git-filter-branch. See: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters ”h]”(jV ��)�”}”(hŒ**DT_SPLIT_BINDING_PATCH**”h]”j\ ��)�”}”(hj1��h]”hŒDT_SPLIT_BINDING_PATCH”…”�”}”(hj1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj1��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mïhj 1��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hX0��Devicetree bindings should be their own patch. This is because bindings are logically independent from a driver implementation, they have a different maintainer (even though they often are applied via the same tree), and it makes for a cleaner history in the DT only tree created with git-filter-branch.”h]”hX0��Devicetree bindings should be their own patch. This is because bindings are logically independent from a driver implementation, they have a different maintainer (even though they often are applied via the same tree), and it makes for a cleaner history in the DT only tree created with git-filter-branch.”…”�”}”(hj+1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Méhj(1��ubhÞ)�”}”(hŒnSee: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters”h]”(hŒSee: ”…”�”}”(hj91��h²hh³Nh´NubjŒ ��)�”}”(hŒihttps://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters”h]”hŒihttps://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters”…”�”}”(hjA1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jC1��uh1j‹ ��hj91��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mïhj(1��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj 1��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mïhj�/��ubjP ��)�”}”(hŒž**EMBEDDED_FILENAME** Embedding the complete filename path inside the file isn't particularly useful as often the path is moved around and becomes incorrect. ”h]”(jV ��)�”}”(hŒ**EMBEDDED_FILENAME**”h]”j\ ��)�”}”(hjh1��h]”hŒEMBEDDED_FILENAME”…”�”}”(hjj1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjf1��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Móhjb1��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒ‡Embedding the complete filename path inside the file isn't particularly useful as often the path is moved around and becomes incorrect.”h]”hŒ‰Embedding the complete filename path inside the file isn’t particularly useful as often the path is moved around and becomes incorrect.”…”�”}”(hj€1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mòhj}1��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjb1��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Móhj�/��ubjP ��)�”}”(hŒµ**FILE_PATH_CHANGES** Whenever files are added, moved, or deleted, the MAINTAINERS file patterns can be out of sync or outdated. So MAINTAINERS might need updating in these cases. ”h]”(jV ��)�”}”(hŒ**FILE_PATH_CHANGES**”h]”j\ ��)�”}”(hj 1��h]”hŒFILE_PATH_CHANGES”…”�”}”(hj¢1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjž1��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mùhjš1��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒjWhenever files are added, moved, or deleted, the MAINTAINERS file patterns can be out of sync or outdated.”h]”hŒjWhenever files are added, moved, or deleted, the MAINTAINERS file patterns can be out of sync or outdated.”…”�”}”(hj¸1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Möhjµ1��ubhÞ)�”}”(hŒ2So MAINTAINERS might need updating in these cases.”h]”hŒ2So MAINTAINERS might need updating in these cases.”…”�”}”(hjÆ1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mùhjµ1��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjš1��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mùhj�/��ubjP ��)�”}”(hŒƒ**MEMSET** The memset use appears to be incorrect. This may be caused due to badly ordered parameters. Please recheck the usage. ”h]”(jV ��)�”}”(hŒ **MEMSET**”h]”j\ ��)�”}”(hjæ1��h]”hŒMEMSET”…”�”}”(hjè1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjä1��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mýhjà1��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒwThe memset use appears to be incorrect. This may be caused due to badly ordered parameters. Please recheck the usage.”h]”hŒwThe memset use appears to be incorrect. This may be caused due to badly ordered parameters. Please recheck the usage.”…”�”}”(hjþ1��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mühjû1��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjà1��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mýhj�/��ubjP ��)�”}”(hŒ™**NOT_UNIFIED_DIFF** The patch file does not appear to be in unified-diff format. Please regenerate the patch file before sending it to the maintainer. ”h]”(jV ��)�”}”(hŒ**NOT_UNIFIED_DIFF**”h]”j\ ��)�”}”(hj2��h]”hŒNOT_UNIFIED_DIFF”…”�”}”(hj 2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj2��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhj2��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒƒThe patch file does not appear to be in unified-diff format. Please regenerate the patch file before sending it to the maintainer.”h]”hŒƒThe patch file does not appear to be in unified-diff format. Please regenerate the patch file before sending it to the maintainer.”…”�”}”(hj62��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M�hj32��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj2��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mhj�/��ubjP ��)�”}”(hX2��**PLACEHOLDER_USE** Detects unhandled placeholder text left in cover letters or commit headers/logs. Common placeholders include lines like:: *** SUBJECT HERE *** *** BLURB HERE *** These typically come from autogenerated templates. Replace them with a proper subject and description before sending. ”h]”(jV ��)�”}”(hŒ**PLACEHOLDER_USE**”h]”j\ ��)�”}”(hjV2��h]”hŒPLACEHOLDER_USE”…”�”}”(hjX2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjT2��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´M hjP2��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒyDetects unhandled placeholder text left in cover letters or commit headers/logs. Common placeholders include lines like::”h]”hŒxDetects unhandled placeholder text left in cover letters or commit headers/logs. Common placeholders include lines like:”…”�”}”(hjn2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjk2��ubj)��)�”}”(hŒ'*** SUBJECT HERE *** *** BLURB HERE ***”h]”hŒ'*** SUBJECT HERE *** *** BLURB HERE ***”…”�”}”hj|2��sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(��h³hÇh´Mhjk2��ubhÞ)�”}”(hŒuThese typically come from autogenerated templates. Replace them with a proper subject and description before sending.”h]”hŒuThese typically come from autogenerated templates. Replace them with a proper subject and description before sending.”…”�”}”(hjŠ2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjk2��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjP2��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´M hj�/��ubjP ��)�”}”(hŒ\**PRINTF_0XDECIMAL** Prefixing 0x with decimal output is defective and should be corrected. ”h]”(jV ��)�”}”(hŒ**PRINTF_0XDECIMAL**”h]”j\ ��)�”}”(hjª2��h]”hŒPRINTF_0XDECIMAL”…”�”}”(hj¬2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj¨2��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhj¤2��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒFPrefixing 0x with decimal output is defective and should be corrected.”h]”hŒFPrefixing 0x with decimal output is defective and should be corrected.”…”�”}”(hjÂ2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¿2��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj¤2��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mhj�/��ubjP ��)�”}”(hX��**SPDX_LICENSE_TAG** The source file is missing or has an improper SPDX identifier tag. The Linux kernel requires the precise SPDX identifier in all source files, and it is thoroughly documented in the kernel docs. See: https://www.kernel.org/doc/html/latest/process/license-rules.html ”h]”(jV ��)�”}”(hŒ**SPDX_LICENSE_TAG**”h]”j\ ��)�”}”(hjâ2��h]”hŒSPDX_LICENSE_TAG”…”�”}”(hjä2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hjà2��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´MhjÜ2��ubjq ��)�”}”(hhh]”(hÞ)�”}”(hŒÁThe source file is missing or has an improper SPDX identifier tag. The Linux kernel requires the precise SPDX identifier in all source files, and it is thoroughly documented in the kernel docs.”h]”hŒÁThe source file is missing or has an improper SPDX identifier tag. The Linux kernel requires the precise SPDX identifier in all source files, and it is thoroughly documented in the kernel docs.”…”�”}”(hjú2��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj÷2��ubhÞ)�”}”(hŒFSee: https://www.kernel.org/doc/html/latest/process/license-rules.html”h]”(hŒSee: ”…”�”}”(hj3��h²hh³Nh´NubjŒ ��)�”}”(hŒAhttps://www.kernel.org/doc/html/latest/process/license-rules.html”h]”hŒAhttps://www.kernel.org/doc/html/latest/process/license-rules.html”…”�”}”(hj3��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j3��uh1j‹ ��hj3��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj÷2��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hjÜ2��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mhj�/��ubjP ��)�”}”(hŒP**TYPO_SPELLING** Some words may have been misspelled. Consider reviewing them.”h]”(jV ��)�”}”(hŒ**TYPO_SPELLING**”h]”j\ ��)�”}”(hj73��h]”hŒ TYPO_SPELLING”…”�”}”(hj93��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j[ ��hj53��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jU ��h³hÇh´Mhj13��ubjq ��)�”}”(hhh]”hÞ)�”}”(hŒ>Some words may have been misspelled. Consider reviewing them.”h]”hŒ>Some words may have been misspelled. Consider reviewing them.”…”�”}”(hjO3��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjL3��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jp ��hj13��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jO ��h³hÇh´Mhj�/��ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jJ ��hj‹/��ubah}”(h]”h ]”h"]”h$]”h&]”uh1jF��h³hÇh´MÊhjz/��h²hubeh}”(h]”Œothers”ah ]”h"]”Œothers”ah$]”h&]”uh1hÈhjú��h²hh³hÇh´MÈubeh}”(h]”Œtype-descriptions”ah ]”h"]”Œtype descriptions”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´Køubeh}”(h]”Œ checkpatch”ah ]”h"]”Œ checkpatch”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j°3��Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jŠ3��j‡3��jî��jë��jK��jH��j÷��jô��j‚3��j3��j“ ��j� ��jñ��jî��jÅ��jÂ��j/��j,��j‚��j��j��j��jÁ#��j¾#��j(��j(��j®)��j«)��jw/��jt/��jz3��jw3��uŒ nametypes”}”(jŠ3��‰jî��‰jK��‰j÷��‰j‚3��‰j“ ��‰jñ��‰jÅ��‰j/��‰j‚��‰j��‰jÁ#��‰j(��‰j®)��‰jw/��‰jz3��‰uh}”(j‡3��hÊjë��hûjH��jñ��jô��jN��j3��jú��j� ��j5 ��jî��j– ��jÂ��jô��j,��jÈ��j��j2��j��j…��j¾#��j��j(��jÄ#��j«)��j(��jt/��j±)��jw3��jz/��uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”K�Œ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”(hŒsystem_message”“”)�”}”(hhh]”hÞ)�”}”(hŒ:Enumerated list start value not ordinal-1: "2" (ordinal 2)”h]”hŒ>Enumerated list start value not ordinal-1: “2â€� (ordinal 2)”…”�”}”(hj4��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj4��ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”Kuh1j4��hjí-��ubj4��)�”}”(hhh]”hÞ)�”}”(hŒ:Enumerated list start value not ordinal-1: "3" (ordinal 3)”h]”hŒ>Enumerated list start value not ordinal-1: “3â€� (ordinal 3)”…”�”}”(hj34��h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj04��ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”j-4��Œsource”hÇŒline”Kuh1j4��hjí-��ubeŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.