<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/patman/test_checkpatch.py, branch v2024.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/patman/test_checkpatch.py?h=v2024.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/patman/test_checkpatch.py?h=v2024.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2023-11-02T15:38:54Z</updated>
<entry>
<title>patman: Add a 'keep_change_id' setting</title>
<updated>2023-11-02T15:38:54Z</updated>
<author>
<name>Maxim Cournoyer</name>
<email>maxim.cournoyer@gmail.com</email>
</author>
<published>2023-10-13T03:06:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a13af89e10391189b87ad32616ba688d6d7c5878'/>
<id>urn:sha1:a13af89e10391189b87ad32616ba688d6d7c5878</id>
<content type='text'>
A Change-Id can be useful for traceability purposes, and some projects
may wish to have them preserved.  This change makes it configurable
via a new 'keep_change_id' setting.

Signed-off-by: Maxim Cournoyer &lt;maxim.cournoyer@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>patman: Add a little documentation on the checkpatch tests</title>
<updated>2023-10-24T20:34:45Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-10-13T16:28:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2f34b0331a60239b7708f125ad621e4e62f51803'/>
<id>urn:sha1:2f34b0331a60239b7708f125ad621e4e62f51803</id>
<content type='text'>
These texts lack comments. Add some so that it is clearer what is going
on.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>checkpatch.pl: Make common.h check boarder</title>
<updated>2023-10-24T20:34:45Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2023-10-13T16:28:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a8384f8da1d6f9cab9fe941cc42d60f1a4acc4ea'/>
<id>urn:sha1:a8384f8da1d6f9cab9fe941cc42d60f1a4acc4ea</id>
<content type='text'>
At this point in time we should not add common.h to any new files, so
make checkpatch.pl complain.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: Add a warning for pre-schema driver model tags</title>
<updated>2023-02-14T16:43:27Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-02-13T15:56:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=48be546b70f509d8ac02288fd5069913ec9196f3'/>
<id>urn:sha1:48be546b70f509d8ac02288fd5069913ec9196f3</id>
<content type='text'>
Help ensure that these don't creep into development by adding a check in
checkpatch for them.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>checkpatch.pl: Update CONFIG logic in U-Boot section</title>
<updated>2022-12-23T15:15:13Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2022-12-04T15:14:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2a06da08e7897deb08c204df1c2f7853c4e61806'/>
<id>urn:sha1:2a06da08e7897deb08c204df1c2f7853c4e61806</id>
<content type='text'>
Now that all CONFIG symbols are in Kconfig, checkpatch.pl should check
for and error on any case of define/undef CONFIG_*.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>patman: Convert camel case in test_checkpatch.py</title>
<updated>2022-02-09T19:26:12Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2022-01-29T21:14:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ce31277160de2b8500f6a0e6fd284ef137e26628'/>
<id>urn:sha1:ce31277160de2b8500f6a0e6fd284ef137e26628</id>
<content type='text'>
Convert this file to snake case and update all files which use it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>patman: Convert camel case in checkpatch.py</title>
<updated>2022-02-09T19:26:12Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2022-01-29T21:14:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ae5e9265509bcb4bed7a0a1c3da613419919681d'/>
<id>urn:sha1:ae5e9265509bcb4bed7a0a1c3da613419919681d</id>
<content type='text'>
Convert this file to snake case and update all files which use it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: Add warnings for using strn(cat|cpy)</title>
<updated>2021-04-12T21:44:55Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2021-03-11T05:15:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d9c305071069164feceaff3e543c61693bc2c401'/>
<id>urn:sha1:d9c305071069164feceaff3e543c61693bc2c401</id>
<content type='text'>
strn(cat|cpy) has a bad habit of not nul-terminating the destination,
resulting in constructions like

	strncpy(foo, bar, sizeof(foo) - 1);
	foo[sizeof(foo) - 1] = '\0';

However, it is very easy to forget about this behavior and accidentally
leave a string unterminated. This has shown up in some recent coverity
scans [1, 2] (including code recently touched by yours truly).

Fortunately, the guys at OpenBSD came up with strl(cat|cpy), which always
nul-terminate strings. These functions are already in U-Boot, so we should
encourage new code to use them instead of strn(cat|cpy).

[1] https://lists.denx.de/pipermail/u-boot/2021-March/442888.html
[2] https://lists.denx.de/pipermail/u-boot/2021-January/438073.html

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: Add warnings for unexpected struct names</title>
<updated>2020-12-13T23:51:09Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-12-03T23:55:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b7bbd553de0d9752f919dfc616f560f6f2504c14'/>
<id>urn:sha1:b7bbd553de0d9752f919dfc616f560f6f2504c14</id>
<content type='text'>
As a way of keeping the driver declarations more consistent, add a warning
if the struct used does not end with _priv or _plat.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>patman: Rename functions in patchstream</title>
<updated>2020-11-05T16:11:31Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-10-30T03:46:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d93720e13800423d3d6c9f8318d5a75ce7362639'/>
<id>urn:sha1:d93720e13800423d3d6c9f8318d5a75ce7362639</id>
<content type='text'>
Rename these functions to lower case as per PEP8.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
