From nobody Mon Feb 9 16:12:57 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=1620729736; cv=none; d=zohomail.com; s=zohoarc; b=Uc88k4rsx6Ch84hJfOIyMNX/2zORewh+OduVMZCuucLgr7kOUaghNsvQH5gCscGQnzfS2nK99iTP2XWf4dLFRFIb0i6mqimTQWKABiLAsVlkIERu4MByqJ5uejLcKUHblXpIE9yjj89Ej/S9YWsBCGCPztPM885C9AnYtHsRxMM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620729736; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=BVG2n9XotM2KhddIex7o7vuIKhUEP78KP392Bahm1XY=; b=eI49rfS35V33W8yU5kGvzsk+oITbrUQd8SC/EML0bI7COLVoaLt5GyYYd9mkdSCK4Iu26yoJL11Poubhev64EYzzb+kdq7m0yrbDv7Z3o9mhkpkYXNtkfhzY3QeuWsBC0Qc8ApDUyhB8lEbRrAS/wZwORRUPrVQCeMzHrlcwhBk= 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 1620729736974727.1369377822729; Tue, 11 May 2021 03:42:16 -0700 (PDT) Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-367-l4VC_NRSPDa8_fEGg_wkQA-1; Tue, 11 May 2021 06:42:14 -0400 Received: by mail-wm1-f71.google.com with SMTP id d199-20020a1c1dd00000b02901492c14476eso571842wmd.2 for ; Tue, 11 May 2021 03:42:13 -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 v15sm3101362wmj.39.2021.05.11.03.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 03:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620729736; 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=BVG2n9XotM2KhddIex7o7vuIKhUEP78KP392Bahm1XY=; b=iSmfybPyLOuyVKLVBzYCph/M6uPpNXX56QXm/ZABAH6q2ZFFrbRoVUoaK45kh0o3VNDm4C aHH9ybg/vnlQ7qByfHX0zoasZtlNJCHQd8X/gd54mmSpcPCg90k0YQX7EJ99UtmBEbDoxv Tsx6GpU0XScxGGYxr18rG9PWcGOhBDI= X-MC-Unique: l4VC_NRSPDa8_fEGg_wkQA-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=BVG2n9XotM2KhddIex7o7vuIKhUEP78KP392Bahm1XY=; b=mgc17sbwUKKxtsYwELZX+x8OZ6TWwg5XopLdCvyKC3QkLSAIOvfrm3bM/Vk8oP7rSU iaztLTvk43NVqxyhnE9R6gt6j4SZ8OML0Gycp3lpUoQFb0JA9TcuCxfoCduqiPQ7ASv8 vajOfhqM2UGGuP3gAvBu3d9ObzXT/ewC6/yDfKH2tAQWOdHBb0H743dhxTHIeB1GDqwL 1v6LDeNLChIy8p/Hc4qE4dYDGwTAEcIlVl+QbmveRhF6mRsMEYRQ0GLNwZwdVhCTdiqp sakb0MCoPQTndEMMtO1CdW/7K3LWGUey2uzCspm6cIJc6XHjZaUUUrjn0D1GVny7niuJ /6tA== X-Gm-Message-State: AOAM533glwEIiZFUvDmT+/8o2Re6sNN1GQrujrPBUho3+ILjyzi3glaz m+E7I5/3Yr6mAi3lq/1nIxlJQh1V8uUp5g/W87gQK19ro1Wq84W3gppU2Xd7318Sya842GnEQU6 2qPzDEFxcihmX5g== X-Received: by 2002:a5d:4d0b:: with SMTP id z11mr37706209wrt.164.1620729732678; Tue, 11 May 2021 03:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqXkOs+visRNo76+/+kYzrI/MSr5X+AGkyAdK8wmYBSilwONUYlx/BMa7vx3Q39/CT9fGfPg== X-Received: by 2002:a5d:4d0b:: with SMTP id z11mr37706196wrt.164.1620729732569; Tue, 11 May 2021 03:42:12 -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 3/3] virtio-net: Constify VirtIOFeature feature_sizes[] Date: Tue, 11 May 2021 12:41:57 +0200 Message-Id: <20210511104157.2880306-4-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/net/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 66b9ff45118..6b7e8dd04ef 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -89,7 +89,7 @@ VIRTIO_NET_RSS_HASH_TYPE_TCP_EX |= \ VIRTIO_NET_RSS_HASH_TYPE_UDP_EX) =20 -static VirtIOFeature feature_sizes[] =3D { +static const VirtIOFeature feature_sizes[] =3D { {.flags =3D 1ULL << VIRTIO_NET_F_MAC, .end =3D endof(struct virtio_net_config, mac)}, {.flags =3D 1ULL << VIRTIO_NET_F_STATUS, --=20 2.26.3