Date: Fri, 27 Nov 2015 15:54:36 +0000 (UTC) From: Andrew Rybchenko <arybchik@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291391 - head/sys/dev/sfxge/common Message-ID: <201511271554.tARFsaEY078642@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arybchik Date: Fri Nov 27 15:54:36 2015 New Revision: 291391 URL: https://svnweb.freebsd.org/changeset/base/291391 Log: sfxge: do not use unnamed union in siena_mc_combo_rom_hdr_t GCC 4.2.1 used on FreeBSD 8 and 9 branches does not like unnamed union member in the structure. It is not strictly required in head, but nice to have to minimize difference with out-of-tree driver. Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Modified: head/sys/dev/sfxge/common/siena_flash.h Modified: head/sys/dev/sfxge/common/siena_flash.h ============================================================================== --- head/sys/dev/sfxge/common/siena_flash.h Fri Nov 27 15:50:17 2015 (r291390) +++ head/sys/dev/sfxge/common/siena_flash.h Fri Nov 27 15:54:36 2015 (r291391) @@ -193,7 +193,7 @@ typedef struct siena_mc_combo_rom_hdr_s efx_byte_t infoblk_len;/* length of space reserved for one infoblk structure */ efx_byte_t reserved[7];/* (set to 0) */ } v2; - }; + } data; } siena_mc_combo_rom_hdr_t; #pragma pack()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511271554.tARFsaEY078642>