Message ID | 20240229152653.09ecf771@canb.auug.org.au |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-86117-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp169685dyb; Wed, 28 Feb 2024 20:27:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXWnkqZbvRl/ukWqJ0LfM3BlSvPjk//kTeneQU+MoX0SKtBYqm8HWD8CzoMu3KssMJ/5N3/m81VrP9pynS13/j8nguiLg== X-Google-Smtp-Source: AGHT+IG71ML/yqadfHsqEhD0HMk4SV1MRVNpXyCtJm8FobPTkn6fcvBQEfIE1lorgWraf0Z8BcyM X-Received: by 2002:a05:622a:190c:b0:42e:811d:cf63 with SMTP id w12-20020a05622a190c00b0042e811dcf63mr1091733qtc.50.1709180835930; Wed, 28 Feb 2024 20:27:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709180835; cv=pass; d=google.com; s=arc-20160816; b=syZkU44KyWbwtsUzVPiZxlY4bXqwYnMLJ1Pj38R65OLjy6oGS0IzT0KI7mrzeVPTaB HhYKkmO9JQTXnwqfh8iqwIvEmrh1PDZvpe1RxULE9eyoGOD76P+PbsQIvGXrTxYfr0Pe GGIgLWBwO8dEErVMVxcjEv1sRQna7AV4Ui534MLOTVqdlSVOCbDJuwvw+tkmcO+SyGDQ Azy6wfTnUdAS/M3k+xmmiJOj+Q4QDidVqQ1Bsp/frggc99TU24gVS6EmBeUYPHhI6LT5 6Z1GmuqJz/b1a2A6MF5y5MsUGVMaGPMm/GX3kkpLg47iuXzKxHGBObGVV+RuA1xuKc/g Fkkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=QaXdlZBTDkaeRTH8hHnwNLiN9wYY0RBx9cffFy2xxTY=; fh=ztvyCJjqzjk6PjfYBJA8lVEwujihswQfU2RXkmDTAAk=; b=ao+9blrsma9D2w1NARsJHj/UxJpz6U8vCzbPO3v8rYWuS7kULyMa+UPTkn9TysB0Ak n9Mu1nApjRaTo4wntFrTrfPdAGXg+ANndRtWxkbqaa+p0Arxkc2oFr21PkXvzLE4GoMN 7SmFUqpLcZL+WHqGwwgFOXAP45MUptALGwpcV6Y83ZcTdwQYRQhwOggP5+yKWfKnyN6I 1eqNbKCoet6otRQe7WGO4IQl11f0WoFUufFaOaopW6YVx61t7UWo//Vgur/y862Nmnvz IiPtoXI479wVqSFO1DXCXoA+kV78whOxlwwLwxIa3jkbliBPbpZFd2EKwtz90QqnffTG 3fdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=cUb0E7wi; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-86117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86117-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k15-20020ac8478f000000b0042e7a8d052csi638003qtq.348.2024.02.28.20.27.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 20:27:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=cUb0E7wi; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-86117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86117-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B60651C234AB for <ouuuleilei@gmail.com>; Thu, 29 Feb 2024 04:27:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9127C38DE5; Thu, 29 Feb 2024 04:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="cUb0E7wi" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA7A71C3E; Thu, 29 Feb 2024 04:26:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709180821; cv=none; b=k7Dc/SzSuR+cdlBF8fORdIa81xVKPmaWOgm0g3/z6XrICfPEVfR9/Sm+clrBQMbCoDrni9cFcam3NRsE07hYQEvawMqEH0sHIVpA0aVrV/dhhbU7kpKD1EO9BGFzrzRXM0qHon9qEFQLW2nUjq5JS4ypvaMiKq20KNooOdC0oYU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709180821; c=relaxed/simple; bh=h/5G9NNcnkDMRKX6jAh2VhWg9yz8dbicS7iS1TG4GEY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=aFMcdCUQT35FSRKXo+4QlSI3DFGSk1uItjnVTDwFDGJqX8Hdy1xJTOvhr1oMdp7gLJK/zLxq9lVg4XPeGo7AncSbmv1loX73w2nIjraLVVPU/BS+4hYPmOx+oxB+m/z7kHITeUXEtJAAQuaH8BRzo24KlIhsmIv/65npHHbRiwE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=cUb0E7wi; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1709180816; bh=QaXdlZBTDkaeRTH8hHnwNLiN9wYY0RBx9cffFy2xxTY=; h=Date:From:To:Cc:Subject:From; b=cUb0E7wikUlJVhjdOXFk2VhHo6L77CY4RAI8kbgSVZD5gUezItbMSRukwH/J5kLoZ Wliods/NRVA3AS6gaaAQW/hRlqBcVktuZkBTdycHviV+3C/TL7b98rTx/iNVJIke7s XOx81m+TvDfmqVkLLSKWGvpGDySTzKesoc5tbH4LCeeRQfcb7nGYPyGVkwURcujJcx 37BBQ3kAkHDIJtw8UNfx+EY6VVcD8DovNaVzPlS1Wjp3DEvFKTdPcjUH6QvP+MjzaV NfMWJSkDGwQsoCLYwR/M6kptbB9ZXdCJoqn5mPKki4WcoYZJnQfZda1J8v8t8rjilW uTgru97baqrEA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4TldTp2Glyz4wbQ; Thu, 29 Feb 2024 15:26:54 +1100 (AEDT) Date: Thu, 29 Feb 2024 15:26:53 +1100 From: Stephen Rothwell <sfr@canb.auug.org.au> To: Shuah Khan <skhan@linuxfoundation.org>, Brendan Higgins <brendanhiggins@google.com>, Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Intel Graphics <intel-gfx@lists.freedesktop.org>, DRI <dri-devel@lists.freedesktop.org>, Christian =?utf-8?b?S8O2bmln?= <christian.koenig@amd.com>, Matthew Auld <matthew.auld@intel.com>, David Gow <davidgow@google.com>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Linux Next Mailing List <linux-next@vger.kernel.org> Subject: linux-next: build failure after merge of the kunit-next tree Message-ID: <20240229152653.09ecf771@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/aI6337UaqxBnHRtmTs_90Hu"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792206004607859224 X-GMAIL-MSGID: 1792206004607859224 |
Series |
linux-next: build failure after merge of the kunit-next tree
|
|
Commit Message
Stephen Rothwell
Feb. 29, 2024, 4:26 a.m. UTC
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(-)
Comments
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
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
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).
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
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.
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
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;