<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/barebox.git/scripts/checkpatch.pl, branch master</title>
<subtitle>git.pengutronix.de: git/barebox.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/'/>
<entry>
<title>checkpatch: don't warn about %pe</title>
<updated>2022-07-11T08:24:06+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2022-07-08T11:00:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=ae815e4e7159ed8edfc6ec9714cc6cb625edc802'/>
<id>ae815e4e7159ed8edfc6ec9714cc6cb625edc802</id>
<content type='text'>
We have been supporting %pe since commit 91084b450226 ("vsprintf:
add %pe format specifier for printing symbolic error names").
checkpatch.pl was still warning about this, fix that.

Reported-by: Johannes Zink &lt;j.zink@pengutronix.de&gt;
Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20220708110012.410905-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We have been supporting %pe since commit 91084b450226 ("vsprintf:
add %pe format specifier for printing symbolic error names").
checkpatch.pl was still warning about this, fix that.

Reported-by: Johannes Zink &lt;j.zink@pengutronix.de&gt;
Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20220708110012.410905-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/spdxcheck.py: Use Python 3</title>
<updated>2021-05-03T12:01:40+00:00</updated>
<author>
<name>Antony Pavlov</name>
<email>antonynpavlov@gmail.com</email>
</author>
<published>2021-04-16T09:14:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=623c72a9c6bb79b6084946f1efe3b1358766f52f'/>
<id>623c72a9c6bb79b6084946f1efe3b1358766f52f</id>
<content type='text'>
Based on this linux kernel commit:

&gt; commit d0259c42abff51b586496a0594933e394efefbc5
&gt; Author: Bert Vermeulen &lt;bert@biot.com&gt;
&gt; Date:   Thu Jan 21 09:54:12 2021 +0100
&gt;
&gt;    spdxcheck.py: Use Python 3
&gt;
&gt;    Python 2.x has been officially EOL'ed for some time, and in any case
&gt;    the git module for it is hard to come by.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Link: https://lore.barebox.org/20210416091404.92251-1-antonynpavlov@gmail.com
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on this linux kernel commit:

&gt; commit d0259c42abff51b586496a0594933e394efefbc5
&gt; Author: Bert Vermeulen &lt;bert@biot.com&gt;
&gt; Date:   Thu Jan 21 09:54:12 2021 +0100
&gt;
&gt;    spdxcheck.py: Use Python 3
&gt;
&gt;    Python 2.x has been officially EOL'ed for some time, and in any case
&gt;    the git module for it is hard to come by.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Link: https://lore.barebox.org/20210416091404.92251-1-antonynpavlov@gmail.com
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch.pl: Update DT vendor prefix check</title>
<updated>2020-04-14T09:17:33+00:00</updated>
<author>
<name>Antony Pavlov</name>
<email>antonynpavlov@gmail.com</email>
</author>
<published>2020-04-06T21:05:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=9ec754380440d8c1ff8c61cafd6583477c6fba28'/>
<id>9ec754380440d8c1ff8c61cafd6583477c6fba28</id>
<content type='text'>
In commit 796af3473b82 ("dts: update to v5.2-rc1")
vendor-prefixes.txt has been converted to a DT schema.
Update the checkpatch.pl DT check to extract vendor prefixes from the new
vendor-prefixes.yaml file.

Based on this linux kernel commit 852d095d16a6
("checkpatch.pl: Update DT vendor prefix check").

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In commit 796af3473b82 ("dts: update to v5.2-rc1")
vendor-prefixes.txt has been converted to a DT schema.
Update the checkpatch.pl DT check to extract vendor prefixes from the new
vendor-prefixes.yaml file.

Based on this linux kernel commit 852d095d16a6
("checkpatch.pl: Update DT vendor prefix check").

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch: apply barebox-specific modifications</title>
<updated>2019-05-21T07:16:57+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2019-05-15T09:36:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=725306f01e290b0f812093fbc826e892d9ffb1c2'/>
<id>725306f01e290b0f812093fbc826e892d9ffb1c2</id>
<content type='text'>
For future reference, following barebox changes were applied
on top of the scripts/checkpatch.pl copied from upstream:

4a7f56056d ("scripts: Adapt checkpatch.pl for barebox.")
2671c30c25 ("scripts/checkpatch.pl: don't search for Doxyfile when checking top_of_kernel_tree()")
ad3c55fbf2 ("scripts/checkpatch.pl: don't search for CREDITS when checking top_of_kernel_tree()")
13b0f4666d ("checkpatch: don't check TODO file presence")

	These adjust sub top_of_kernel_tree's @tree_check to eventually contain
		(
			"arch", "commands", "common", "COPYING", "defaultenv",
			"Documentation", "drivers", "fs", "include", "lib",
			"MAKEALL", "Makefile", "net", "README", "scripts"
		);

9e809ef431 ("scripts: allow lines longer than 80 cols with printf() in checkpatch")

	adds an exception for printf, same as printk.

9496896fbf ("checkpatch: add DT compatible string documentation checks")

	searches dts/Bindings as well as Documentation/devicetree/bindings
	for compatibles.

Cc: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For future reference, following barebox changes were applied
on top of the scripts/checkpatch.pl copied from upstream:

4a7f56056d ("scripts: Adapt checkpatch.pl for barebox.")
2671c30c25 ("scripts/checkpatch.pl: don't search for Doxyfile when checking top_of_kernel_tree()")
ad3c55fbf2 ("scripts/checkpatch.pl: don't search for CREDITS when checking top_of_kernel_tree()")
13b0f4666d ("checkpatch: don't check TODO file presence")

	These adjust sub top_of_kernel_tree's @tree_check to eventually contain
		(
			"arch", "commands", "common", "COPYING", "defaultenv",
			"Documentation", "drivers", "fs", "include", "lib",
			"MAKEALL", "Makefile", "net", "README", "scripts"
		);

9e809ef431 ("scripts: allow lines longer than 80 cols with printf() in checkpatch")

	adds an exception for printf, same as printk.

9496896fbf ("checkpatch: add DT compatible string documentation checks")

	searches dts/Bindings as well as Documentation/devicetree/bindings
	for compatibles.

Cc: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch: import as-is from Linux v5.1</title>
<updated>2019-05-21T07:16:57+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2019-05-15T09:36:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=9e60c153cbfb62debe307f1431be686a6fb29515'/>
<id>9e60c153cbfb62debe307f1431be686a6fb29515</id>
<content type='text'>
This imports the Linux scripts/checkpatch.pl of v5.1.
barebox-specifics will be added in a separate follow-up
patch.

Suggested-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This imports the Linux scripts/checkpatch.pl of v5.1.
barebox-specifics will be added in a separate follow-up
patch.

Suggested-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch.pl: check for #if 0/#if 1</title>
<updated>2018-12-06T07:56:09+00:00</updated>
<author>
<name>Antony Pavlov</name>
<email>antonynpavlov@gmail.com</email>
</author>
<published>2018-12-05T13:21:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=151ab20210367e7774f2caff705ad3aac85ade3e'/>
<id>151ab20210367e7774f2caff705ad3aac85ade3e</id>
<content type='text'>
The #if 0 or #if 1 is used to toggle features. Warn if #if 0 or #if 1
is present and suggest that they can be removed.

Based on 60f890105547f7a4 ("checkpatch: check for #if 0/#if 1")
Linux kernel commit.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The #if 0 or #if 1 is used to toggle features. Warn if #if 0 or #if 1
is present and suggest that they can be removed.

Based on 60f890105547f7a4 ("checkpatch: check for #if 0/#if 1")
Linux kernel commit.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch.pl: use SPDX tag</title>
<updated>2018-12-06T07:56:09+00:00</updated>
<author>
<name>Antony Pavlov</name>
<email>antonynpavlov@gmail.com</email>
</author>
<published>2018-12-05T13:21:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=832750116b8c6ea220bf3c1ed682b81b6ec18216'/>
<id>832750116b8c6ea220bf3c1ed682b81b6ec18216</id>
<content type='text'>
Also add Joe's copyright.

Based on Linux kernel commit 882ea1d64eb3956
("scripts: use SPDX tag in get_maintainer and checkpatch").

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also add Joe's copyright.

Based on Linux kernel commit 882ea1d64eb3956
("scripts: use SPDX tag in get_maintainer and checkpatch").

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch.pl: check for common memset parameter issues against statements</title>
<updated>2018-12-06T07:56:09+00:00</updated>
<author>
<name>Antony Pavlov</name>
<email>antonynpavlov@gmail.com</email>
</author>
<published>2018-12-05T13:21:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=f27701ad378503459d387abbadd320a8c065b892'/>
<id>f27701ad378503459d387abbadd320a8c065b892</id>
<content type='text'>
Based on these Linux kernel commits

&gt; 309c00c73f053a90 checkpatch: warn about memset with swapped arguments
&gt; 554e165cf32610ec checkpatch: check for common memset parameter issues against statments

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on these Linux kernel commits

&gt; 309c00c73f053a90 checkpatch: warn about memset with swapped arguments
&gt; 554e165cf32610ec checkpatch: check for common memset parameter issues against statments

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch.pl: add ability to ignore various messages</title>
<updated>2018-12-06T07:56:09+00:00</updated>
<author>
<name>Antony Pavlov</name>
<email>antonynpavlov@gmail.com</email>
</author>
<published>2018-12-05T13:21:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=05d7f8e66f3f6e34edf7cbd3e1b389a5dc839acd'/>
<id>05d7f8e66f3f6e34edf7cbd3e1b389a5dc839acd</id>
<content type='text'>
Based on commit 000d1cc1829f938c ("checkpatch.pl: add
ability to ignore various messages") from Linux kernel.

This simplifies current linux kernel checkpatch.pl commit
adoption for barebox due to conversion of
1-argument ERROR($1), WARN($1) and CHK($1) subs into
2-argument ERROR($1, $2), WARN($1, $2) and CHK($1, $2) subs.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on commit 000d1cc1829f938c ("checkpatch.pl: add
ability to ignore various messages") from Linux kernel.

This simplifies current linux kernel checkpatch.pl commit
adoption for barebox due to conversion of
1-argument ERROR($1), WARN($1) and CHK($1) subs into
2-argument ERROR($1, $2), WARN($1, $2) and CHK($1, $2) subs.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpatch: don't check TODO file presence</title>
<updated>2018-09-18T06:50:26+00:00</updated>
<author>
<name>Antony Pavlov</name>
<email>antonynpavlov@gmail.com</email>
</author>
<published>2018-09-12T21:19:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=13b0f4666db5dd55e116a9011fb769a53c3a382f'/>
<id>13b0f4666db5dd55e116a9011fb769a53c3a382f</id>
<content type='text'>
The commit b3baf2d86149 ("TODO: remove unused file") drops
the TODO file. Alas scripts/checkpatch.pl checks TODO file
presence in top_of_kernel_tree(). Without TODO checkpatch.pl
exits with 'Must be run from the top-level dir. of a kernel tree'.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The commit b3baf2d86149 ("TODO: remove unused file") drops
the TODO file. Alas scripts/checkpatch.pl checks TODO file
presence in top_of_kernel_tree(). Without TODO checkpatch.pl
exits with 'Must be run from the top-level dir. of a kernel tree'.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
