From: jsg Date: Mon, 29 Apr 2024 06:31:57 +0000 (+0000) Subject: drm/radeon: make -fstrict-flex-arrays=3 happy X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b658665ff8427ba55fae312d744889f241d00e34;p=openbsd drm/radeon: make -fstrict-flex-arrays=3 happy From Alex Deucher 259486b5bdc63f648634c30b8284be29834a4125 in linux-6.6.y/6.6.29 0ba753bc7e79e49556e81b0d09b2de1aa558553b in mainline linux --- diff --git a/sys/dev/pci/drm/radeon/radeon_atombios.c b/sys/dev/pci/drm/radeon/radeon_atombios.c index e5cf95ac71e..092279f2033 100644 --- a/sys/dev/pci/drm/radeon/radeon_atombios.c +++ b/sys/dev/pci/drm/radeon/radeon_atombios.c @@ -926,8 +926,12 @@ bool radeon_get_atom_connector_info_from_supported_devices_table(struct max_device = ATOM_MAX_SUPPORTED_DEVICE_INFO; for (i = 0; i < max_device; i++) { - ATOM_CONNECTOR_INFO_I2C ci = - supported_devices->info.asConnInfo[i]; + ATOM_CONNECTOR_INFO_I2C ci; + + if (frev > 1) + ci = supported_devices->info_2d1.asConnInfo[i]; + else + ci = supported_devices->info.asConnInfo[i]; bios_connectors[i].valid = false;