Skip to contentSkip to conversation

.b4-config: Add checkpatch.pl default commands

PATCH In review Ricardo B. Marliere via ltp 1 participant 6 messages Jan 14, 2025 – Jan 15, 2025

lore
Share & tools
lore
#0 lore raw

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
index 2efdf2273240dcf57bd5cab174ff6c7a1952dd5b..5a16bd64ec98b91e17386c0eadc7ef0de54d86f3 100644
@@ -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
#1 lore raw

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.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 -1
index 2efdf2273240dcf57bd5cab174ff6c7a1952dd5b..5a16bd64ec98b91e17386c0eadc7ef0de54d86f3 100644
@@ -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 · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

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 MAINTAINERS need 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.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 -1
index 2efdf2273240dcf57bd5cab174ff6c7a1952dd5b..5a16bd64ec98b91e17386c0eadc7ef0de54d86f3 100644
@@ -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 · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw

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 MAINTAINERS need 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.

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.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
index 2efdf2273240dcf57bd5cab174ff6c7a1952dd5b..5a16bd64ec98b91e17386c0eadc7ef0de54d86f3 100644
@@ -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-1ab84320000a

Best regards,

Thanks,

Andrea

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#4 lore raw
In reply to Ricardo B. Marliere via 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.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 +0 -0
index 2efdf2273240dcf57bd5cab174ff6c7a1952dd5b..5a16bd64ec98b91e17386c0eadc7ef0de54d86f3 100644

.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-1ab84320000a

Best regards,

Andrea

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
author Reviewed-by Andrea Cervesato on v1 1/1
#5 lore raw
In reply to Ricardo B. Marliere via 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.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 -1
index 2efdf2273240dcf57bd5cab174ff6c7a1952dd5b..5a16bd64ec98b91e17386c0eadc7ef0de54d86f3 100644
@@ -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 · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp