public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH] scripts/checkpatch.pl: Adjust the top_of_kernel_tree check for kvm-unit-tests
@ 2025-07-24 14:32 Thomas Huth
  2025-09-08 17:14 ` Andrew Jones
  2025-09-08 18:39 ` Andrew Jones
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2025-07-24 14:32 UTC (permalink / raw)
  To: kvm; +Cc: Andrew Jones, Nicholas Piggin

From: Thomas Huth <thuth@redhat.com>

The copy of checkpatch.pl that we currently have in the kvm-unit-tests
repository refuses to work without the --no-tree switch, since it looks
for some kernel-related files to determine the top directory. Adjust this
list of files for the kvm-unit-tests repository to make it work.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 scripts/checkpatch.pl | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index acef47b7..e858261c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1382,9 +1382,8 @@ sub top_of_kernel_tree {
 	my ($root) = @_;
 
 	my @tree_check = (
-		"COPYING", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile",
-		"README", "Documentation", "arch", "include", "drivers",
-		"fs", "init", "ipc", "kernel", "lib", "scripts",
+		"COPYRIGHT", "LICENSE", "MAINTAINERS", "Makefile",
+		"README.md", "docs", "lib", "scripts",
 	);
 
 	foreach my $check (@tree_check) {
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [kvm-unit-tests PATCH] scripts/checkpatch.pl: Adjust the top_of_kernel_tree check for kvm-unit-tests
  2025-07-24 14:32 [kvm-unit-tests PATCH] scripts/checkpatch.pl: Adjust the top_of_kernel_tree check for kvm-unit-tests Thomas Huth
@ 2025-09-08 17:14 ` Andrew Jones
  2025-09-08 18:39 ` Andrew Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jones @ 2025-09-08 17:14 UTC (permalink / raw)
  To: Thomas Huth; +Cc: kvm, Nicholas Piggin

On Thu, Jul 24, 2025 at 04:32:58PM +0200, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> The copy of checkpatch.pl that we currently have in the kvm-unit-tests
> repository refuses to work without the --no-tree switch, since it looks
> for some kernel-related files to determine the top directory. Adjust this
> list of files for the kvm-unit-tests repository to make it work.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  scripts/checkpatch.pl | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index acef47b7..e858261c 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1382,9 +1382,8 @@ sub top_of_kernel_tree {
>  	my ($root) = @_;
>  
>  	my @tree_check = (
> -		"COPYING", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile",
> -		"README", "Documentation", "arch", "include", "drivers",
> -		"fs", "init", "ipc", "kernel", "lib", "scripts",
> +		"COPYRIGHT", "LICENSE", "MAINTAINERS", "Makefile",
> +		"README.md", "docs", "lib", "scripts",
>  	);
>  
>  	foreach my $check (@tree_check) {
> -- 
> 2.50.1
>

Reviewed-by: Andrew Jones <andrew.jones@linux.dev>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [kvm-unit-tests PATCH] scripts/checkpatch.pl: Adjust the top_of_kernel_tree check for kvm-unit-tests
  2025-07-24 14:32 [kvm-unit-tests PATCH] scripts/checkpatch.pl: Adjust the top_of_kernel_tree check for kvm-unit-tests Thomas Huth
  2025-09-08 17:14 ` Andrew Jones
@ 2025-09-08 18:39 ` Andrew Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jones @ 2025-09-08 18:39 UTC (permalink / raw)
  To: Thomas Huth; +Cc: kvm, Nicholas Piggin

On Thu, Jul 24, 2025 at 04:32:58PM +0200, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> The copy of checkpatch.pl that we currently have in the kvm-unit-tests
> repository refuses to work without the --no-tree switch, since it looks
> for some kernel-related files to determine the top directory. Adjust this
> list of files for the kvm-unit-tests repository to make it work.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  scripts/checkpatch.pl | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index acef47b7..e858261c 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1382,9 +1382,8 @@ sub top_of_kernel_tree {
>  	my ($root) = @_;
>  
>  	my @tree_check = (
> -		"COPYING", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile",
> -		"README", "Documentation", "arch", "include", "drivers",
> -		"fs", "init", "ipc", "kernel", "lib", "scripts",
> +		"COPYRIGHT", "LICENSE", "MAINTAINERS", "Makefile",
> +		"README.md", "docs", "lib", "scripts",
>  	);
>  
>  	foreach my $check (@tree_check) {
> -- 
> 2.50.1
>

Merged.

Thanks,
drew

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-08 18:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24 14:32 [kvm-unit-tests PATCH] scripts/checkpatch.pl: Adjust the top_of_kernel_tree check for kvm-unit-tests Thomas Huth
2025-09-08 17:14 ` Andrew Jones
2025-09-08 18:39 ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox