lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <owkmwjhxbhii6devx33npufv3pgrjygbjprba5lby2dq25wvce@nvm4ll6d42h2>
Date: Thu, 19 Sep 2024 22:43:11 -0500
From: Lucas De Marchi <lucas.demarchi@...el.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>
CC: Thomas Hellström <thomas.hellstrom@...ux.intel.com>, Kees
 Cook <kees@...nel.org>, Riana Tauro <riana.tauro@...el.com>, "Rodrigo Vivi"
	<rodrigo.vivi@...el.com>, Michal Wajdeczko <michal.wajdeczko@...el.com>, DRM
 XE List <intel-xe@...ts.freedesktop.org>, Linux Kernel Mailing List
	<linux-kernel@...r.kernel.org>, Linux Next Mailing List
	<linux-next@...r.kernel.org>, Dave Airlie <airlied@...hat.com>, DRI
	<dri-devel@...ts.freedesktop.org>
Subject: Re: linux-next: build failure after merge of the kspp tree

On Thu, Sep 19, 2024 at 09:27:52AM GMT, Stephen Rothwell wrote:
>Hi all,
>
>On Mon, 9 Sep 2024 19:59:39 +1000 Stephen Rothwell <sfr@...b.auug.org.au> wrote:
>>
>> After merging the kspp tree, today's linux-next build (x86_64
>> allmodconfig) failed like this:
>>
>> drivers/gpu/drm/xe/xe_gt_idle.c:56:27: error: redefinition of 'str_up_down'
>>    56 | static inline const char *str_up_down(bool v)
>>       |                           ^~~~~~~~~~~
>> In file included from include/linux/string_helpers.h:7,
>>                  from drivers/gpu/drm/xe/xe_assert.h:9,
>>                  from drivers/gpu/drm/xe/xe_force_wake.h:9,
>>                  from drivers/gpu/drm/xe/xe_gt_idle.c:8:
>> include/linux/string_choices.h:62:27: note: previous definition of 'str_up_down' with type 'const char *(bool)' {aka 'const char *(_Bool)'}
>>    62 | static inline const char *str_up_down(bool v)
>>       |                           ^~~~~~~~~~~
>>
>> Caused by commit
>>
>>   a98ae7f045b2 ("lib/string_choices: Add str_up_down() helper")
>>
>> interacting with commit
>>
>>   0914c1e45d3a ("drm/xe/xe_gt_idle: add debugfs entry for powergating info")
>>
>> from the drm-xe tree.
>>
>> I have applied the following patch for today.
>>
>> From: Stephen Rothwell <sfr@...b.auug.org.au>
>> Date: Mon, 9 Sep 2024 19:40:17 +1000
>> Subject: [PATCH] fix up for "lib/string_choices: Add str_up_down() helper"
>>
>> interacting wit commit "drm/xe/xe_gt_idle: add debugfs entry for
>> powergating info" from the drm-xe tree.
>>
>> Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
>> ---
>>  drivers/gpu/drm/xe/xe_gt_idle.c | 5 -----
>>  1 file changed, 5 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_gt_idle.c b/drivers/gpu/drm/xe/xe_gt_idle.c
>> index 85a35ed153a3..0f98c1539c64 100644
>> --- a/drivers/gpu/drm/xe/xe_gt_idle.c
>> +++ b/drivers/gpu/drm/xe/xe_gt_idle.c
>> @@ -53,11 +53,6 @@ pc_to_xe(struct xe_guc_pc *pc)
>>  	return gt_to_xe(gt);
>>  }
>>
>> -static inline const char *str_up_down(bool v)
>> -{
>> -	return v ? "up" : "down";
>> -}
>> -
>>  static const char *gt_idle_state_to_string(enum xe_gt_idle_state state)
>>  {
>>  	switch (state) {
>> --
>> 2.45.2
>
>This is now needed in the merge between Linus' tree and the drm-xe tree.

Thanks. This not going to 6.12. It's targeted to 6.13, so we should fix
it when merging drm-next back to drm-xe-next.

Lucas De Marchi

>
>-- 
>Cheers,
>Stephen Rothwell



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