public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Shuah Khan <skhan@linuxfoundation•org>
Cc: David Gow <davidgow@google•com>,
	Marie Zhussupova <marievic@google•com>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	KUnit Development <kunit-dev@googlegroups•com>,
	Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: Re: linux-next: build failure after merge of the kunit-next tree
Date: Mon, 25 Aug 2025 16:05:57 +1000	[thread overview]
Message-ID: <20250825160557.591ef4d7@canb.auug.org.au> (raw)
In-Reply-To: <CABVgOSm2_FGfjQpUBttuUH5ZrMEqnaGkYVkN6N96wX7Qs8EE2Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5153 bytes --]

Hi all,

On Tue, 19 Aug 2025 15:44:52 +0800 David Gow <davidgow@google•com> wrote:
>
> On Tue, 19 Aug 2025 at 00:32, Shuah Khan <skhan@linuxfoundation•org> wrote:
> >
> > On 8/17/25 20:08, Stephen Rothwell wrote:  
> > >
> > > 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/20250819073434.1411114-1-davidgow@google.com/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
> 
> > >
> > > 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.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2025-08-25  6:06 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18  2:08 linux-next: build failure after merge of the kunit-next tree Stephen Rothwell
2025-08-18 16:32 ` Shuah Khan
2025-08-19  7:44   ` David Gow
2025-08-25  6:05     ` Stephen Rothwell [this message]
2025-08-26  2:15     ` Shuah Khan
2025-08-26  9:24       ` David Gow
2025-08-27  5:49         ` Shuah Khan
2025-08-27  6:37           ` David Gow
  -- strict thread matches above, loose matches on Subject: below --
2024-10-04  4:11 Stephen Rothwell
2024-10-04 13:26 ` Gabriela Bittencourt
2024-10-04 18:36 ` Shuah Khan
2024-02-29  4:26 Stephen Rothwell
2024-02-29 15:07 ` Shuah Khan
2024-03-01  7:15   ` David Gow
2024-03-01 10:43     ` Stephen Rothwell
2024-03-01 16:05       ` Shuah Khan
2024-03-01 20:46         ` Stephen Rothwell
2024-03-01 22:30           ` Shuah Khan
2024-03-06 15:25             ` Shuah Khan
2024-02-28  2:48 Stephen Rothwell
2024-02-28  3:26 ` Shuah Khan
2020-01-16  5:57 Stephen Rothwell
2020-01-16 11:23 ` Alan Maguire
2020-01-16 23:27   ` Rafael J. Wysocki
2020-01-10  6:43 Stephen Rothwell
2020-01-10 11:56 ` Alan Maguire
2020-01-13 21:11   ` Brendan Higgins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250825160557.591ef4d7@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=davidgow@google$(echo .)com \
    --cc=kunit-dev@googlegroups$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=marievic@google$(echo .)com \
    --cc=skhan@linuxfoundation$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox