Message ID | 1552117698-12355-10-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TZjS7GrA"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44GcH22YWVz9s3q for <incoming@patchwork.ozlabs.org>; Sat, 9 Mar 2019 19:00:14 +1100 (AEDT) Received: from localhost ([127.0.0.1]:55394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1h2Wtw-0004QF-8a for incoming@patchwork.ozlabs.org; Sat, 09 Mar 2019 03:00:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1h2Wih-0003tB-5y for qemu-devel@nongnu.org; Sat, 09 Mar 2019 02:48:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1h2Wig-0000Wo-DT for qemu-devel@nongnu.org; Sat, 09 Mar 2019 02:48:35 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:38723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1h2Wig-0000R1-3Y for qemu-devel@nongnu.org; Sat, 09 Mar 2019 02:48:34 -0500 Received: by mail-wr1-x442.google.com with SMTP id g12so23639139wrm.5 for <qemu-devel@nongnu.org>; Fri, 08 Mar 2019 23:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jeq1Z775uJWBwJh4Co74sW+KjrQOpq+rUqMR7K7W0yk=; b=TZjS7GrA95hWoaKp+aISkMCYLErMZmGx6OVfqsE6MlSuzxSnVfzs6JwBareu058uYD VGVGexfEZL/NVAx3281F6C6FC1E+Y8xKEWUyv6T9GCRXzyJPhUZ6mX0amnlQfwdPSvmc O603YMvhFxcNruoPfjQDoaGi9DckkmKJA91sht66i9oyHjMD+2GdegIP+syKYzfueDqW U7K51Z7KSFK5lsW9LI8O8xtrkJhCML7cVnHA6pyf9edE+pZLUdtLrEytZ222gdlG/Wfe KBYf5A1QqrlbgMUEohXXFfxJo4g9K3L3xvLL+hTg0eNBGEfitMBacHF0LcyH/8Bu0f4g +xng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=jeq1Z775uJWBwJh4Co74sW+KjrQOpq+rUqMR7K7W0yk=; b=uZM1DfYM+49jIvrZwFWAgyrVkhpCKL8TA/iT6rEVxO5KZrDDo9/LeRC7FMDfmiIcb9 hGjY0W5gbInFVZeLcHLbeMzj5klCnZXug4j39SHl05RYuPQagkNOhLCq1VfFUbilfGr9 9mlgvTPAbmYr1bVbYyuS0dY/astVvY2Akc5bLfghOESabMatfpS3jpFn4bNA6Q2ZISDU 20txXh+flSe/x/v7t38lSERM2R3a/xvIrgV/uOjsIWxCc/1LXeIdYBgluLlVWpNXWdZz paDilSdFXUYORwrelicQSMtddHm5ePlcTWp47rzf8IaCrk5YMWXLqT0NyRIOMwZoB/Aq TORw== X-Gm-Message-State: APjAAAUfeDgp85Njytn8/l+xotIAm0mim229XGfrkeIlZKylUn8EE0w1 AAfLwrfUwjDOkNdcDXMy+gW5eEQd X-Google-Smtp-Source: APXvYqx8ZjfNTd75wD1FjPZVu8+Txw7CdbnbDXix6Aat8gEi0+gEQapLQSj12ZdN+v5MHjAi+xQoYw== X-Received: by 2002:adf:edd1:: with SMTP id v17mr13748948wro.300.1552117707866; Fri, 08 Mar 2019 23:48:27 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id 11sm5252294wmg.27.2019.03.08.23.48.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 23:48:27 -0800 (PST) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Sat, 9 Mar 2019 08:48:02 +0100 Message-Id: <1552117698-12355-10-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1552117698-12355-1-git-send-email-pbonzini@redhat.com> References: <1552117698-12355-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 Subject: [Qemu-devel] [PULL 09/25] virtio-scsi: Fix build with gcc 9 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Greg Kurz <groug@kaod.org> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
None
|
expand
|
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index ce99d28..839f120 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -262,7 +262,13 @@ static int virtio_scsi_do_tmf(VirtIOSCSI *s, VirtIOSCSIReq *req) /* Here VIRTIO_SCSI_S_OK means "FUNCTION COMPLETE". */ req->resp.tmf.response = VIRTIO_SCSI_S_OK; - virtio_tswap32s(VIRTIO_DEVICE(s), &req->req.tmf.subtype); + /* + * req->req.tmf has the QEMU_PACKED attribute. Don't use virtio_tswap32s() + * to avoid compiler errors. + */ + req->req.tmf.subtype = + virtio_tswap32(VIRTIO_DEVICE(s), req->req.tmf.subtype); + switch (req->req.tmf.subtype) { case VIRTIO_SCSI_T_TMF_ABORT_TASK: case VIRTIO_SCSI_T_TMF_QUERY_TASK: