From patchwork Sat Nov 3 22:02:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12657 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 831E323FBB for ; Sat, 3 Nov 2012 22:02:57 +0000 (UTC) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2E234A18455 for ; Sat, 3 Nov 2012 22:02:57 +0000 (UTC) Received: by mail-pb0-f52.google.com with SMTP id rr13so3014571pbb.11 for ; Sat, 03 Nov 2012 15:02:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=1pYBNgRGrFKz7NjiKhYY1s3jE4ICDm+z9eDQ2ce+12g=; b=RB1fGYuQ0zH2Smpp+ArtmEmrNwr9PnxxTvml/9VposwlKjr84ilCRoF835fFg4aB/i yR78ObRw9yyjjwDOg+cof2V9n/3Hby3X4oQ2vpwO5TzyKtEXW/6WphRLyuCLGI5JgM8Z TBKg9Ll3zxy+O8mZfxCWMh+jHY40S3RfgCuRaVUkDvz7HGKItfmPPBQLzfSwGpOQL7kN ZDoz9wfJaTfBTvFRm0OEn9ky9uT3mZhIo2Poc+Yc8Bsb5eXjlzD+aXGw2iSEq+VjqdqD KTyM/R9RnwaPV48M24rNkZ3GdopSJqGHqTLwki3tOgDPA5lyeBL7N2IeyP3YYG6N5FSy yUmQ== Received: by 10.66.88.133 with SMTP id bg5mr16512670pab.80.1351980176904; Sat, 03 Nov 2012 15:02:56 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.68.34.137 with SMTP id z9csp94642pbi; Sat, 3 Nov 2012 15:02:56 -0700 (PDT) Received: by 10.14.215.69 with SMTP id d45mr20511718eep.16.1351980175482; Sat, 03 Nov 2012 15:02:55 -0700 (PDT) Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com [74.125.83.42]) by mx.google.com with ESMTPS id f44si2154754eep.35.2012.11.03.15.02.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 15:02:55 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.42 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.83.42; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.83.42 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-ee0-f42.google.com with SMTP id l10so2576855eei.29 for ; Sat, 03 Nov 2012 15:02:54 -0700 (PDT) Received: by 10.14.205.3 with SMTP id i3mr20506108eeo.18.1351980174805; Sat, 03 Nov 2012 15:02:54 -0700 (PDT) Received: from localhost.localdomain (88.Red-2-139-206.staticIP.rima-tde.net. [2.139.206.88]) by mx.google.com with ESMTPS id d44sm34844369eeo.10.2012.11.03.15.02.53 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 15:02:54 -0700 (PDT) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: Lee Jones , Rusty Russell , virtualization@lists.linux-foundation.org Subject: [PATCH 6/9] =?UTF-8?q?virtio=5Fmmio:=20Cast=20&resources[1].start=20?= =?UTF-8?q?to=20=E2=80=98unsigned=20int=20*=E2=80=99=20to=20rid=20compiler=20?= =?UTF-8?q?warning?= Date: Sat, 3 Nov 2012 23:02:27 +0100 Message-Id: <1351980150-24145-7-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351980150-24145-1-git-send-email-lee.jones@linaro.org> References: <1351980150-24145-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkmPzA/O2B7sZ6na6p7+ii9WxYY5hRX2z9gXWN1dQ2oDvSyFHvUgPmcLp6QJiMyNMFp5+JV drivers/virtio/virtio_mmio.c: In function ‘vm_cmdline_set’: drivers/virtio/virtio_mmio.c:535:4: warning: format ‘%u’ expects argument of type ‘unsigned int *’, but argument 4 has type ‘resource_size_t *’ [-Wformat] Cc: Rusty Russell Cc: virtualization@lists.linux-foundation.org Signed-off-by: Lee Jones --- drivers/virtio/virtio_mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 6b1b7e1..077e9ca 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c @@ -531,7 +531,7 @@ static int vm_cmdline_set(const char *device, resources[0].end = memparse(device, &str) - 1; processed = sscanf(str, "@%lli:%u%n:%d%n", - &base, &resources[1].start, &consumed, + &base, (unsigned int *)&resources[1].start, &consumed, &vm_cmdline_id, &consumed); if (processed < 2 || processed > 3 || str[consumed])