Skip to contentSkip to conversation

linux-next: build failure after merge of the kunit-next tree

DISCUSSION Stephen Rothwell 3 participants 8 messages Aug 18, 2025 – Aug 27, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from include/kunit/static_stub.h:18,

                 from drivers/gpu/drm/xe/xe_bo.c:20:
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
  610 |         KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: note: (near initialization for 'xe_bo_tests[0].generate_params')
610 | KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),

      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: note: (near initialization for 'xe_bo_tests[1].generate_params')
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: note: (near initialization for 'xe_bo_shrink_test[0].generate_params')
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~

Caused by commit

444be9072fca ("kunit: Pass parameterized test context to generate_params()")

I have used the kunit-next tree from next-20250815 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 4 lines · Stephen Rothwell

Hi all,

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Thank you Stephen. I did a allmodconfig build on 6.17-rc1 base - didn't see the error.

Marie, David, can you take a look this. Looks like conflict with drm in next?

Quoted 40 lines

In file included from include/kunit/static_stub.h:18,

                  from drivers/gpu/drm/xe/xe_bo.c:20:
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
   610 |         KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),
       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: note: (near initialization for 'xe_bo_tests[0].generate_params')
610 | KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),

       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: note: (near initialization for 'xe_bo_tests[1].generate_params')
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: note: (near initialization for 'xe_bo_shrink_test[0].generate_params')
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~

Quoted 6 lines

Caused by commit

444be9072fca ("kunit: Pass parameterized test context to generate_params()")

I have used the kunit-next tree from next-20250815 for today.

thanks,
-- Shuah

#2 lore raw
Quoted 4 lines · Shuah Khan
Quoted 2 lines · Stephen Rothwell

Hi all,

Quoted 9 lines
Quoted 2 lines

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Thank you Stephen. I did a allmodconfig build on 6.17-rc1 base - didn't see the error.

Marie, David, can you take a look this. Looks like conflict with drm in next?

Thanks, Shuah. I've managed to reproduce this with:
./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

These patches fix it (and a corresponding drm/xe test failure):
https://lore.kernel.org/linux-next/[email protected]/T/#t

Ideally, they'll be squashed into the corresponding patches, as otherwise there'd be some temporary breakage during bisections. I can squash these into the original series and re-send it out if that works best for you.

Cheers,
-- David

Quoted 50 lines
Quoted 40 lines

In file included from include/kunit/static_stub.h:18,

                  from drivers/gpu/drm/xe/xe_bo.c:20:
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
   610 |         KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),
       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: note: (near initialization for 'xe_bo_tests[0].generate_params')
610 | KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),

       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: note: (near initialization for 'xe_bo_tests[1].generate_params')
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: note: (near initialization for 'xe_bo_shrink_test[0].generate_params')
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~

Quoted 6 lines

Caused by commit

444be9072fca ("kunit: Pass parameterized test context to generate_params()")

I have used the kunit-next tree from next-20250815 for today.

thanks,
-- Shuah

#3 lore raw

Hi all,

Quoted 21 lines · On Tue, 19 Aug 2025 15:44:52 +0800 David Gow <[email protected]> wrote:
Quoted 11 lines · Shuah Khan
Quoted 3 lines · Stephen Rothwell

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Thank you Stephen. I did a allmodconfig build on 6.17-rc1 base - didn't see the error.

Marie, David, can you take a look this. Looks like conflict with drm in next?

Thanks, Shuah. I've managed to reproduce this with:
./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

These patches fix it (and a corresponding drm/xe test failure):
https://lore.kernel.org/linux-next/[email protected]/T/#t

Quoted 53 lines

Ideally, they'll be squashed into the corresponding patches, as otherwise there'd be some temporary breakage during bisections. I can squash these into the original series and re-send it out if that works best for you.

Cheers,
-- David

Quoted 45 lines
Quoted 45 lines

In file included from include/kunit/static_stub.h:18,

                  from drivers/gpu/drm/xe/xe_bo.c:20:
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
   610 |         KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),
       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:610:48: note: (near initialization for 'xe_bo_tests[0].generate_params')
610 | KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param),

       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:611:45: note: (near initialization for 'xe_bo_tests[1].generate_params')
611 | KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param),

       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:210:38: note: in definition of macro 'KUNIT_CASE_PARAM'
210 | .generate_params = gen_params, .module_name = KBUILD_MODNAME}
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: error: initialization of 'const void * (*)(struct kunit *, const void *, char *)' from incompatible pointer type 'const void * (*)(const void *, char *)' [-Wincompatible-pointer-types]
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~
drivers/gpu/drm/xe/tests/xe_bo.c:624:51: note: (near initialization for 'xe_bo_shrink_test[0].generate_params')
624 | KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param,

       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/kunit/test.h:223:38: note: in definition of macro 'KUNIT_CASE_PARAM_ATTR'
223 | .generate_params = gen_params, \
| ^~~~~~~~~~

Caused by commit

444be9072fca ("kunit: Pass parameterized test context to generate_params()")

I have used the kunit-next tree from next-20250815 for today.

I am still seeing this build failure.

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw
In reply to David Gow
Quoted 19 lines · David Gow
Quoted 4 lines · Shuah Khan
Quoted 2 lines · Stephen Rothwell

