From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbIhy-0001Kj-KB for qemu-devel@nongnu.org; Sun, 13 Sep 2015 21:37:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbIhu-00089U-CS for qemu-devel@nongnu.org; Sun, 13 Sep 2015 21:37:26 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:48938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbIht-00088l-Pz for qemu-devel@nongnu.org; Sun, 13 Sep 2015 21:37:22 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 Sep 2015 11:37:18 +1000 From: Gavin Shan Date: Mon, 14 Sep 2015 11:36:09 +1000 Message-Id: <1442194575-8537-2-git-send-email-gwshan@linux.vnet.ibm.com> In-Reply-To: <1442194575-8537-1-git-send-email-gwshan@linux.vnet.ibm.com> References: <1442194575-8537-1-git-send-email-gwshan@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v8 1/7] scripts: Allow include "stdint.h" in virtio headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lvivier@redhat.com, peter.maydell@linaro.org, thuth@redhat.com, Gavin Shan , qemu-ppc@nongnu.org, david@gibson.dropbear.id.au 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()"). 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(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.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/' \ -- 2.1.0