* [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"
@ 2023-01-13 13:50 Maxim Cournoyer
2023-01-13 13:50 ` [PATCH 2/2] patman: symlink top level .checkpatch.conf Maxim Cournoyer
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Maxim Cournoyer @ 2023-01-13 13:50 UTC (permalink / raw)
To: U-Boot Mailing List; +Cc: sjoerd, Maxim Cournoyer, Simon Glass
This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because
it broke usage of patman on Linux, whose check script doesn't know
about '--strict' or '--u-boot'.
Reported-by: Sjoerd Simons <sjoerd@collabora.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
---
tools/patman/checkpatch.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py
index 012c0d895c..d1b902dd96 100644
--- a/tools/patman/checkpatch.py
+++ b/tools/patman/checkpatch.py
@@ -211,7 +211,7 @@ def check_patch(fname, verbose=False, show_types=False, use_tree=False):
stdout: Full output of checkpatch
"""
chk = find_check_patch()
- args = [chk, '--u-boot', '--strict']
+ args = [chk]
if not use_tree:
args.append('--no-tree')
if show_types:
base-commit: 87c9e117bf57d6bb42c5521a3f6ec9ca7d97e5fa
--
2.38.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] patman: symlink top level .checkpatch.conf
2023-01-13 13:50 [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'" Maxim Cournoyer
@ 2023-01-13 13:50 ` Maxim Cournoyer
2023-01-13 18:00 ` Simon Glass
2023-01-13 18:00 ` [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'" Simon Glass
2023-01-16 9:19 ` Sjoerd Simons
2 siblings, 1 reply; 9+ messages in thread
From: Maxim Cournoyer @ 2023-01-13 13:50 UTC (permalink / raw)
To: U-Boot Mailing List
Cc: sjoerd, Maxim Cournoyer, Andrey Zhizhikin, Simon Glass
This makes it possible to run the patman test suite simply by invoking
'pytest' from the patman sub-directory:
$ cd tools/patman
$ pytest
Otherwise, the top level .checkpatch.conf would be ignored and
multiple test_checkpatch.py tests would fail.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
---
.gitignore | 1 +
tools/patman/.checkpatch.conf | 1 +
2 files changed, 2 insertions(+)
create mode 120000 tools/patman/.checkpatch.conf
diff --git a/.gitignore b/.gitignore
index eb769f144c..3adf1faf4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
# Normal rules (sorted alphabetically)
#
.*
+!.checkpatch.conf
*.a
*.asn1.[ch]
*.bin
diff --git a/tools/patman/.checkpatch.conf b/tools/patman/.checkpatch.conf
new file mode 120000
index 0000000000..c0e2020afe
--- /dev/null
+++ b/tools/patman/.checkpatch.conf
@@ -0,0 +1 @@
+../../.checkpatch.conf
\ No newline at end of file
--
2.38.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] patman: symlink top level .checkpatch.conf
2023-01-13 13:50 ` [PATCH 2/2] patman: symlink top level .checkpatch.conf Maxim Cournoyer
@ 2023-01-13 18:00 ` Simon Glass
2023-01-19 2:11 ` Simon Glass
0 siblings, 1 reply; 9+ messages in thread
From: Simon Glass @ 2023-01-13 18:00 UTC (permalink / raw)
To: Maxim Cournoyer
Cc: U-Boot Mailing List, sjoerd, Maxim Cournoyer, Andrey Zhizhikin
On Fri, 13 Jan 2023 at 06:51, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
> This makes it possible to run the patman test suite simply by invoking
> 'pytest' from the patman sub-directory:
>
> $ cd tools/patman
> $ pytest
>
> Otherwise, the top level .checkpatch.conf would be ignored and
> multiple test_checkpatch.py tests would fail.
>
> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
> ---
>
> .gitignore | 1 +
> tools/patman/.checkpatch.conf | 1 +
> 2 files changed, 2 insertions(+)
> create mode 120000 tools/patman/.checkpatch.conf
>
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"
2023-01-13 13:50 [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'" Maxim Cournoyer
2023-01-13 13:50 ` [PATCH 2/2] patman: symlink top level .checkpatch.conf Maxim Cournoyer
@ 2023-01-13 18:00 ` Simon Glass
2023-01-16 9:19 ` Sjoerd Simons
2 siblings, 0 replies; 9+ messages in thread
From: Simon Glass @ 2023-01-13 18:00 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: U-Boot Mailing List, sjoerd, Maxim Cournoyer
On Fri, 13 Jan 2023 at 06:50, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
> This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because
> it broke usage of patman on Linux, whose check script doesn't know
> about '--strict' or '--u-boot'.
>
> Reported-by: Sjoerd Simons <sjoerd@collabora.com>
> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
> ---
>
> tools/patman/checkpatch.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"
2023-01-13 13:50 [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'" Maxim Cournoyer
2023-01-13 13:50 ` [PATCH 2/2] patman: symlink top level .checkpatch.conf Maxim Cournoyer
2023-01-13 18:00 ` [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'" Simon Glass
@ 2023-01-16 9:19 ` Sjoerd Simons
2023-01-19 2:11 ` Simon Glass
2 siblings, 1 reply; 9+ messages in thread
From: Sjoerd Simons @ 2023-01-16 9:19 UTC (permalink / raw)
To: Maxim Cournoyer, U-Boot Mailing List; +Cc: Maxim Cournoyer, Simon Glass
On Fri, 2023-01-13 at 08:50 -0500, Maxim Cournoyer wrote:
> This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because
> it broke usage of patman on Linux, whose check script doesn't know
> about '--strict' or '--u-boot'.
I can confirm that this reverts fixes the reported issue:
Tested-by: Sjoerd Simons <sjoerd@collabora.com>
>
> Reported-by: Sjoerd Simons <sjoerd@collabora.com>
> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
> ---
>
> tools/patman/checkpatch.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py
> index 012c0d895c..d1b902dd96 100644
> --- a/tools/patman/checkpatch.py
> +++ b/tools/patman/checkpatch.py
> @@ -211,7 +211,7 @@ def check_patch(fname, verbose=False,
> show_types=False, use_tree=False):
> stdout: Full output of checkpatch
> """
> chk = find_check_patch()
> - args = [chk, '--u-boot', '--strict']
> + args = [chk]
> if not use_tree:
> args.append('--no-tree')
> if show_types:
>
> base-commit: 87c9e117bf57d6bb42c5521a3f6ec9ca7d97e5fa
--
Sjoerd Simons
Collabora Ltd.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] patman: symlink top level .checkpatch.conf
2023-01-13 18:00 ` Simon Glass
@ 2023-01-19 2:11 ` Simon Glass
0 siblings, 0 replies; 9+ messages in thread
From: Simon Glass @ 2023-01-19 2:11 UTC (permalink / raw)
To: Simon Glass
Cc: U-Boot Mailing List, sjoerd, Maxim Cournoyer, Andrey Zhizhikin,
Maxim Cournoyer
On Fri, 13 Jan 2023 at 06:51, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
> This makes it possible to run the patman test suite simply by invoking
> 'pytest' from the patman sub-directory:
>
> $ cd tools/patman
> $ pytest
>
> Otherwise, the top level .checkpatch.conf would be ignored and
> multiple test_checkpatch.py tests would fail.
>
> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
> ---
>
> .gitignore | 1 +
> tools/patman/.checkpatch.conf | 1 +
> 2 files changed, 2 insertions(+)
> create mode 120000 tools/patman/.checkpatch.conf
>
Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot-dm, thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"
2023-01-16 9:19 ` Sjoerd Simons
@ 2023-01-19 2:11 ` Simon Glass
2023-01-19 10:24 ` Marcel Ziswiler
0 siblings, 1 reply; 9+ messages in thread
From: Simon Glass @ 2023-01-19 2:11 UTC (permalink / raw)
To: Sjoerd Simons
Cc: Maxim Cournoyer, Simon Glass, Maxim Cournoyer,
U-Boot Mailing List
On Fri, 2023-01-13 at 08:50 -0500, Maxim Cournoyer wrote:
> This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because
> it broke usage of patman on Linux, whose check script doesn't know
> about '--strict' or '--u-boot'.
I can confirm that this reverts fixes the reported issue:
Tested-by: Sjoerd Simons <sjoerd@collabora.com>
>
> Reported-by: Sjoerd Simons <sjoerd@collabora.com>
> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
> ---
>
> tools/patman/checkpatch.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied to u-boot-dm, thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"
2023-01-19 2:11 ` Simon Glass
@ 2023-01-19 10:24 ` Marcel Ziswiler
2023-01-19 16:19 ` Simon Glass
0 siblings, 1 reply; 9+ messages in thread
From: Marcel Ziswiler @ 2023-01-19 10:24 UTC (permalink / raw)
To: sjg@chromium.org, sjoerd@collabora.com
Cc: u-boot@lists.denx.de, maxim.cournoyer@savoirfairelinux.com,
maxim.cournoyer@gmail.com
Hi Simon
On Wed, 2023-01-18 at 21:11 -0500, Simon Glass wrote:
> On Fri, 2023-01-13 at 08:50 -0500, Maxim Cournoyer wrote:
> > This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because
> > it broke usage of patman on Linux, whose check script doesn't know
> > about '--strict' or '--u-boot'.
>
> I can confirm that this reverts fixes the reported issue:
>
> Tested-by: Sjoerd Simons <sjoerd@collabora.com>
>
> >
> > Reported-by: Sjoerd Simons <sjoerd@collabora.com>
> > Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
> > ---
> >
> > tools/patman/checkpatch.py | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> Applied to u-boot-dm, thanks!
I also just stumbled over this and learned now that it already got fixed. Thanks!
Cheers
Marcel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"
2023-01-19 10:24 ` Marcel Ziswiler
@ 2023-01-19 16:19 ` Simon Glass
0 siblings, 0 replies; 9+ messages in thread
From: Simon Glass @ 2023-01-19 16:19 UTC (permalink / raw)
To: Marcel Ziswiler
Cc: sjoerd@collabora.com, u-boot@lists.denx.de,
maxim.cournoyer@savoirfairelinux.com, maxim.cournoyer@gmail.com
On Thu, 19 Jan 2023 at 03:24, Marcel Ziswiler
<marcel.ziswiler@toradex.com> wrote:
>
> Hi Simon
>
> On Wed, 2023-01-18 at 21:11 -0500, Simon Glass wrote:
> > On Fri, 2023-01-13 at 08:50 -0500, Maxim Cournoyer wrote:
> > > This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because
> > > it broke usage of patman on Linux, whose check script doesn't know
> > > about '--strict' or '--u-boot'.
> >
> > I can confirm that this reverts fixes the reported issue:
> >
> > Tested-by: Sjoerd Simons <sjoerd@collabora.com>
> >
> > >
> > > Reported-by: Sjoerd Simons <sjoerd@collabora.com>
> > > Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
> > > ---
> > >
> > > tools/patman/checkpatch.py | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > Applied to u-boot-dm, thanks!
>
> I also just stumbled over this and learned now that it already got fixed. Thanks!
OK good!
- Simon
> Cheers
>
> Marcel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-01-19 16:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-13 13:50 [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'" Maxim Cournoyer
2023-01-13 13:50 ` [PATCH 2/2] patman: symlink top level .checkpatch.conf Maxim Cournoyer
2023-01-13 18:00 ` Simon Glass
2023-01-19 2:11 ` Simon Glass
2023-01-13 18:00 ` [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'" Simon Glass
2023-01-16 9:19 ` Sjoerd Simons
2023-01-19 2:11 ` Simon Glass
2023-01-19 10:24 ` Marcel Ziswiler
2023-01-19 16:19 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox