* linux-next: build failure after merge of the kunit-next tree
@ 2024-02-29 4:26 Stephen Rothwell
2024-02-29 15:07 ` Shuah Khan
0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2024-02-29 4:26 UTC (permalink / raw)
To: Shuah Khan, Brendan Higgins, Daniel Vetter
Cc: Intel Graphics, DRI, Christian König, Matthew Auld,
David Gow, Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 3345 bytes --]
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 int
cc1: 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 <sfr@canb.auug.org.au>
Date: Thu, 29 Feb 2024 15:18:36 +1100
Subject: [PATCH] fix up for "drm/tests/drm_buddy: add alloc_range_bias test"
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c b/drivers/gpu/drm/tests/drm_buddy_test.c
index 1e73e3f0d278..369edf587b44 100644
--- a/drivers/gpu/drm/tests/drm_buddy_test.c
+++ b/drivers/gpu/drm/tests/drm_buddy_test.c
@@ -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;
--
2.43.0
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-02-29 4:26 linux-next: build failure after merge of the kunit-next tree Stephen Rothwell
@ 2024-02-29 15:07 ` Shuah Khan
2024-03-01 7:15 ` David Gow
0 siblings, 1 reply; 16+ messages in thread
From: Shuah Khan @ 2024-02-29 15:07 UTC (permalink / raw)
To: Stephen Rothwell, Brendan Higgins, Daniel Vetter
Cc: Intel Graphics, DRI, Christian König, Matthew Auld,
David Gow, Linux Kernel Mailing List, Linux Next Mailing List,
Shuah Khan
Hi Stephen,
On 2/28/24 21:26, Stephen Rothwell wrote:
> 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 int
> cc1: all warnings being treated as errors
>
> Caused by commit
>
> 806cb2270237 ("kunit: Annotate _MSG assertion 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.
> 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.
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Thu, 29 Feb 2024 15:18:36 +1100
> Subject: [PATCH] fix up for "drm/tests/drm_buddy: add alloc_range_bias test"
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c b/drivers/gpu/drm/tests/drm_buddy_test.c
> index 1e73e3f0d278..369edf587b44 100644
> --- a/drivers/gpu/drm/tests/drm_buddy_test.c
> +++ b/drivers/gpu/drm/tests/drm_buddy_test.c
> @@ -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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-02-29 15:07 ` Shuah Khan
@ 2024-03-01 7:15 ` David Gow
2024-03-01 10:43 ` Stephen Rothwell
0 siblings, 1 reply; 16+ messages in thread
From: David Gow @ 2024-03-01 7:15 UTC (permalink / raw)
To: Shuah Khan
Cc: Stephen Rothwell, Brendan Higgins, Daniel Vetter, Intel Graphics,
DRI, Christian König, Matthew Auld,
Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 4239 bytes --]
On Thu, 29 Feb 2024 at 23:07, Shuah Khan <skhan@linuxfoundation.org> wrote:
>
> Hi Stephen,
>
> On 2/28/24 21:26, Stephen Rothwell wrote:
> > 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 int
> > cc1: all warnings being treated as errors
> >
> > Caused by commit
> >
> > 806cb2270237 ("kunit: Annotate _MSG assertion 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.
>
> > 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.
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
>
> > From: Stephen Rothwell <sfr@canb.auug.org.au>
> > Date: Thu, 29 Feb 2024 15:18:36 +1100
> > Subject: [PATCH] fix up for "drm/tests/drm_buddy: add alloc_range_bias test"
> >
> > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > ---
> > drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c b/drivers/gpu/drm/tests/drm_buddy_test.c
> > index 1e73e3f0d278..369edf587b44 100644
> > --- a/drivers/gpu/drm/tests/drm_buddy_test.c
> > +++ b/drivers/gpu/drm/tests/drm_buddy_test.c
> > @@ -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
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4014 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-03-01 7:15 ` David Gow
@ 2024-03-01 10:43 ` Stephen Rothwell
2024-03-01 16:05 ` Shuah Khan
0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2024-03-01 10:43 UTC (permalink / raw)
To: David Gow
Cc: Shuah Khan, Brendan Higgins, Daniel Vetter, Intel Graphics, DRI,
Christian König, Matthew Auld, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
Hi all,
On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <davidgow@google.com> wrote:
>
> On Thu, 29 Feb 2024 at 23:07, Shuah Khan <skhan@linuxfoundation.org> wrote:
> >
> > 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).
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-03-01 10:43 ` Stephen Rothwell
@ 2024-03-01 16:05 ` Shuah Khan
2024-03-01 20:46 ` Stephen Rothwell
0 siblings, 1 reply; 16+ messages in thread
From: Shuah Khan @ 2024-03-01 16:05 UTC (permalink / raw)
To: Stephen Rothwell, David Gow
Cc: Brendan Higgins, Daniel Vetter, Intel Graphics, DRI,
Christian König, Matthew Auld, Linux Kernel Mailing List,
Linux Next Mailing List, Shuah Khan
On 3/1/24 03:43, Stephen Rothwell wrote:
> Hi all,
>
> On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <davidgow@google.com> wrote:
>>
>> On Thu, 29 Feb 2024 at 23:07, Shuah Khan <skhan@linuxfoundation.org> wrote:
>>>
>>> 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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-03-01 16:05 ` Shuah Khan
@ 2024-03-01 20:46 ` Stephen Rothwell
2024-03-01 22:30 ` Shuah Khan
0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2024-03-01 20:46 UTC (permalink / raw)
To: Shuah Khan
Cc: David Gow, Brendan Higgins, Daniel Vetter, Intel Graphics, DRI,
Christian König, Matthew Auld, Linux Kernel Mailing List,
Linux Next Mailing List, Dave Airlie
[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]
Hi Shuah,
On Fri, 1 Mar 2024 09:05:57 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote:
>
> On 3/1/24 03:43, Stephen Rothwell wrote:
> > Hi all,
> >
> > On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <davidgow@google.com> wrote:
> >>
> >> On Thu, 29 Feb 2024 at 23:07, Shuah Khan <skhan@linuxfoundation.org> wrote:
> >>>
> >>> 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.
> > 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.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-03-01 20:46 ` Stephen Rothwell
@ 2024-03-01 22:30 ` Shuah Khan
2024-03-06 15:25 ` Shuah Khan
0 siblings, 1 reply; 16+ messages in thread
From: Shuah Khan @ 2024-03-01 22:30 UTC (permalink / raw)
To: Stephen Rothwell, David Gow
Cc: Brendan Higgins, Daniel Vetter, Intel Graphics, DRI,
Christian König, Matthew Auld, Linux Kernel Mailing List,
Linux Next Mailing List, Dave Airlie, Shuah Khan
Hi Stephen,
On 3/1/24 13:46, Stephen Rothwell wrote:
> Hi Shuah,
>
> On Fri, 1 Mar 2024 09:05:57 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote:
>>
>> On 3/1/24 03:43, Stephen Rothwell wrote:
>>> Hi all,
>>>
>>> On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <davidgow@google.com> wrote:
>>>>
>>>> On Thu, 29 Feb 2024 at 23:07, Shuah Khan <skhan@linuxfoundation.org> wrote:
>>>>>
>>>>> 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.
>
>>> 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.
>
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-03-01 22:30 ` Shuah Khan
@ 2024-03-06 15:25 ` Shuah Khan
0 siblings, 0 replies; 16+ messages in thread
From: Shuah Khan @ 2024-03-06 15:25 UTC (permalink / raw)
To: Stephen Rothwell, David Gow
Cc: Brendan Higgins, Daniel Vetter, Intel Graphics, DRI,
Christian König, Matthew Auld, Linux Kernel Mailing List,
Linux Next Mailing List, Dave Airlie, Shuah Khan
Hi Stephen,
On 3/1/24 15:30, Shuah Khan wrote:
> Hi Stephen,
>
> On 3/1/24 13:46, Stephen Rothwell wrote:
>> Hi Shuah,
>>
>> On Fri, 1 Mar 2024 09:05:57 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote:
>>>
>>> On 3/1/24 03:43, Stephen Rothwell wrote:
>>>> Hi all,
>>>>
>>>> On Fri, 1 Mar 2024 15:15:02 +0800 David Gow <davidgow@google.com> wrote:
>>>>>
>>>>> On Thu, 29 Feb 2024 at 23:07, Shuah Khan <skhan@linuxfoundation.org> wrote:
>>>>>>
>>>>>> 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.
>>>> 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.
>>> 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.
>>
Agreed.
>> 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
^ permalink raw reply [flat|nested] 16+ messages in thread
* linux-next: build failure after merge of the kunit-next tree
@ 2024-02-28 2:48 Stephen Rothwell
2024-02-28 3:26 ` Shuah Khan
0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2024-02-28 2:48 UTC (permalink / raw)
To: Shuah Khan, Brendan Higgins
Cc: David Gow, Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 16189 bytes --]
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_contiguous':
drivers/gpu/drm/tests/drm_buddy_test.c:58:40: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
58 | "buddy_alloc hit an error size=%u\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59 | ps);
| ~~
| |
| long unsigned int
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:55:17: note: in expansion of macro 'KUNIT_ASSERT_FALSE_MSG'
55 | KUNIT_ASSERT_FALSE_MSG(test,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:58:72: note: format string is defined here
58 | "buddy_alloc hit an error size=%u\n",
| ~^
| |
| unsigned int
| %lu
drivers/gpu/drm/tests/drm_buddy_test.c:65:32: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
65 | "buddy_alloc didn't error size=%u\n", 3 * ps);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| long unsigned int
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:654:9: note: in expansion of macro 'KUNIT_UNARY_ASSERTION'
654 | KUNIT_UNARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1214:9: note: in expansion of macro 'KUNIT_TRUE_MSG_ASSERTION'
1214 | KUNIT_TRUE_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:62:9: note: in expansion of macro 'KUNIT_ASSERT_TRUE_MSG'
62 | KUNIT_ASSERT_TRUE_MSG(test, drm_buddy_alloc_blocks(&mm, 0, mm_size,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:65:64: note: format string is defined here
65 | "buddy_alloc didn't error size=%u\n", 3 * ps);
| ~^
| |
| unsigned int
| %lu
drivers/gpu/drm/tests/drm_buddy_test.c:71:32: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
71 | "buddy_alloc didn't error size=%u\n", 3 * ps);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| long unsigned int
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:654:9: note: in expansion of macro 'KUNIT_UNARY_ASSERTION'
654 | KUNIT_UNARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1214:9: note: in expansion of macro 'KUNIT_TRUE_MSG_ASSERTION'
1214 | KUNIT_TRUE_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:68:9: note: in expansion of macro 'KUNIT_ASSERT_TRUE_MSG'
68 | KUNIT_ASSERT_TRUE_MSG(test, drm_buddy_alloc_blocks(&mm, 0, mm_size,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:71:64: note: format string is defined here
71 | "buddy_alloc didn't error size=%u\n", 3 * ps);
| ~^
| |
| unsigned int
| %lu
drivers/gpu/drm/tests/drm_buddy_test.c:75:32: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
75 | "buddy_alloc didn't error size=%u\n", 2 * ps);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| long unsigned int
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:654:9: note: in expansion of macro 'KUNIT_UNARY_ASSERTION'
654 | KUNIT_UNARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1214:9: note: in expansion of macro 'KUNIT_TRUE_MSG_ASSERTION'
1214 | KUNIT_TRUE_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:72:9: note: in expansion of macro 'KUNIT_ASSERT_TRUE_MSG'
72 | KUNIT_ASSERT_TRUE_MSG(test, drm_buddy_alloc_blocks(&mm, 0, mm_size,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:75:64: note: format string is defined here
75 | "buddy_alloc didn't error size=%u\n", 2 * ps);
| ~^
| |
| unsigned int
| %lu
drivers/gpu/drm/tests/drm_buddy_test.c:81:32: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
81 | "buddy_alloc didn't error size=%u\n", 3 * ps);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| long unsigned int
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:654:9: note: in expansion of macro 'KUNIT_UNARY_ASSERTION'
654 | KUNIT_UNARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1214:9: note: in expansion of macro 'KUNIT_TRUE_MSG_ASSERTION'
1214 | KUNIT_TRUE_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:78:9: note: in expansion of macro 'KUNIT_ASSERT_TRUE_MSG'
78 | KUNIT_ASSERT_TRUE_MSG(test, drm_buddy_alloc_blocks(&mm, 0, mm_size,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:81:64: note: format string is defined here
81 | "buddy_alloc didn't error size=%u\n", 3 * ps);
| ~^
| |
| unsigned int
| %lu
drivers/gpu/drm/tests/drm_buddy_test.c:90:32: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
90 | "buddy_alloc hit an error size=%u\n", 2 * ps);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| long unsigned int
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:87:9: note: in expansion of macro 'KUNIT_ASSERT_FALSE_MSG'
87 | KUNIT_ASSERT_FALSE_MSG(test, drm_buddy_alloc_blocks(&mm, 0, mm_size,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:90:64: note: format string is defined here
90 | "buddy_alloc hit an error size=%u\n", 2 * ps);
| ~^
| |
| unsigned int
| %lu
drivers/gpu/drm/tests/drm_buddy_test.c:96:32: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
96 | "buddy_alloc hit an error size=%u\n", 3 * ps);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| long unsigned int
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:93:9: note: in expansion of macro 'KUNIT_ASSERT_FALSE_MSG'
93 | KUNIT_ASSERT_FALSE_MSG(test, drm_buddy_alloc_blocks(&mm, 0, mm_size,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_buddy_test.c:96:64: note: format string is defined here
96 | "buddy_alloc hit an error size=%u\n", 3 * ps);
| ~^
| |
| unsigned int
| %lu
In file included from drivers/gpu/drm/tests/drm_mm_test.c:8:
drivers/gpu/drm/tests/drm_mm_test.c: In function 'drm_test_mm_init':
drivers/gpu/drm/tests/drm_mm_test.c:160:34: error: zero-length gnu_printf format string [-Werror=format-zero-length]
160 | KUNIT_FAIL(test, "");
| ^~
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:625:9: note: in expansion of macro 'KUNIT_FAIL_ASSERTION'
625 | KUNIT_FAIL_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_mm_test.c:160:17: note: in expansion of macro 'KUNIT_FAIL'
160 | KUNIT_FAIL(test, "");
| ^~~~~~~~~~
drivers/gpu/drm/tests/drm_mm_test.c:174:34: error: zero-length gnu_printf format string [-Werror=format-zero-length]
174 | KUNIT_FAIL(test, "");
| ^~
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:625:9: note: in expansion of macro 'KUNIT_FAIL_ASSERTION'
625 | KUNIT_FAIL_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_mm_test.c:174:17: note: in expansion of macro 'KUNIT_FAIL'
174 | KUNIT_FAIL(test, "");
| ^~~~~~~~~~
drivers/gpu/drm/tests/drm_mm_test.c:181:34: error: zero-length gnu_printf format string [-Werror=format-zero-length]
181 | KUNIT_FAIL(test, "");
| ^~
include/kunit/test.h:597:37: note: in definition of macro '_KUNIT_FAILED'
597 | fmt, \
| ^~~
include/kunit/test.h:625:9: note: in expansion of macro 'KUNIT_FAIL_ASSERTION'
625 | KUNIT_FAIL_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tests/drm_mm_test.c:181:17: note: in expansion of macro 'KUNIT_FAIL'
181 | KUNIT_FAIL(test, "");
| ^~~~~~~~~~
Caused by commit
e00c5a9fa617 ("kunit: Annotate _MSG assertion variants with gnu printf specifiers")
Please fix all the current problems before applying a patch to warn
about them.
I have used the kunit-next tree from next-20240227 for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2024-02-28 2:48 Stephen Rothwell
@ 2024-02-28 3:26 ` Shuah Khan
0 siblings, 0 replies; 16+ messages in thread
From: Shuah Khan @ 2024-02-28 3:26 UTC (permalink / raw)
To: Stephen Rothwell, Brendan Higgins
Cc: David Gow, Linux Kernel Mailing List, Linux Next Mailing List,
Shuah Khan
On 2/27/24 19:48, Stephen Rothwell wrote:
> Hi all,
>
> After merging the kunit-next tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> Caused by commit
>
> e00c5a9fa617 ("kunit: Annotate _MSG assertion variants with gnu printf specifiers")
>
> Please fix all the current problems before applying a patch to warn
> about them.
>
> I have used the kunit-next tree from next-20240227 for today.
This is my bad. I should have dropped this patch when I couldn't
apply the patch that fixed the drivers/gpu/drm/tests/drm_buddy_test.c
It is fixed now. I dropped the problem commit
e00c5a9fa617 ("kunit: Annotate _MSG assertion variants with gnu printf specifiers")
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 16+ messages in thread
* linux-next: build failure after merge of the kunit-next tree
@ 2020-01-16 5:57 Stephen Rothwell
2020-01-16 11:23 ` Alan Maguire
0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2020-01-16 5:57 UTC (permalink / raw)
To: Shuah Khan, Brendan Higgins, Rafael J. Wysocki
Cc: Linux Next Mailing List, Linux Kernel Mailing List, Alan Maguire
[-- Attachment #1: Type: text/plain, Size: 911 bytes --]
Hi all,
After merging the kunit-next tree, today's linux-next build (x86_64
allmodconfig) failed like this:
x86_64-linux-gnu-ld: drivers/base/test/property-entry-test.o: in function `kunit_test_suites_init':
property-entry-test.c:(.text+0x26): undefined reference to `kunit_run_tests'
x86_64-linux-gnu-ld: drivers/base/test/property-entry-test.o: in function `pe_test_reference':
property-entry-test.c:(.text+0x275): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: property-entry-test.c:(.text+0x2c4): undefined reference to `kunit_do_assertion'
and lots more ...
Caused by commit
27f9d7e984d9 ("software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST")
from the pm tree interacting with commit
35c57fc3f8ea ("kunit: building kunit as a module breaks allmodconfig")
I have disabled CONFIG_KUNIT_DRIVER_PE_TEST for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2020-01-16 5:57 Stephen Rothwell
@ 2020-01-16 11:23 ` Alan Maguire
2020-01-16 23:27 ` Rafael J. Wysocki
0 siblings, 1 reply; 16+ messages in thread
From: Alan Maguire @ 2020-01-16 11:23 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Shuah Khan, Brendan Higgins, Rafael J. Wysocki,
Linux Next Mailing List, Linux Kernel Mailing List, Alan Maguire
On Thu, 16 Jan 2020, Stephen Rothwell wrote:
> Hi all,
>
> After merging the kunit-next tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> x86_64-linux-gnu-ld: drivers/base/test/property-entry-test.o: in function `kunit_test_suites_init':
> property-entry-test.c:(.text+0x26): undefined reference to `kunit_run_tests'
> x86_64-linux-gnu-ld: drivers/base/test/property-entry-test.o: in function `pe_test_reference':
> property-entry-test.c:(.text+0x275): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: property-entry-test.c:(.text+0x2c4): undefined reference to `kunit_do_assertion'
>
> and lots more ...
>
> Caused by commit
>
> 27f9d7e984d9 ("software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST")
>
> from the pm tree interacting with commit
>
> 35c57fc3f8ea ("kunit: building kunit as a module breaks allmodconfig")
>
> I have disabled CONFIG_KUNIT_DRIVER_PE_TEST for today.
>
Apologies again, I should have explicitly specified that
CONFIG_KUNIT_DRIVER_PE_TEST depends on KUNIT=y; I've
sent a patch to fix this:
https://lore.kernel.org/lkml/1579173451-2439-1-git-send-email-alan.maguire@oracle.com/T/#u
Thank you!
Alan
> --
> Cheers,
> Stephen Rothwell
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2020-01-16 11:23 ` Alan Maguire
@ 2020-01-16 23:27 ` Rafael J. Wysocki
0 siblings, 0 replies; 16+ messages in thread
From: Rafael J. Wysocki @ 2020-01-16 23:27 UTC (permalink / raw)
To: Alan Maguire
Cc: Stephen Rothwell, Shuah Khan, Brendan Higgins,
Linux Next Mailing List, Linux Kernel Mailing List
On Thursday, January 16, 2020 12:23:09 PM CET Alan Maguire wrote:
> On Thu, 16 Jan 2020, Stephen Rothwell wrote:
>
> > Hi all,
> >
> > After merging the kunit-next tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > x86_64-linux-gnu-ld: drivers/base/test/property-entry-test.o: in function `kunit_test_suites_init':
> > property-entry-test.c:(.text+0x26): undefined reference to `kunit_run_tests'
> > x86_64-linux-gnu-ld: drivers/base/test/property-entry-test.o: in function `pe_test_reference':
> > property-entry-test.c:(.text+0x275): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: property-entry-test.c:(.text+0x2c4): undefined reference to `kunit_do_assertion'
> >
> > and lots more ...
> >
> > Caused by commit
> >
> > 27f9d7e984d9 ("software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST")
> >
> > from the pm tree interacting with commit
> >
> > 35c57fc3f8ea ("kunit: building kunit as a module breaks allmodconfig")
> >
> > I have disabled CONFIG_KUNIT_DRIVER_PE_TEST for today.
> >
>
> Apologies again, I should have explicitly specified that
> CONFIG_KUNIT_DRIVER_PE_TEST depends on KUNIT=y; I've
> sent a patch to fix this:
>
> https://lore.kernel.org/lkml/1579173451-2439-1-git-send-email-alan.maguire@oracle.com/T/#u
I have folded this into the original patch and remerged the linux-next branch.
Thanks!
^ permalink raw reply [flat|nested] 16+ messages in thread
* linux-next: build failure after merge of the kunit-next tree
@ 2020-01-10 6:43 Stephen Rothwell
2020-01-10 11:56 ` Alan Maguire
0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2020-01-10 6:43 UTC (permalink / raw)
To: Shuah Khan, Brendan Higgins
Cc: Linux Next Mailing List, Linux Kernel Mailing List,
Mike Salvatore, Alan Maguire
[-- Attachment #1: Type: text/plain, Size: 23355 bytes --]
Hi all,
After merging the kunit-next tree, today's linux-next build (x86_64
allmodconfig) failed like this:
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_out_of_bounds':
policy_unpack.c:(.text+0xf5c): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xf6f): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_code_mismatch':
policy_unpack.c:(.text+0x1113): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1126): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1161): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x11a5): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_code_match':
policy_unpack.c:(.text+0x1350): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1363): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x139e): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x13e9): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_out_of_bounds':
policy_unpack.c:(.text+0x15a1): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x15b4): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1646): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1677): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_with_name':
policy_unpack.c:(.text+0x17e7): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x17fa): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1857): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x18a2): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1934): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1965): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_with_null_name':
policy_unpack.c:(.text+0x1ab0): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1ac3): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1b20): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1b6b): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1bfd): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1c2e): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_out_of_bounds':
policy_unpack.c:(.text+0x1db1): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1dc4): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1e56): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1e87): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_with_name':
policy_unpack.c:(.text+0x1feb): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1ffe): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2060): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x20b3): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2145): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2176): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_with_null_name':
policy_unpack.c:(.text+0x22b4): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x22c7): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2329): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x237c): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x240e): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x243f): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_out_of_bounds_2':
policy_unpack.c:(.text+0x2643): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x266c): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x26b4): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x26dd): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2757): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2777): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_out_of_bounds_1':
policy_unpack.c:(.text+0x297e): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x29a7): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x29ef): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2a18): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2a94): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2ab4): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_basic':
policy_unpack.c:(.text+0x2ce1): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d01): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d4e): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d7a): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2ddf): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2e07): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_out_of_bounds':
policy_unpack.c:(.text+0x2f86): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2fcc): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3023): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3052): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x30bf): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x30ea): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_with_name':
policy_unpack.c:(.text+0x324f): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x329f): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x32da): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3350): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x33c9): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3418): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_with_null_name':
policy_unpack.c:(.text+0x359c): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x35ec): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3627): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x369d): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3716): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3765): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_out_of_bounds':
policy_unpack.c:(.text+0x38d3): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3919): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3986): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x39b1): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_with_name':
policy_unpack.c:(.text+0x3ae7): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3b2e): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3b95): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3bdb): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_with_null_name':
policy_unpack.c:(.text+0x3d26): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3d6d): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3dd4): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3e1a): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_wrong_name':
policy_unpack.c:(.text+0x3f55): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3f68): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3ffa): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x402b): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_name':
policy_unpack.c:(.text+0x4186): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4199): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4229): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x425a): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_wrong_code':
policy_unpack.c:(.text+0x4390): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x43a3): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4435): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4466): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_null_name':
policy_unpack.c:(.text+0x459f): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x45b2): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4642): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4673): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_out_of_bounds':
policy_unpack.c:(.text+0x47f3): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4839): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x48a6): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x48d1): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_with_name':
policy_unpack.c:(.text+0x4a2a): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4a7a): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4ac3): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4af9): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_with_null_name':
policy_unpack.c:(.text+0x4c55): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4ca5): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4cee): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4d24): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_out_of_bounds':
policy_unpack.c:(.text+0x4eac): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4eed): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4f6c): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4f8c): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_with_name':
policy_unpack.c:(.text+0x50ec): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x512e): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x51ad): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x51cd): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_with_null_name':
policy_unpack.c:(.text+0x52f8): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x533a): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x53b9): undefined reference to `kunit_binary_ptr_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x53d9): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_inbounds_when_out_of_bounds':
policy_unpack.c:(.text+0x54cf): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5533): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_inbounds_when_inbounds':
policy_unpack.c:(.text+0x562e): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5641): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5685): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x56e8): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5727): undefined reference to `kunit_unary_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5787): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `kunit_test_suites_init':
policy_unpack.c:(.text+0x57f6): undefined reference to `kunit_run_tests'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `build_aa_ext_struct':
policy_unpack.c:(.text+0x9e2e): undefined reference to `kunit_kmalloc'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9e69): undefined reference to `kunit_ptr_not_err_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9ebc): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9ece): undefined reference to `kunit_kmalloc'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9f09): undefined reference to `kunit_ptr_not_err_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9f5d): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_init':
policy_unpack.c:(.text+0xa216): undefined reference to `kunit_kmalloc'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xa251): undefined reference to `kunit_ptr_not_err_assert_format'
x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xa2a1): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `kunit_test_suites_init':
qos-test.c:(.text+0x26): undefined reference to `kunit_run_tests'
x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_readd':
qos-test.c:(.text+0x179): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1c8): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x244): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x294): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x306): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x359): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x3c3): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x413): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x482): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x4d1): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x54d): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x59d): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x60f): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x662): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_min':
qos-test.c:(.text+0x7f8): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x848): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x8c7): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x917): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x989): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x9dc): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xa49): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xa99): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xb0b): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xb5e): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xbc8): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xc18): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xc87): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xcd6): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_maxdef':
qos-test.c:(.text+0xe6e): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xec1): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xf3a): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0xf89): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1005): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1054): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x10c3): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1113): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1185): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x11d8): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1247): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1296): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1308): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x135b): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x13c5): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1415): undefined reference to `kunit_do_assertion'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x1487): undefined reference to `kunit_binary_assert_format'
x86_64-linux-gnu-ld: qos-test.c:(.text+0x14da): undefined reference to `kunit_do_assertion'
I am not sure what caused this.
This build is a cross build and using a separate object directory (in
case that matters).
I used the kunit-next tree from next-20200109 for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2020-01-10 6:43 Stephen Rothwell
@ 2020-01-10 11:56 ` Alan Maguire
2020-01-13 21:11 ` Brendan Higgins
0 siblings, 1 reply; 16+ messages in thread
From: Alan Maguire @ 2020-01-10 11:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Shuah Khan, Brendan Higgins, Linux Next Mailing List,
Linux Kernel Mailing List, Mike Salvatore, Alan Maguire
On Fri, 10 Jan 2020, Stephen Rothwell wrote:
> Hi all,
>
> After merging the kunit-next tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_out_of_bounds':
> policy_unpack.c:(.text+0xf5c): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xf6f): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_code_mismatch':
> policy_unpack.c:(.text+0x1113): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1126): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1161): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x11a5): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_code_match':
> policy_unpack.c:(.text+0x1350): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1363): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x139e): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x13e9): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_out_of_bounds':
> policy_unpack.c:(.text+0x15a1): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x15b4): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1646): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1677): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_with_name':
> policy_unpack.c:(.text+0x17e7): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x17fa): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1857): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x18a2): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1934): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1965): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_with_null_name':
> policy_unpack.c:(.text+0x1ab0): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1ac3): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1b20): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1b6b): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1bfd): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1c2e): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_out_of_bounds':
> policy_unpack.c:(.text+0x1db1): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1dc4): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1e56): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1e87): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_with_name':
> policy_unpack.c:(.text+0x1feb): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1ffe): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2060): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x20b3): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2145): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2176): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_with_null_name':
> policy_unpack.c:(.text+0x22b4): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x22c7): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2329): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x237c): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x240e): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x243f): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_out_of_bounds_2':
> policy_unpack.c:(.text+0x2643): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x266c): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x26b4): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x26dd): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2757): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2777): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_out_of_bounds_1':
> policy_unpack.c:(.text+0x297e): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x29a7): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x29ef): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2a18): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2a94): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2ab4): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_basic':
> policy_unpack.c:(.text+0x2ce1): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d01): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d4e): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d7a): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2ddf): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2e07): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_out_of_bounds':
> policy_unpack.c:(.text+0x2f86): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2fcc): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3023): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3052): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x30bf): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x30ea): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_with_name':
> policy_unpack.c:(.text+0x324f): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x329f): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x32da): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3350): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x33c9): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3418): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_with_null_name':
> policy_unpack.c:(.text+0x359c): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x35ec): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3627): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x369d): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3716): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3765): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_out_of_bounds':
> policy_unpack.c:(.text+0x38d3): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3919): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3986): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x39b1): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_with_name':
> policy_unpack.c:(.text+0x3ae7): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3b2e): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3b95): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3bdb): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_with_null_name':
> policy_unpack.c:(.text+0x3d26): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3d6d): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3dd4): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3e1a): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_wrong_name':
> policy_unpack.c:(.text+0x3f55): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3f68): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3ffa): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x402b): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_name':
> policy_unpack.c:(.text+0x4186): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4199): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4229): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x425a): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_wrong_code':
> policy_unpack.c:(.text+0x4390): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x43a3): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4435): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4466): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_null_name':
> policy_unpack.c:(.text+0x459f): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x45b2): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4642): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4673): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_out_of_bounds':
> policy_unpack.c:(.text+0x47f3): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4839): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x48a6): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x48d1): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_with_name':
> policy_unpack.c:(.text+0x4a2a): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4a7a): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4ac3): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4af9): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_with_null_name':
> policy_unpack.c:(.text+0x4c55): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4ca5): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4cee): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4d24): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_out_of_bounds':
> policy_unpack.c:(.text+0x4eac): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4eed): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4f6c): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4f8c): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_with_name':
> policy_unpack.c:(.text+0x50ec): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x512e): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x51ad): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x51cd): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_with_null_name':
> policy_unpack.c:(.text+0x52f8): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x533a): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x53b9): undefined reference to `kunit_binary_ptr_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x53d9): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_inbounds_when_out_of_bounds':
> policy_unpack.c:(.text+0x54cf): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5533): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_inbounds_when_inbounds':
> policy_unpack.c:(.text+0x562e): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5641): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5685): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x56e8): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5727): undefined reference to `kunit_unary_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5787): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `kunit_test_suites_init':
> policy_unpack.c:(.text+0x57f6): undefined reference to `kunit_run_tests'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `build_aa_ext_struct':
> policy_unpack.c:(.text+0x9e2e): undefined reference to `kunit_kmalloc'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9e69): undefined reference to `kunit_ptr_not_err_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9ebc): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9ece): undefined reference to `kunit_kmalloc'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9f09): undefined reference to `kunit_ptr_not_err_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9f5d): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_init':
> policy_unpack.c:(.text+0xa216): undefined reference to `kunit_kmalloc'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xa251): undefined reference to `kunit_ptr_not_err_assert_format'
> x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xa2a1): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `kunit_test_suites_init':
> qos-test.c:(.text+0x26): undefined reference to `kunit_run_tests'
> x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_readd':
> qos-test.c:(.text+0x179): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1c8): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x244): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x294): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x306): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x359): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x3c3): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x413): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x482): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x4d1): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x54d): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x59d): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x60f): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x662): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_min':
> qos-test.c:(.text+0x7f8): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x848): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x8c7): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x917): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x989): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x9dc): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xa49): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xa99): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xb0b): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xb5e): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xbc8): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xc18): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xc87): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xcd6): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_maxdef':
> qos-test.c:(.text+0xe6e): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xec1): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xf3a): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0xf89): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1005): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1054): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x10c3): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1113): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1185): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x11d8): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1247): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1296): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1308): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x135b): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x13c5): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1415): undefined reference to `kunit_do_assertion'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x1487): undefined reference to `kunit_binary_assert_format'
> x86_64-linux-gnu-ld: qos-test.c:(.text+0x14da): undefined reference to `kunit_do_assertion'
>
> I am not sure what caused this.
>
> This build is a cross build and using a separate object directory (in
> case that matters).
>
> I used the kunit-next tree from next-20200109 for today.
>
This is my fault; when kunit is built as a module, kunit
tests that are builtin-only fail to build. I've posted
a patch to fix this at
https://lore.kernel.org/linux-kselftest/1578656965-2993-1-git-send-email-alan.maguire@oracle.com/T/#u
Thanks for catching this Stephen, and apologies for the noise!
Alan
> --
> Cheers,
> Stephen Rothwell
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: linux-next: build failure after merge of the kunit-next tree
2020-01-10 11:56 ` Alan Maguire
@ 2020-01-13 21:11 ` Brendan Higgins
0 siblings, 0 replies; 16+ messages in thread
From: Brendan Higgins @ 2020-01-13 21:11 UTC (permalink / raw)
To: Alan Maguire
Cc: Stephen Rothwell, Shuah Khan, Linux Next Mailing List,
Linux Kernel Mailing List, Mike Salvatore
On Fri, Jan 10, 2020 at 3:56 AM Alan Maguire <alan.maguire@oracle.com> wrote:
>
> On Fri, 10 Jan 2020, Stephen Rothwell wrote:
>
> > Hi all,
> >
> > After merging the kunit-next tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_out_of_bounds':
> > policy_unpack.c:(.text+0xf5c): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xf6f): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_code_mismatch':
> > policy_unpack.c:(.text+0x1113): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1126): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1161): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x11a5): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_X_code_match':
> > policy_unpack.c:(.text+0x1350): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1363): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x139e): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x13e9): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_out_of_bounds':
> > policy_unpack.c:(.text+0x15a1): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x15b4): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1646): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1677): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_with_name':
> > policy_unpack.c:(.text+0x17e7): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x17fa): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1857): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x18a2): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1934): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1965): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u64_with_null_name':
> > policy_unpack.c:(.text+0x1ab0): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1ac3): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1b20): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1b6b): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1bfd): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1c2e): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_out_of_bounds':
> > policy_unpack.c:(.text+0x1db1): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1dc4): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1e56): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1e87): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_with_name':
> > policy_unpack.c:(.text+0x1feb): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x1ffe): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2060): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x20b3): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2145): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2176): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u32_with_null_name':
> > policy_unpack.c:(.text+0x22b4): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x22c7): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2329): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x237c): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x240e): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x243f): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_out_of_bounds_2':
> > policy_unpack.c:(.text+0x2643): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x266c): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x26b4): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x26dd): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2757): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2777): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_out_of_bounds_1':
> > policy_unpack.c:(.text+0x297e): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x29a7): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x29ef): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2a18): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2a94): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2ab4): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_u16_chunk_basic':
> > policy_unpack.c:(.text+0x2ce1): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d01): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d4e): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2d7a): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2ddf): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2e07): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_out_of_bounds':
> > policy_unpack.c:(.text+0x2f86): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x2fcc): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3023): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3052): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x30bf): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x30ea): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_with_name':
> > policy_unpack.c:(.text+0x324f): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x329f): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x32da): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3350): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x33c9): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3418): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_strdup_with_null_name':
> > policy_unpack.c:(.text+0x359c): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x35ec): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3627): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x369d): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3716): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3765): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_out_of_bounds':
> > policy_unpack.c:(.text+0x38d3): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3919): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3986): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x39b1): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_with_name':
> > policy_unpack.c:(.text+0x3ae7): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3b2e): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3b95): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3bdb): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_str_with_null_name':
> > policy_unpack.c:(.text+0x3d26): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3d6d): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3dd4): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3e1a): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_wrong_name':
> > policy_unpack.c:(.text+0x3f55): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3f68): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x3ffa): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x402b): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_name':
> > policy_unpack.c:(.text+0x4186): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4199): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4229): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x425a): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_wrong_code':
> > policy_unpack.c:(.text+0x4390): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x43a3): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4435): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4466): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_nameX_with_null_name':
> > policy_unpack.c:(.text+0x459f): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x45b2): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4642): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4673): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_out_of_bounds':
> > policy_unpack.c:(.text+0x47f3): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4839): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x48a6): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x48d1): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_with_name':
> > policy_unpack.c:(.text+0x4a2a): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4a7a): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4ac3): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4af9): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_blob_with_null_name':
> > policy_unpack.c:(.text+0x4c55): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4ca5): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4cee): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4d24): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_out_of_bounds':
> > policy_unpack.c:(.text+0x4eac): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4eed): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4f6c): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x4f8c): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_with_name':
> > policy_unpack.c:(.text+0x50ec): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x512e): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x51ad): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x51cd): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_unpack_array_with_null_name':
> > policy_unpack.c:(.text+0x52f8): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x533a): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x53b9): undefined reference to `kunit_binary_ptr_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x53d9): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_inbounds_when_out_of_bounds':
> > policy_unpack.c:(.text+0x54cf): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5533): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_inbounds_when_inbounds':
> > policy_unpack.c:(.text+0x562e): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5641): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5685): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x56e8): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5727): undefined reference to `kunit_unary_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x5787): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `kunit_test_suites_init':
> > policy_unpack.c:(.text+0x57f6): undefined reference to `kunit_run_tests'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `build_aa_ext_struct':
> > policy_unpack.c:(.text+0x9e2e): undefined reference to `kunit_kmalloc'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9e69): undefined reference to `kunit_ptr_not_err_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9ebc): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9ece): undefined reference to `kunit_kmalloc'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9f09): undefined reference to `kunit_ptr_not_err_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0x9f5d): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `policy_unpack_test_init':
> > policy_unpack.c:(.text+0xa216): undefined reference to `kunit_kmalloc'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xa251): undefined reference to `kunit_ptr_not_err_assert_format'
> > x86_64-linux-gnu-ld: policy_unpack.c:(.text+0xa2a1): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `kunit_test_suites_init':
> > qos-test.c:(.text+0x26): undefined reference to `kunit_run_tests'
> > x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_readd':
> > qos-test.c:(.text+0x179): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1c8): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x244): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x294): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x306): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x359): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x3c3): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x413): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x482): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x4d1): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x54d): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x59d): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x60f): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x662): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_min':
> > qos-test.c:(.text+0x7f8): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x848): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x8c7): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x917): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x989): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x9dc): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xa49): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xa99): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xb0b): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xb5e): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xbc8): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xc18): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xc87): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xcd6): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: drivers/base/power/qos-test.o: in function `freq_qos_test_maxdef':
> > qos-test.c:(.text+0xe6e): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xec1): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xf3a): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0xf89): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1005): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1054): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x10c3): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1113): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1185): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x11d8): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1247): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1296): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1308): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x135b): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x13c5): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1415): undefined reference to `kunit_do_assertion'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x1487): undefined reference to `kunit_binary_assert_format'
> > x86_64-linux-gnu-ld: qos-test.c:(.text+0x14da): undefined reference to `kunit_do_assertion'
> >
> > I am not sure what caused this.
> >
> > This build is a cross build and using a separate object directory (in
> > case that matters).
> >
> > I used the kunit-next tree from next-20200109 for today.
> >
>
> This is my fault; when kunit is built as a module, kunit
> tests that are builtin-only fail to build. I've posted
> a patch to fix this at
>
> https://lore.kernel.org/linux-kselftest/1578656965-2993-1-git-send-email-alan.maguire@oracle.com/T/#u
Looks like this is now fixed on kselftest/kunit (thanks to your patch).
> Thanks for catching this Stephen, and apologies for the noise!
Thanks for taking care of this in my absence!
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2024-03-06 15:25 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-29 4:26 linux-next: build failure after merge of the kunit-next tree 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
-- strict thread matches above, loose matches on Subject: below --
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).