Hi all,

Quoted 9 lines
Quoted 2 lines

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Thank you Stephen. I did a allmodconfig build on 6.17-rc1 base - didn't see the error.

Marie, David, can you take a look this. Looks like conflict with drm in next?

Thanks, Shuah. I've managed to reproduce this with:
./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

Quoted 8 lines

These patches fix it (and a corresponding drm/xe test failure):
https://lore.kernel.org/linux-next/[email protected]/T/#t

Ideally, they'll be squashed into the corresponding patches, as otherwise there'd be some temporary breakage during bisections. I can squash these into the original series and re-send it out if that works best for you.

David,

Please squash them and resend - also I see a kernel test robot error in patch 1/2.

I was going to squash them, but I saw the kernel test robot error patch.

thanks,
-- Shuah

#5 lore raw
Quoted 30 lines · Shuah Khan
Quoted 19 lines · David Gow
Quoted 4 lines · Shuah Khan
Quoted 2 lines · Stephen Rothwell

Hi all,

Quoted 9 lines
Quoted 2 lines

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Thank you Stephen. I did a allmodconfig build on 6.17-rc1 base - didn't see the error.

Marie, David, can you take a look this. Looks like conflict with drm in next?

Thanks, Shuah. I've managed to reproduce this with:
./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

Quoted 8 lines

These patches fix it (and a corresponding drm/xe test failure):
https://lore.kernel.org/linux-next/[email protected]/T/#t

Ideally, they'll be squashed into the corresponding patches, as otherwise there'd be some temporary breakage during bisections. I can squash these into the original series and re-send it out if that works best for you.

Quoted 7 lines

David,

Please squash them and resend - also I see a kernel test robot error in patch 1/2.

I was going to squash them, but I saw the kernel test robot error patch.

Thanks, Shuah.

A v2 of the fix series, with the kernel test robot error fixed, is
here: https://lore.kernel.org/linux-kselftest/[email protected]/

I've also squashed the fixes into a v4 of the original series here:
https://lore.kernel.org/linux-kselftest/[email protected]/

Sorry for the mess!
-- David

#6 lore raw
Quoted 39 lines · David Gow
Quoted 30 lines · Shuah Khan
Quoted 19 lines · David Gow
Quoted 4 lines · Shuah Khan
Quoted 2 lines · Stephen Rothwell

Hi all,

Quoted 9 lines
Quoted 2 lines

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Thank you Stephen. I did a allmodconfig build on 6.17-rc1 base - didn't see the error.

Marie, David, can you take a look this. Looks like conflict with drm in next?

Thanks, Shuah. I've managed to reproduce this with:
./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

Quoted 8 lines

These patches fix it (and a corresponding drm/xe test failure):
https://lore.kernel.org/linux-next/[email protected]/T/#t

Ideally, they'll be squashed into the corresponding patches, as otherwise there'd be some temporary breakage during bisections. I can squash these into the original series and re-send it out if that works best for you.

Quoted 7 lines

David,

Please squash them and resend - also I see a kernel test robot error in patch 1/2.

I was going to squash them, but I saw the kernel test robot error patch.

Quoted 8 lines

Thanks, Shuah.

A v2 of the fix series, with the kernel test robot error fixed, is
here: https://lore.kernel.org/linux-kselftest/[email protected]/

I've also squashed the fixes into a v4 of the original series here:
https://lore.kernel.org/linux-kselftest/[email protected]/

I applied these to kunit next and ran test:

./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

Looks good. Hopefully next is happy now.

thanks,
-- Shuah

#7 lore raw
Quoted 50 lines · Shuah Khan
Quoted 39 lines · David Gow
Quoted 30 lines · Shuah Khan
Quoted 19 lines · David Gow
Quoted 4 lines · Shuah Khan
Quoted 2 lines · Stephen Rothwell

Hi all,

Quoted 9 lines
Quoted 2 lines

After merging the kunit-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Thank you Stephen. I did a allmodconfig build on 6.17-rc1 base - didn't see the error.

Marie, David, can you take a look this. Looks like conflict with drm in next?

Thanks, Shuah. I've managed to reproduce this with:
./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

Quoted 8 lines

These patches fix it (and a corresponding drm/xe test failure):
https://lore.kernel.org/linux-next/[email protected]/T/#t

Ideally, they'll be squashed into the corresponding patches, as otherwise there'd be some temporary breakage during bisections. I can squash these into the original series and re-send it out if that works best for you.

Quoted 7 lines

David,

Please squash them and resend - also I see a kernel test robot error in patch 1/2.

I was going to squash them, but I saw the kernel test robot error patch.

Quoted 8 lines

Thanks, Shuah.

A v2 of the fix series, with the kernel test robot error fixed, is
here: https://lore.kernel.org/linux-kselftest/[email protected]/

I've also squashed the fixes into a v4 of the original series here:
https://lore.kernel.org/linux-kselftest/[email protected]/

Quoted 5 lines

I applied these to kunit next and ran test:

./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe

Looks good. Hopefully next is happy now.

Thanks very much -- this is still passing all of my KUnit test runs (save for a couple of preexisting genirq-related test failures on some architectures, for which there are already patches en-route to the irq folks).

-- David