From patchwork Tue May 10 13:51:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Jianjun Kong X-Patchwork-Id: 774372 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4ADpXLm004469 for ; Tue, 10 May 2011 13:51:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932332Ab1EJNvb (ORCPT ); Tue, 10 May 2011 09:51:31 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:43674 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932246Ab1EJNva (ORCPT ); Tue, 10 May 2011 09:51:30 -0400 Received: by pvg12 with SMTP id 12so2828441pvg.19 for ; Tue, 10 May 2011 06:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=JRHLQRLOy3gwPLls8nRUP11SKdDWsMY9KSOGcdS5M0M=; b=T+WSJ0MgmZ73A+ZgF8hZI9ProuQ34wxdPTEO73MLlXtqOXCn3SC7aWWjhACt18hrX9 Ivr5eEqiFV77fI8NKpSyKW5DsPlGgLJkNC50YT4wzID15EoZuQkke4Kc0tkUzLVP0zFi BOSLwASaS4SH98f6RK08dEs5s0eqWQke4Uruk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=D4yLERIp8YWN4gTwQMoHPFi5H2k3IJbErGBeM2sv9QUfRiQdkv/cTsBWmxrxTnzbRO YVDPWITj6YcoJe+Iu0fSTAb/bJgzue/FEzILCOQYD/RfEIagTlAXMsfY5yKKqi1acLGm P6/U3QsXjNZm464+LKLgbD2KP2Y/cT0xEuDrE= Received: by 10.68.29.9 with SMTP id f9mr11626297pbh.350.1305035490078; Tue, 10 May 2011 06:51:30 -0700 (PDT) Received: from localhost ([123.124.21.94]) by mx.google.com with ESMTPS id l9sm3799983pbc.14.2011.05.10.06.51.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 06:51:29 -0700 (PDT) From: kongjianjun@gmail.com To: kvm@vger.kernel.org Cc: avi@redhat.com, Amos Kong Subject: [PATCH] virtio-net: Fix incorrect argument type Date: Tue, 10 May 2011 21:51:22 +0800 Message-Id: <1305035482-3914-1-git-send-email-kongjianjun@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 10 May 2011 13:51:33 +0000 (UTC) From: Amos Kong drivers/net/virtio_net.c:213:52: warning: incorrect type in argument 2 (different signedness) drivers/net/virtio_net.c:213:52: expected unsigned int *len drivers/net/virtio_net.c:213:52: got int * drivers/net/virtio_net.c:223:45: warning: incorrect type in argument 4 (different signedness) drivers/net/virtio_net.c:223:45: expected unsigned int *len drivers/net/virtio_net.c:223:45: got int * Signed-off-by: Amos Kong --- drivers/net/virtio_net.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 82dba5a..f6df2e0 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -199,7 +199,8 @@ static int receive_mergeable(struct virtnet_info *vi, struct sk_buff *skb) { struct skb_vnet_hdr *hdr = skb_vnet_hdr(skb); struct page *page; - int num_buf, i, len; + int num_buf, i; + unsigned int len; num_buf = hdr->mhdr.num_buffers; while (--num_buf) {