From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWaED-0006hj-DP for qemu-devel@nongnu.org; Mon, 31 Aug 2015 21:19:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWaEC-00048w-Bx for qemu-devel@nongnu.org; Mon, 31 Aug 2015 21:19:13 -0400 Date: Tue, 1 Sep 2015 10:50:54 +1000 From: David Gibson Message-ID: <20150901005054.GK11475@voom.redhat.com> References: <1440746120-21577-1-git-send-email-gwshan@linux.vnet.ibm.com> <1440746120-21577-2-git-send-email-gwshan@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="08ATZu8fEq0x2T3M" Content-Disposition: inline In-Reply-To: <1440746120-21577-2-git-send-email-gwshan@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v7 1/8] scripts: Allow include "stdint.h" in virtio headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gavin Shan Cc: aik@ozlabs.ru, peter.maydell@linaro.org, thuth@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org --08ATZu8fEq0x2T3M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 28, 2015 at 05:15:13PM +1000, Gavin Shan wrote: > This allows to include "stdint.h" in virtio header files. Otherwise, > scripts/update-linux-headers.sh fails when updating headers from > Linux 4.2.rc8 kernel. include/uapi/linux/virtio_ring.h starts to > include "stdint.h" from commit d768f32a ("virtio: Fix typecast of > pointer in vring_init()"). >=20 > Signed-off-by: Gavin Shan > Reviewed-by: Thomas Huth Reviewed-by: David Gibson > --- > scripts/update-linux-headers.sh | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-heade= rs.sh > index f0e830c..2fddf2e 100755 > --- a/scripts/update-linux-headers.sh > +++ b/scripts/update-linux-headers.sh > @@ -37,7 +37,8 @@ cp_virtio() { > mkdir -p "$to" > for f in $virtio; do > if > - grep '#include' "$f" | grep -v -e 'linux/virtio' \ > + grep '#include' "$f" | grep -v -e 'stdint' \ > + -e 'linux/virtio' \ > -e 'linux/types' \ > -e 'linux/if_ether' \ > -e 'sys/' \ --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --08ATZu8fEq0x2T3M Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJV5PZuAAoJEGw4ysog2bOSR9EP/24aFvnSPbvJ2wwCoCmmzWbu auFtG0tsunS13JdGrENRUh6hdddnaKAsNScS/honLTXwfQcAl2jywCe8WoeM1U0r R6Cvivx03WMqVTq+qfqhgltmrt0ZB/3A23Z3LmqsURhbkhYLoKq5/bT6BWFHVF+x pYeI3ctfh/2n3pVXDeMsSto0+3nd35y4Ut8863bH9k7oiajxaEbYD+Zg/brPvepS 9WQ0SFD+59KCh87l6OiEtG2BA0NS61ED0wKaIZnNjmvmFeUvQqDqmKjt5ALpNLBC WhAsoeHQstDRniDZzU1BcvsMlp4cg044nRgj167nt6SMoJ3ANVN2JjUis5ls/CWr L2PDxfEwGLoAHvmriDcZzNrwrZhps3jhTgJfWyBbj6M1CL1jNdOdoB7BQQliKYzC 7+78zB/6GH36LMZF+W9WUuXJIOrGJeNUFAsndAGUUcOaZPCNKdsIdN/zUcp2KgJt 9aMco4vaPvuDAk9DwF4xzOCfhdoIS9MjLUdBUiWf0lGQUwweF8Og/TQX96fsOcoU jTNjei9e6Pk21e1Ns0GyH8VgNMyVC6LACiNasO2NNJ5o992PPthUZsPFiFQgumdQ PwhlVQXGbFQMwLCUnyz18Iw/pZ79cbSeCQ/UgnHu3LlNuvoYCVfpHcX2Ds7k6tAA ZyQIm97XeYFK/KWQtkwr =ghZ+ -----END PGP SIGNATURE----- --08ATZu8fEq0x2T3M--