From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 230BF8F7D for ; Thu, 6 Nov 2025 03:29:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762399752; cv=none; b=et/fcx8/ZSlyFy1veRw7yPjJ+S6sDYZRy5C4kaTXTeZr3xL10vVHd6x/fhUej/7bySoB0i8VF3zMqFvJvwfcqbZhbwynlodZbD5GBsOlJzfng8ki1iixJ4jAxO4VcFQWiq/qiwh1whNaTeVD5KI8lkMCltoX8P8DG+7Eib8PaN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762399752; c=relaxed/simple; bh=GySsdT73BFwStgO70p9Xc8awpOEuOkwucwV3nCJI/5I=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=hv8q+Mah+18M/oeR1uobWKL2KfmHTRznE3nnzd0ISNa15foUid0X9a8ZQHq4fR+pWPncqtaoEUqQEMFFhXFT5S92cEfStY0YMQ2ujX+IwJz//AMH6UgMg3j3fQUTBeGHIcAZKnGgNXkr/Ktf0V4QiKVh0WebN7gY9WsMEkMNL2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hQAgpeyu; arc=none smtp.client-ip=209.85.222.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hQAgpeyu" Received: by mail-ua1-f48.google.com with SMTP id a1e0cc1a2514c-93539c5e2b5so290121241.0 for ; Wed, 05 Nov 2025 19:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762399750; x=1763004550; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=n4CaiNtBzk+J1ksip0bh0eyQEO10boIF1xJKJ7rk94I=; b=hQAgpeyubKqOKdS80ykJu3p3RBB3lb8r00yX4e4Vno/B2jZDQIDES2JmwMJJ7cgwnZ zWkOZib5kGMW7+c/ytzyhXOh8gpSAVANRfIVN/JDdGIlnyrYsCCoTnRYpE2oap4NSN8K 4kxAyAli6mV52V4RvMOpVJFDGq6RpiUBX7da9wUVMDzuHJ2mvXwbkhJku+Ho2LLVzhqP Z9KzxeqwaxBf2ZwxaSR+HS68A0OZ5SQAzPhuVsveUe6lgmwue6Z/50v2TIp2f3SsMiL9 3u4PcCZ62BQIlsj5IBKhrLcjq00X3/vCuB/I8wcJk0mk3t6ERf7wv5Gr/hUCG8sWnE8u a9xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762399750; x=1763004550; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n4CaiNtBzk+J1ksip0bh0eyQEO10boIF1xJKJ7rk94I=; b=jVmOBm7BgMdzIM8JUQC0IwQV84XYU1ZCwNLHqCDFdOXaMJ79Nef2EfRrB/JcAY3XhD 0MQ+vFJW8WTIOIjjKB+wnedLRmwhMh6ox4au9uYnJyjF/XpDL/PZglSA7omTwzKb8uJZ X0BaT+BnCu8VLtITC0dAbOoqpbp2KRw1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b0:5db:aee2:9964 with SMTP id ada2fe7eead31-5dd9fcfa31bmr711345137.9.1762399749959; Wed, 05 Nov 2025 19:29:09 -0800 (PST) Received: from ?IPv6:2001:4c4e:24ca:a400:c3d8:2d5a:cb81:c0d3? ([2001:4c4e:24ca:a400:c3d8:2d5a:cb81:c0d3]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-937089699dcsm550066241.10.2025.11.05.19.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Nov 2025 19:29:09 -0800 (PST) Message-ID: <867953df79b54037ce91cf1886b09ec5c30f7442.camel@gmail.com> Subject: Re: linux-next-20251029 - build error in amdgpu From: Timur =?ISO-8859-1?Q?Krist=F3f?= To: Amit Dhingra Cc: Valdis =?UTF-8?Q?Kl=C4=93tnieks?= , Alex Deucher , Leo Li , David Airlie , amd-gfx list , dri-devel , linux-kernel@vger.kernel.org Date: Thu, 06 Nov 2025 04:29:05 +0100 In-Reply-To: References: <1043551.1761844832@turing-police> <32ed124e9d603cad950c4836c7a14a3ba8bc2068.camel@gmail.com> <1296761.1762045181@turing-police> <149f5bb52a21becedc17a5b0bf1a586672940af6.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2025-11-05 at 19:24 -0800, Amit Dhingra wrote: > On Thu, Nov 06, 2025 at 03:40:52AM +0100, Timur Krist=C3=B3f wrote: > > On Wed, 2025-11-05 at 18:34 -0800, Amit Dhingra wrote: > > >=20 > > > >=20 > > > > What do I need to do to trigger the warning? > > > >=20 > > > I have the same problem. > > >=20 > > > linux-next on Arch Linux > > > GCC : 15.2.1 20250813 > > >=20 > > >=20 > > > Steps to reproduce the error > > > - make mrproper > > > - make allmodconfig > > > - make drivers/gpu/drm/amd/amdgpu/ > > >=20 > > > Turns out its due to randconfig, See [1] > > >=20 > > > Setting RANDSTRUCT_NONE=3Dy seems to stop the error. > >=20 > > Can you please try and see if this fixes the warning? > > https://pastebin.com/raw/b8j3UABj >=20 > The patch above defining all fields seems to fix the error. >=20 > >=20 > > Alternatively, if anyone has other recommendations on how to fix > > it, > > I'm also open to suggestions. > >=20 >=20 > What seemed to also work for me is to defining the struct as below > without an initialization. >=20 > static const struct stream_encoder_funcs dce110_an_str_enc_funcs; >=20 > Its static so should be initialized zeroed out. objdump shows correct > size > allocation. >=20 > objdump -x dce_stream_encoder.o >=20 > =C2=A0 0000000000000b60 l=C2=A0=C2=A0=C2=A0=C2=A0 O .rodata 0000000000000= 130 > dce110_str_enc_funcs > =C2=A0 0000000000000a00 l=C2=A0=C2=A0=C2=A0=C2=A0 O .rodata 0000000000000= 130 > dce110_an_str_enc_funcs >=20 Thanks! This looks even cleaner. I will submit a patch to fix the warning next week. Can I add your name and email to the Suggested-by tag? Thanks, Timur >=20 > > Thanks, > > Timur > >=20 > >=20 > > > >=20 > > > > Valdis Kl=C4=93tnieks ezt =C3=ADrta (id= =C5=91pont: > > > > 2025. > > > > nov. > > > > 2., Vas 1:59): > > > >=20 > > > > > On Thu, 30 Oct 2025 19:05:30 +0100, Timur Krist=C3=B3f said: > > > > >=20 > > > > > > Can you say how to reproduce that? > > > > > > I use the same version of GCC but it hasn't given me any > > > > > > warning or > > > > > > error for that patch. > > > > >=20 > > > > > Upon further testing, > > > > >=20 > > > > > [/usr/src/linux-next] make > > > > >=20 > > > > > is sufficient on my system. Turns out that it errors out even > > > > > without W=3D1. > > > > > My > > > > > next guess was that it had to do with -Werror, which would > > > > > cause > > > > > warnings > > > > > to > > > > > be treated as errors, but my .config has > > > > >=20 > > > > > # CONFIG_WERROR is not set > > > > > # CONFIG_DRM_WERROR is not set > > > > > # CONFIG_DRM_AMDGPU_WERROR is not set > > > > >=20 > > > > > Do you perhaps have patches in your tree that aren't in next- > > > > > 20251029? > > > > >=20 > > > > > I wonder if Fedora's build of gcc 15.2.1 is different somehow > > > > > from the > > > > > build you're using.... > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20