On Sun, Nov 02, 2025 at 10:27:54AM +0100, Timur Kristóf wrote: > Hello Valdis, > > I use Fedora and I developed that patch on Fedora, using the same GCC > version. It did not give me an error or warning when I wrote the patch. It > is still not giving me an error or warning about that code now. > > I am working with the amd-staging-drm-next branch. > > What do I need to do to trigger the warning? > I have the same problem.
linux-next on Arch Linux GCC : 15.2.1 20250813 Steps to reproduce the error - make mrproper - make allmodconfig - make drivers/gpu/drm/amd/amdgpu/ Turns out its due to randconfig, See [1] Setting RANDSTRUCT_NONE=y seems to stop the error. [1] https://lore.kernel.org/all/2025062439-tamer-diner-68e9@gregkh/ - Amit > Thanks & best regards, > Timur > > Valdis Klētnieks <[email protected]> ezt írta (időpont: 2025. nov. > 2., Vas 1:59): > > > On Thu, 30 Oct 2025 19:05:30 +0100, Timur Kristóf said: > > > > > 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. > > > > Upon further testing, > > > > [/usr/src/linux-next] make > > > > is sufficient on my system. Turns out that it errors out even without W=1. > > My > > next guess was that it had to do with -Werror, which would cause warnings > > to > > be treated as errors, but my .config has > > > > # CONFIG_WERROR is not set > > # CONFIG_DRM_WERROR is not set > > # CONFIG_DRM_AMDGPU_WERROR is not set > > > > Do you perhaps have patches in your tree that aren't in next-20251029? > > > > I wonder if Fedora's build of gcc 15.2.1 is different somehow from the > > build you're using.... > > > > > > > >
