.b4-config: Add checkpatch.pl default commands
PATCH 1/1 .b4-config: Add checkpatch.pl default commands
From: Ricardo B. Marliere <[email protected]>
Blend b4 default checkpatch.pl flags with the ones defined in include/mk/env_post.mk in .b4-config so that a contributor may use b4 prep --check and b4 am --check in his workflow.
--- .b4-config | 3 +++ 1 file changed, 3 insertions(+)
.b4-config +3 -0
@@ -4,3 +4,6 @@ send-series-to = Linux Test Project <[email protected]> pw-url = https://patchwork.ozlabs.org/ pw-project = ltp + prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --showfile --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING +
---
base-commit: 6fe8aa186559784f0394cd449cba6c53342790ec
change-id: 20250114-fix_b4-config-1ab84320000a
Best regards,
Signature · 5 lines
Ricardo B. Marliere <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi,
thanks for this patch. I was using something similar, but the output here seems more reliable. What I don't really understand is the following error for many of the commits in the patch-set:
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
Andrea
Quoted 28 lines · Ricardo B. Marliere via ltp
From: Ricardo B. Marliere <[email protected]>
Blend b4 default checkpatch.pl flags with the ones defined in
include/mk/env_post.mkin .b4-config so that a contributor may useb4 prep --checkandb4 am --checkin his workflow.Signed-off-by Ricardo B. Marliere <[email protected]>--- .b4-config | 3 +++ 1 file changed, 3 insertions(+).b4-config +3
-1@@ -4,3 +4,6 @@ send-series-to = Linux Test Project <[email protected]> pw-url = https://patchwork.ozlabs.org/ pw-project = ltp + prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --showfile --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + ---base-commit:
6fe8aa186559784f0394cd449cba6c53342790ec
change-id: 20250114-fix_b4-config-1ab84320000aBest regards,
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea!
Quoted 5 lines · Andrea Cervesato
Hi,
thanks for this patch. I was using something similar, but the output here seems more reliable. What I don't really understand is the following error for many of the commits in the patch-set:
What patch-set are you referring to?
Quoted 2 lines
WARNING: added, moved or deleted file(s), does
MAINTAINERSneed updating?
I remember seeing those in the past, but was unable to see it when running against the last patch-set I sent (regarding mmap refactors). I'm running b4 version 0.14.2.
Replying to your other message: I agree with adding FILE_PATH_CHANGES to the ignores, since there is no MAINTAINERS file in LTP. That should also probably be added to include/mk/env_post.mk.
Thank you,
- Ricardo.
Quoted 32 lines
Andrea
Quoted 28 lines · Ricardo B. Marliere via ltp
From: Ricardo B. Marliere <[email protected]>
Blend b4 default checkpatch.pl flags with the ones defined in
include/mk/env_post.mkin .b4-config so that a contributor may useb4 prep --checkandb4 am --checkin his workflow.Signed-off-by Ricardo B. Marliere <[email protected]>--- .b4-config | 3 +++ 1 file changed, 3 insertions(+).b4-config +3
-1@@ -4,3 +4,6 @@ send-series-to = Linux Test Project <[email protected]> pw-url = https://patchwork.ozlabs.org/ pw-project = ltp + prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --showfile --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + ---base-commit:
6fe8aa186559784f0394cd449cba6c53342790ec
change-id: 20250114-fix_b4-config-1ab84320000aBest regards,
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi,
Quoted 9 lines · Ricardo B. Marliere
Hi Andrea!
Quoted 5 lines · Andrea Cervesato
Hi,
thanks for this patch. I was using something similar, but the output here seems more reliable. What I don't really understand is the following error for many of the commits in the patch-set:
What patch-set are you referring to?
I was referring to the current patch-set under development in b4 branch.
Quoted 9 lines
Quoted 2 lines
WARNING: added, moved or deleted file(s), does
MAINTAINERSneed updating?I remember seeing those in the past, but was unable to see it when running against the last patch-set I sent (regarding mmap refactors). I'm running b4 version 0.14.2.
Replying to your other message: I agree with adding
FILE_PATH_CHANGESto the ignores, since there is noMAINTAINERSfile in LTP. That should also probably be added toinclude/mk/env_post.mk.
Yeah I was thinking that. I will submit this patch with a change on env_post.mk as well.
Quoted 31 lines
Thank you,
(quoted diff) +0
-1- Ricardo.Quoted 28 lines
Andrea
Quoted 23 lines · Ricardo B. Marliere via ltp
From: Ricardo B. Marliere <[email protected]>
Blend b4 default checkpatch.pl flags with the ones defined in
include/mk/env_post.mkin .b4-config so that a contributor may useb4 prep --checkandb4 am --checkin his workflow.Signed-off-by Ricardo B. Marliere <[email protected]>--- .b4-config | 3 +++ 1 file changed, 3 insertions(+).b4-config +3
-0@@ -4,3 +4,6 @@ send-series-to = Linux Test Project <[email protected]> pw-url = https://patchwork.ozlabs.org/ pw-project = ltp + prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --showfile --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING +
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
---
base-commit:6fe8aa186559784f0394cd449cba6c53342790ec
change-id: 20250114-fix_b4-config-1ab84320000aBest regards,
Thanks,
Andrea
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi again,
Quoted 16 lines · Ricardo B. Marliere via ltp
From: Ricardo B. Marliere <[email protected]>
Blend b4 default checkpatch.pl flags with the ones defined in
include/mk/env_post.mkin .b4-config so that a contributor may useb4 prep --checkandb4 am --checkin his workflow.Signed-off-by Ricardo B. Marliere <[email protected]>--- .b4-config | 3 +++ 1 file changed, 3 insertions(+).b4-config +0
-0
.b4-config line 7
Quoted 4 lines
.b4-config +1
-0@@ -4,3 +4,6 @@ send-series-to = Linux Test Project <[email protected]> pw-url = https://patchwork.ozlabs.org/ pw-project = ltp + prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --showfile --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING
According to checkpatch.pl documentation [1] , we should probably ignore the FILE_PATH_CHANGES here, since MAINTAINERS file is not splitting any responsibility towards LTP folders and maintenance. After disabling this check, warnings around file add/move/delete disappears.
Quoted 8 lines
.b4-config +2
-1+ am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + ---base-commit:
6fe8aa186559784f0394cd449cba6c53342790ec
change-id: 20250114-fix_b4-config-1ab84320000aBest regards,
Andrea
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi,
pushed with FILE_PATH_CHANGES in the ignore list.
Andrea
Quoted 28 lines · Ricardo B. Marliere via ltp
From: Ricardo B. Marliere <[email protected]>
Blend b4 default checkpatch.pl flags with the ones defined in
include/mk/env_post.mkin .b4-config so that a contributor may useb4 prep --checkandb4 am --checkin his workflow.Signed-off-by Ricardo B. Marliere <[email protected]>--- .b4-config | 3 +++ 1 file changed, 3 insertions(+).b4-config +3
-1@@ -4,3 +4,6 @@ send-series-to = Linux Test Project <[email protected]> pw-url = https://patchwork.ozlabs.org/ pw-project = ltp + prep-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --showfile --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + am-perpatch-check-cmd = ./scripts/checkpatch.pl -q --terse --no-summary --mailback --no-tree --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING + ---base-commit:
6fe8aa186559784f0394cd449cba6c53342790ec
change-id: 20250114-fix_b4-config-1ab84320000aBest regards,
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp