Received: from eggs.gnu.org ([2001:4830:134:3::10]:47032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awC0x-0007ip-5k for qemu-devel@nongnu.org; Fri, 29 Apr 2016 13:15:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awC0l-0000Gk-7W for qemu-devel@nongnu.org; Fri, 29 Apr 2016 13:15:33 -0400 Message-ID: <1461950091.4285.2.camel@gmail.com> From: Jan Vesely Date: Fri, 29 Apr 2016 13:14:51 -0400 In-Reply-To: References: <1461935279-30418-1-git-send-email-jano.vesely@gmail.com> <5723680D.2050601@weilnetz.de> <9e437a9d-1725-5e2a-a43d-7952ccdf79ed@weilnetz.de> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-+S2qoxkA572K8Fii/pMM" Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] configure: Check if struct fsxattr is available from linux header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Stefan Weil Cc: QEMU Developers , QEMU Trivial , Markus Armbruster --=-+S2qoxkA572K8Fii/pMM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2016-04-29 at 15:49 +0100, Peter Maydell wrote: > On 29 April 2016 at 15:31, Stefan Weil wrote: > >=20 > > Is it a bug of the system headers? Or simply a design which > > requires users to be careful when including certain header files? > >=20 > > Both /usr/include/xfs/xfs_fs.h and /usr/include/linux/fs.h define > > the same struct fsxattr, and both definitions are identical. > That sounds like a header bug to me... >=20 > http://oss.sgi.com/archives/xfs/2016-02/msg00324.html >=20 > suggests that (a) the xfsprogs folks are updating their > header to deal with what the kernel header is doing and that > (b) they think the distros ought to be updating both of them > in sync in some way... yes, even more so that xfsprogs/xfslib will fail to compile using linux-headers-4.5 for the very same reason. However, it looks like distros are not keen on keeping them in sync. the patch is a workaround. Jan >=20 > >=20 > > Of course a good comment would be helpful here, e. g. > >=20 > > # Avoid redefinition of struct fsxattr in xfs/xfs_fs.h. > > # It is already defined in linux/fs.h. > Yes, this is really all I want: a note that some versions of > the kernel headers and the xfs headers clash, so we suppress > the xfs version if the kernel header is providing the struct. >=20 > thanks > -- PMM --=-+S2qoxkA572K8Fii/pMM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJXI5aLAAoJEOCQZixVs7KBTxUP/0I3T/APykbMVVmIDDKXnRG1 J9UkB45EnsHsh98Vj5VjHJWyEEO+aajmRN+p0SaUcQAioUBFKdbEWhS2xstkTXY7 /ENXw6q9K7sLSjHwJvW1Yb2HQbhfAGsqEDz3XhdvZ4u3BBy2WLmqifThGCCWcUAQ ycs8cseX8NQvn287uP7DDgZOZD9FVhCk8rbn+14ZEHzJKz1nQLcpuf1wN0Byph/Y WCBp5tVAqAMuV2kZOiZEgWPOmWxSu+W2fyQ5E31NII4ogKJ7zT7cinH7vgSU+bgh fWGcPOQPN/MFY54l/NUIu1T5bk3GsqSlgLFTw7e4NaQNj1UYGDgAOsKz/UP+WOAV h3TJHyaHGvIzUAkjK3m+wu0zfYMiBzdD6OQqKFIJRSJlOwTAudIMVPBdUuv6YNE0 oA1HPutnCBR2OrgkaTD07z9Gysfr+lLERLmnXJMFS4HKKEmgrbWwiQjH2Zn2UPTa wOWA7JyyC+oYtIFS6E3wNju3OueUZkJkaXPGzmWfiiapQDhO2eiyvUeA1J2EyI/+ 9DTEUgv/uYXTfpMHy0F3pzGdJKco1Les7wDYhHFvgq3HQOzULFatdHX8WGsJxqnz ubibXpdA4STm4HSAPr/8hUgaakII7be/fVTrReZaOoqXkRNZQpCFkQE4G+hk+eVp Yj30IaygHqFBJS2JbsOC =gJeN -----END PGP SIGNATURE----- --=-+S2qoxkA572K8Fii/pMM--