linux-next: build failure after merge of the kunit-next tree
Subsystems (3)
Hi all,
After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from drivers/gpu/drm/tests/drm_buddy_test.c:7:drivers/gpu/drm/tests/drm_buddy_test.c: In function 'drm_test_buddy_alloc_range_bias':drivers/gpu/drm/tests/drm_buddy_test.c:191:40: error: format '%u' expects a matching 'unsigned int' argument [-Werror=format=]
191 | "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:662:9: note: in expansion of macro 'KUNIT_UNARY_ASSERTION'
662 | KUNIT_UNARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1233:9: note: in expansion of macro 'KUNIT_FALSE_MSG_ASSERTION'
1233 | KUNIT_FALSE_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:186:17: note: in expansion of macro 'KUNIT_ASSERT_FALSE_MSG'
186 | KUNIT_ASSERT_FALSE_MSG(test,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:191:91: note: format string is defined here
191 | "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n",
| ~^
| |
| unsigned intcc1: all warnings being treated as errors
Caused by commit
806cb2270237 ("kunit: Annotate _MSG assertion variants with gnu printf specifiers")
interacting with commit
c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")
from the drm-misc-fixes tree.
I have applied the following patch for today (this should probably actually be fixed in the drm-misc-fixes tree).
From: Stephen Rothwell <[email protected]>
Date: Thu, 29 Feb 2024 15:18:36 +1100
Subject: [PATCH] fix up for "drm/tests/drm_buddy: add alloc_range_bias test"
--- drivers/gpu/drm/tests/drm_buddy_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tests/drm_buddy_test.c +1 -1
@@ -188,7 +188,7 @@ static void drm_test_buddy_alloc_range_bias(struct kunit *test) bias_end, size, ps, &allocated, DRM_BUDDY_RANGE_ALLOCATION), -"buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n" , +"buddy_alloc failed with bias(%x-%x), size=%u\n" , bias_start, bias_end, size); bias_rem -= size;
Signature · 5 lines
2.43.0 -- Cheers, Stephen Rothwell
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for linux-next: build failure after merge of the kunit-next tree
== Series Details ==
== Series Details ==
Series: linux-next: build failure after merge of the kunit-next tree
URL : https://patchwork.freedesktop.org/series/130537/
State : warning
== Summary ==
Error: dim checkpatch failedf4534e24d7e8 linux-next: build failure after merge of the kunit-next tree
-:14: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?) #14:
191 | "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n",
-:41: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")' #41:
c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")
total: 1 errors, 1 warnings, 0 checks, 8 lines checked
Patchwork
CI✗ Fi.CI.BAT: failure for linux-next: build failure after merge of the kunit-next tree
In reply to Stephen Rothwell== Series Details ==
== Series Details ==
Series: linux-next: build failure after merge of the kunit-next tree
URL : https://patchwork.freedesktop.org/series/130537/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_14362 -> Patchwork_130537v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_130537v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_130537v1, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130537v1/index.html
Participating hosts (41 -> 39)
------------------------------
Missing (2): bat-kbl-2 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_130537v1:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@gt_mocs:
- bat-arls-1: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14362/bat-arls-1/igt@i915_selftest@live@gt_mocs.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130537v1/bat-arls-1/igt@i915_selftest@live@gt_mocs.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@gt_engines:
- {bat-rpls-3}: [PASS][3] -> [TIMEOUT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14362/bat-rpls-3/igt@i915_selftest@live@gt_engines.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130537v1/bat-rpls-3/igt@i915_selftest@live@gt_engines.html
Known issues
------------
Here are the changes found in Patchwork_130537v1 that come from known issues:
### CI changes ###
#### Issues hit ####
* boot:
- fi-apl-guc: [PASS][5] -> [FAIL][6] ([i915#8293])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14362/fi-apl-guc/boot.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130537v1/fi-apl-guc/boot.html
### IGT changes ###
#### Issues hit ####
* igt@kms_pipe_crc_basic@nonblocking-crc:
- bat-dg2-11: NOTRUN -> [SKIP][7] ([i915#9197])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130537v1/bat-dg2-11/igt@[email protected]
#### Possible fixes ####
* igt@i915_pm_rpm@module-reload:
- bat-jsl-3: [INCOMPLETE][8] ([i915#10346]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14362/bat-jsl-3/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130537v1/bat-jsl-3/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#10346]: https://gitlab.freedesktop.org/drm/intel/issues/10346
[i915#8293]: https://gitlab.freedesktop.org/drm/intel/issues/8293
[i915#9197]: https://gitlab.freedesktop.org/drm/intel/issues/9197
Build changes
-------------
* Linux: CI_DRM_14362 -> Patchwork_130537v1
CI-20190529: 20190529
CI_DRM_14362: eec7a135b960c7b83b13a7c821e30f956074e439 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7734: 7734
Patchwork_130537v1: eec7a135b960c7b83b13a7c821e30f956074e439 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
97fcff3da33a linux-next: build failure after merge of the kunit-next tree
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130537v1/index.html
Hi Stephen,
Quoted 27 lines · Stephen Rothwell
Hi all,
After merging the kunit-next tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
drivers/gpu/drm/tests/drm_buddy_test.c:7:drivers/gpu/drm/tests/drm_buddy_test.c: In function 'drm_test_buddy_alloc_range_bias':drivers/gpu/drm/tests/drm_buddy_test.c:191:40: error: format '%u' expects a matching 'unsigned int' argument [-Werror=format=]191 | "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED' 597 | fmt, \ | ^~~ include/kunit/test.h:662:9: note: in expansion of macro 'KUNIT_UNARY_ASSERTION' 662 | KUNIT_UNARY_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:1233:9: note: in expansion of macro 'KUNIT_FALSE_MSG_ASSERTION' 1233 | KUNIT_FALSE_MSG_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tests/drm_buddy_test.c:186:17: note: in expansion of macro 'KUNIT_ASSERT_FALSE_MSG' 186 | KUNIT_ASSERT_FALSE_MSG(test, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tests/drm_buddy_test.c:191:91: note: format string is defined here 191 | "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n", | ~^ | | | unsigned int
Quoted 6 lines
cc1: all warnings being treated as errors
Caused by commit
806cb2270237("kunit: Annotate_MSGassertion variants with gnu printf specifiers")
Thank you. I did allmodconfig build on kselftest kunit branch to make sure all is well, before I pushed the commits.
Quoted 9 lines
interacting with commit
c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")from the drm-misc-fixes tree.
I have applied the following patch for today (this should probably actually be fixed in the drm-misc-fixes tree).
Danial, David,
I can carry the fix through kselftest kunit if it works for all.
Quoted 14 lines
From: Stephen Rothwell <[email protected]>
Date: Thu, 29 Feb 2024 15:18:36 +1100
Subject: [PATCH] fix up for "drm/tests/drm_buddy: addalloc_range_biastest"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/tests/drm_buddy_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/tests/drm_buddy_test.c +0
-0
drivers/gpu/drm/tests/drm_buddy_test.c static void drm_test_buddy_alloc_range_bias(struct kunit *test) · line 194
Quoted 8 lines
drivers/gpu/drm/tests/drm_buddy_test.c +1
-1@@ -188,7 +188,7 @@ static void drm_test_buddy_alloc_range_bias(struct kunit *test) bias_end, size, ps, &allocated, DRM_BUDDY_RANGE_ALLOCATION), -"buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n" , +"buddy_alloc failed with bias(%x-%x), size=%u\n" , bias_start, bias_end, size); bias_rem -= size;
thanks,
-- Shuah
Quoted 47 lines · Shuah Khan
Hi Stephen,
Quoted 27 lines · Stephen Rothwell
Hi all,
After merging the kunit-next tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
drivers/gpu/drm/tests/drm_buddy_test.c:7:drivers/gpu/drm/tests/drm_buddy_test.c: In function 'drm_test_buddy_alloc_range_bias':drivers/gpu/drm/tests/drm_buddy_test.c:191:40: error: format '%u' expects a matching 'unsigned int' argument [-Werror=format=]191 | "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED' 597 | fmt, \ | ^~~ include/kunit/test.h:662:9: note: in expansion of macro 'KUNIT_UNARY_ASSERTION' 662 | KUNIT_UNARY_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:1233:9: note: in expansion of macro 'KUNIT_FALSE_MSG_ASSERTION' 1233 | KUNIT_FALSE_MSG_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tests/drm_buddy_test.c:186:17: note: in expansion of macro 'KUNIT_ASSERT_FALSE_MSG' 186 | KUNIT_ASSERT_FALSE_MSG(test, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tests/drm_buddy_test.c:191:91: note: format string is defined here 191 | "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n", | ~^ | | | unsigned intQuoted 6 lines
cc1: all warnings being treated as errors
Caused by commit
806cb2270237("kunit: Annotate_MSGassertion variants with gnu printf specifiers")Thank you. I did allmodconfig build on kselftest kunit branch to make sure all is well, before I pushed the commits.
Quoted 6 lines
interacting with commit
c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")from the drm-misc-fixes tree.
Quoted 8 lines
Quoted 3 lines
I have applied the following patch for today (this should probably actually be fixed in the drm-misc-fixes tree).
Danial, David,
I can carry the fix through kselftest kunit if it works for all.
I'm happy for this to go in with the KUnit changes if that's the best way to keep all of the printk formatting fixes together.
-- David
Quoted 26 lines
Quoted 15 lines
From: Stephen Rothwell <[email protected]>
Date: Thu, 29 Feb 2024 15:18:36 +1100
Subject: [PATCH] fix up for "drm/tests/drm_buddy: addalloc_range_biastest"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/tests/drm_buddy_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/tests/drm_buddy_test.c +0
-0drivers/gpu/drm/tests/drm_buddy_test.c static void drm_test_buddy_alloc_range_bias(struct kunit *test) · line 194
Quoted 8 lines
drivers/gpu/drm/tests/drm_buddy_test.c +1
-1@@ -188,7 +188,7 @@ static void drm_test_buddy_alloc_range_bias(struct kunit *test) bias_end, size, ps, &allocated, DRM_BUDDY_RANGE_ALLOCATION), -"buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n" , +"buddy_alloc failed with bias(%x-%x), size=%u\n" , bias_start, bias_end, size); bias_rem -= size;thanks,
-- Shuah
Hi all,
Quoted 8 lines · On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <[email protected]> wrote:
Quoted 3 lines · Shuah Khan
I can carry the fix through kselftest kunit if it works for all.
I'm happy for this to go in with the KUnit changes if that's the best way to keep all of the printk formatting fixes together.
I am pretty sure that the proper fix has been applied to the drm-fixes tree today (in the merge of the drm-misc-fixes tree).
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 6 lines · Stephen Rothwell
Hi all,
Quoted 3 lines · On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <[email protected]> wrote:
Quoted 1 line · Shuah Khan
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
I can carry the fix through kselftest kunit if it works for all.
I'm happy for this to go in with the KUnit changes if that's the best way to keep all of the printk formatting fixes together.
I am pretty sure that the proper fix has been applied to the drm-fixes tree today (in the merge of the drm-misc-fixes tree).
What's the commit id for this fix? I Would like to include the details in my pull request to Linus.
If this fix is going before the merge window - we are all set.
thanks,
-- Shuah
Hi Shuah,
Quoted 6 lines · On Fri, 1 Mar 2024 09:05:57 -0700 Shuah Khan <[email protected]> wrote:
Quoted 4 lines · Stephen Rothwell
Hi all,
Quoted 1 line · On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <[email protected]> wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Shuah Khan
Quoted 3 lines
I can carry the fix through kselftest kunit if it works for all.
I'm happy for this to go in with the KUnit changes if that's the best way to keep all of the printk formatting fixes together.
Unfortunately you can't fix this in the kunit-next tree without pulling in Linus' tree (or the drm-fixes tree) - which seems excessive.
Quoted 6 lines
Quoted 3 lines
I am pretty sure that the proper fix has been applied to the drm-fixes tree today (in the merge of the drm-misc-fixes tree).
What's the commit id for this fix? I Would like to include the details in my pull request to Linus.
My mistake, I misread the merge commit. It has not been fixed in the drm-misc-fixes tree or the drm-fixes tree (or Linus' tree since the drm-fixes tree has been merged there) :-(
The problem in this case is not with the format string types, but with a missing argument i.e. there is another argument required by the format string. It really should be fixed in the drm-misc-fixes tree and sent to Linus post haste.
At least the change in the kunit-next tree will stop this happening in the future.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 31 lines · Stephen Rothwell
Hi Shuah,
Quoted 6 lines · On Fri, 1 Mar 2024 09:05:57 -0700 Shuah Khan <[email protected]> wrote:
Quoted 4 lines · Stephen Rothwell
Hi all,
Quoted 1 line · On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <[email protected]> wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Shuah Khan
Quoted 3 lines
I can carry the fix through kselftest kunit if it works for all.
I'm happy for this to go in with the KUnit changes if that's the best way to keep all of the printk formatting fixes together.
Unfortunately you can't fix this in the kunit-next tree without pulling in Linus' tree (or the drm-fixes tree) - which seems excessive.
Quoted 6 lines
Quoted 3 lines
I am pretty sure that the proper fix has been applied to the drm-fixes tree today (in the merge of the drm-misc-fixes tree).
What's the commit id for this fix? I Would like to include the details in my pull request to Linus.
My mistake, I misread the merge commit. It has not been fixed in the drm-misc-fixes tree or the drm-fixes tree (or Linus' tree since the drm-fixes tree has been merged there) :-(
Quoted 8 lines
The problem in this case is not with the format string types, but with a missing argument i.e. there is another argument required by the format string. It really should be fixed in the drm-misc-fixes tree and sent to Linus post haste.
At least the change in the kunit-next tree will stop this happening in the future.
Thank you for looking into it.
David, please send a fix in as you suggested earlier. I will apply it to avoid compile errors.
thanks,
-- Shuah
Hi Stephen,
Quoted 25 lines · Shuah Khan
Hi Stephen,
Quoted 22 lines · Stephen Rothwell
Hi Shuah,
Quoted 6 lines · On Fri, 1 Mar 2024 09:05:57 -0700 Shuah Khan <[email protected]> wrote:
Quoted 4 lines · Stephen Rothwell
Hi all,
Quoted 1 line · On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <[email protected]> wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Shuah Khan
Quoted 3 lines
I can carry the fix through kselftest kunit if it works for all.
I'm happy for this to go in with the KUnit changes if that's the best way to keep all of the printk formatting fixes together.
Unfortunately you can't fix this in the kunit-next tree without pulling in Linus' tree (or the drm-fixes tree) - which seems excessive.
Quoted 3 lines
Quoted 2 lines
I am pretty sure that the proper fix has been applied to the drm-fixes tree today (in the merge of the drm-misc-fixes tree).
I misread your message.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
What's the commit id for this fix? I Would like to include the details in my pull request to Linus.
My mistake, I misread the merge commit. It has not been fixed in the drm-misc-fixes tree or the drm-fixes tree (or Linus' tree since the drm-fixes tree has been merged there) :-(
Quoted 5 lines
Quoted 5 lines
The problem in this case is not with the format string types, but with a missing argument i.e. there is another argument required by the format string. It really should be fixed in the drm-misc-fixes tree and sent to Linus post haste.
Agreed.
Quoted 2 lines
Quoted 2 lines
At least the change in the kunit-next tree will stop this happening in the future.
I misread you message and asked David to send a fix.
I will send pull request with the mention of your fix up to this error in your first message.
thanks,
-- Shuah