From nobody Mon Feb 9 23:39:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620729732; cv=none; d=zohomail.com; s=zohoarc; b=GYzc4NW5sLg40d8y4HMecvthZMSviQ3fTPUWUYx4fF0xly58ltwLOFJndvBpvn03ueObqOljD9GwgQhboaGulYPyP8jjrHs4PYSkHlhPP8+PmV9xOy9qgtmrwDyse3hUPTxZc2JMcQjCtVZR3CH5B4VOPokXC3V6HI/9sVMAZQQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620729732; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=X1iTG1yjolMhBDy0+VNZDVcooHD0ZAJOzdWx2SUtTQk=; b=E1aEcp6L7SV6CRs7l40lULEapGALNSmBHKScoYCY00z5v+r7rYIp4aNcQdih8+tZeognjRdhXtHOqO6FRFdBRpmmqRNAr3v50LfLbkB9CogkUbaYJLMs8d3gQ62YXwW/5m52cMaUmpG2mc2tRxplT+gtMuSMc4V2bn/PZZA0uFM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1620729732179611.5712825812851; Tue, 11 May 2021 03:42:12 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-235-JZjkZ41dN7ewi8MqiAyVUQ-1; Tue, 11 May 2021 06:42:09 -0400 Received: by mail-wr1-f71.google.com with SMTP id a12-20020a5d6cac0000b0290109c3c8d66fso8597408wra.15 for ; Tue, 11 May 2021 03:42:09 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id r18sm1394695wmp.0.2021.05.11.03.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 03:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620729731; 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=X1iTG1yjolMhBDy0+VNZDVcooHD0ZAJOzdWx2SUtTQk=; b=ZWoieGlmTX+RXh/At+wVfZmG3Bei5S3RPVAF6wI+JhHAgfmV5IycksLpw6alVmIHJ4cyCL Jl12y6Ocyx7Jm8FNsfWDJPPy1GuZv9zxzbxUopJqPnKOm70X66FQvUdaxJV/76Ij6uji8e MwGGHcvlpeUcSHSmx2LdN9u61SXsIRI= X-MC-Unique: JZjkZ41dN7ewi8MqiAyVUQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X1iTG1yjolMhBDy0+VNZDVcooHD0ZAJOzdWx2SUtTQk=; b=A66vjwBrXLilMGWyr3fwLGRL0rGgQnEVTX4XqJIecsnVlR3ZOQ0nkzrkPC1HnJUVdz jRy/XlAFObA3rI5PFRCBuhWwB0T3bYILZ3n6+2OTeIFexFAhy2N56SmxNqCXH7538Q0F ncQt0VLhewuvqQRv8AOpdS8CKbgIMK3yutQBh/w1hZ6+ZHPk0xSAj7Jr3xCZu0wb1EaN 8/Uu7lgkAP9VZA+fNTREV15MBevu+IjBCW5V18fpQ8c5tV9L+QEq9tAcpRkKC/37AXNr dNd9jHPgyHoAHX1GIdQQndRF3/dRABwbJKW+2C3dfr/sxqnaoXacixBJcydPVMbuybsp rqLg== X-Gm-Message-State: AOAM531OCoUpW+Y5gm65hw3cijofGSYWhyG+WIXLy/WbyS1YN73LH+wX gLHKSU09DwaEt+LQWzgFQ4VTZowHtr4ENDeF3QmYoePg7VZiwZJngzyyg7P/G7KOsaCQBY5RCo9 Bw4XLVhiC+w2aKw== X-Received: by 2002:adf:e510:: with SMTP id j16mr37794824wrm.28.1620729728334; Tue, 11 May 2021 03:42:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv5XBBZ0qMOazznFfZigWz5hluW3ryczVSzJckCIkkWIplwaxlHe9vrbqbQHM2e8YxGory/A== X-Received: by 2002:adf:e510:: with SMTP id j16mr37794809wrm.28.1620729728226; Tue, 11 May 2021 03:42:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , qemu-block@nongnu.org, Max Reitz , Kevin Wolf , Stefan Hajnoczi , Jason Wang , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/3] virtio-blk: Constify VirtIOFeature feature_sizes[] Date: Tue, 11 May 2021 12:41:56 +0200 Message-Id: <20210511104157.2880306-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210511104157.2880306-1-philmd@redhat.com> References: <20210511104157.2880306-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Jason Wang --- hw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index d28979efb8d..f139cd7cc9c 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -40,7 +40,7 @@ * Starting from the discard feature, we can use this array to properly * set the config size depending on the features enabled. */ -static VirtIOFeature feature_sizes[] =3D { +static const VirtIOFeature feature_sizes[] =3D { {.flags =3D 1ULL << VIRTIO_BLK_F_DISCARD, .end =3D endof(struct virtio_blk_config, discard_sector_alignment)}, {.flags =3D 1ULL << VIRTIO_BLK_F_WRITE_ZEROES, --=20 2.26.3