On Wed, 2023-11-08 at 00:52 +0100, Danilo Krummrich wrote: > On 11/8/23 00:47, Timur Tabi wrote: > > Change PACKED_REGISTRY_TABLE so that its last member is a variable- > > length > > array instead of a zero-length array. UBSAN treats zero-length arrays > > literally and warns if they are dereferenced. Changing the "[0]" to > > "[]" > > tells the compiler that the array is variable-length. > > Do you also intend to fix this upstream? (And with upstream I mean the > open-gpu-kernel-modules in this case.) Hmmm, I hadn't thought about that. I would need to repro (or see a repro) with OpenRM to justify changing it. OpenRM doesn't build the registry the way Nouveau does.