From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTqVZ-0008SF-Oh for qemu-devel@nongnu.org; Mon, 24 Aug 2015 08:05:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTqVV-0005Lz-CW for qemu-devel@nongnu.org; Mon, 24 Aug 2015 08:05:49 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:47641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTqVU-0005JM-Mm for qemu-devel@nongnu.org; Mon, 24 Aug 2015 08:05:45 -0400 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 24 Aug 2015 17:35:42 +0530 From: Gavin Shan Date: Mon, 24 Aug 2015 22:03:22 +1000 Message-Id: <1440417809-21069-2-git-send-email-gwshan@linux.vnet.ibm.com> In-Reply-To: <1440417809-21069-1-git-send-email-gwshan@linux.vnet.ibm.com> References: <1440417809-21069-1-git-send-email-gwshan@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v6 1/8] 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: peter.maydell@linaro.org, thuth@redhat.com, aik@ozlabs.ru, 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 --- 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