Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2362941pxa; Mon, 3 Aug 2020 14:26:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxWgHcRG7RWoe8MMNTFKdU6jxQcIpKofzyLYTJAGRFRiP8akxclN5m1dOJTN9cej0Y6/qm X-Received: by 2002:a17:906:6546:: with SMTP id u6mr5019441ejn.159.1596490010318; Mon, 03 Aug 2020 14:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596490010; cv=none; d=google.com; s=arc-20160816; b=euc1fFmz5AujnnLPiDLUMTjJcP1wLypheyrUv5Ey3XWGrtPFpZNcAxBKT0BZdAcCNE t9wk0WOST6tHtgC983ap7uDwROUFl9xAz+VrMGIZstezhkdEZl+uMh3EyV+JSqY/liL3 B8qqkbHWKJVFeHemmQlY7LWXll98Vuk1Dw+cN+9u+bx239jnJwKHPLbOZOwzJgke4nlz DhnqHDviraz4fD47trvSYPQYJqd4wvmEc4wtlUXCD8G8/VIBCPXXw/LCHfjiWXc5QIAG EVpv38eHC+UlOHAAGkwE8hPV7aLQx379uUJTjq4wiGvIqAfl3WqVzt3cL8wJqxj6i4De EgeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=Tk3Rs2qegFZypVO27BFx2r1W0ZQxCF8/+L4irxiO1hU=; b=yJSg47Qk0NblnR2jQFcYOwORJuLkuxtjVDen7xtfg+P2mHW9Vm+vuqUbrsF5RKGyjI is+Z7ieyTzJDgVu1/gujNBrQHZthzwxumpCoVkc1yigyiPBVg3wrHg/OxWIB+YAcrA3+ NiBZb5Uw6ahfPvmn83c3Unz8hs8VyAseNJOq5eEQ6fQFxyJHG7vvlfTThQLVb49fxvIm AP3HdSOVnFHR4dy98sEG5kauEA+1Z2FX3JoItW1Ys6yJQQQBQkBp+8+Qp2WyUECq106+ UqszF87MfR/HM4ZiXe+0GJi4/97ohj6len+5ydzB5HLyCQfyLjVU10ohjzkXzx+dG7AU rYKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R/E7offS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si11293604eja.208.2020.08.03.14.26.27; Mon, 03 Aug 2020 14:26:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R/E7offS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729052AbgHCVZu (ORCPT + 99 others); Mon, 3 Aug 2020 17:25:50 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:59923 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726398AbgHCVZt (ORCPT ); Mon, 3 Aug 2020 17:25:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596489948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Tk3Rs2qegFZypVO27BFx2r1W0ZQxCF8/+L4irxiO1hU=; b=R/E7offSZUakpKP8Bffqh/i48RnIpHafaePDEgIWphFhSTxgThy6eWGwtXsgUeMmm54nDI sEpBmy8mE5zjOD3MOz7MrJW99OtojBzPb/ZD/Law6tjWQuzYOlYuCJPjNlcP9Z/ldiXPcH xEzJGpKARuMah55zayqGS2BlV8NbYak= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-24-7m6vDhoLPzWY1qLcugopFA-1; Mon, 03 Aug 2020 17:25:46 -0400 X-MC-Unique: 7m6vDhoLPzWY1qLcugopFA-1 Received: by mail-ed1-f69.google.com with SMTP id b23so11208665edj.14 for ; Mon, 03 Aug 2020 14:25:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=Tk3Rs2qegFZypVO27BFx2r1W0ZQxCF8/+L4irxiO1hU=; b=YeM54ZxwnnB+rIv/M3zh3oRkc3KKSuOQKeE2fVotigvJMUG+XBptiC6Jq9NyOQm7mD Dnlk3/9hAx/QeHUyOSc9z3j2PLgITV3PWVGo3qY1fNLaHHEtiZzqrWgbTWPzOAOB9oyz BoKO4lBMbpGVPU5uWsZkx6lhDVdiidz2O3LxSSDSXKnpunJb8mHw3NtVBZL2f2NZ51VR uKxJ6gKLpXJ3Q58kZ4SaMPZ2Ms71xad2xyPR0Z5BFig4ApfIJKcx3EuPVJ2PBhp9I+KQ DbYwJZyaPVfOZccBzoKdUw9xoY77AmCqVDwK6O7lvsUNShiL6bw1xvIdJpwTqiXKyWvp HG+g== X-Gm-Message-State: AOAM530sZovFwg/GydQmuy1m6viLRVWLFz1htgdeao8wJntVLbJt5hKZ GlOGiQA0e1wV9ZOoCrqCssEIQXZvI3frsuyfw4TQdUG7KlIbl6/XzywhVTTOTqHOMKAYD8WCehS S1Z35ipLLO9At0o3UGuVYyi2N X-Received: by 2002:a05:6402:1c88:: with SMTP id cy8mr17907694edb.24.1596489945577; Mon, 03 Aug 2020 14:25:45 -0700 (PDT) X-Received: by 2002:a05:6402:1c88:: with SMTP id cy8mr17907686edb.24.1596489945433; Mon, 03 Aug 2020 14:25:45 -0700 (PDT) Received: from [192.168.3.122] (p5b0c6449.dip0.t-ipconnect.de. [91.12.100.73]) by smtp.gmail.com with ESMTPSA id i5sm3342356edt.52.2020.08.03.14.25.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Aug 2020 14:25:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Hildenbrand Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2 01/24] virtio_balloon: fix sparse warning Date: Mon, 3 Aug 2020 23:25:44 +0200 Message-Id: References: <20200803205814.540410-2-mst@redhat.com> Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Jason Wang , David Hildenbrand In-Reply-To: <20200803205814.540410-2-mst@redhat.com> To: "Michael S. Tsirkin" X-Mailer: iPhone Mail (17F80) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 03.08.2020 um 22:58 schrieb Michael S. Tsirkin : >=20 > =EF=BB=BFballoon uses virtio32_to_cpu instead of cpu_to_virtio32 > to convert a native endian number to virtio. > No practical difference but makes sparse warn. > Fix it up. >=20 > Signed-off-by: Michael S. Tsirkin I think I acked this one already. Acked-by: David Hildenbrand > --- > drivers/virtio/virtio_balloon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_ballo= on.c > index 54fd989f9353..8bc1704ffdf3 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -600,7 +600,7 @@ static int send_cmd_id_start(struct virtio_balloon *vb= ) > while (virtqueue_get_buf(vq, &unused)) > ; >=20 > - vb->cmd_id_active =3D virtio32_to_cpu(vb->vdev, > + vb->cmd_id_active =3D cpu_to_virtio32(vb->vdev, > virtio_balloon_cmd_id_received(vb)); > sg_init_one(&sg, &vb->cmd_id_active, sizeof(vb->cmd_id_active)); > err =3D virtqueue_add_outbuf(vq, &sg, 1, &vb->cmd_id_active, GFP_KERNEL= ); > --=20 > MST >=20