From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72C7CC43470 for ; Tue, 11 May 2021 10:52:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E8E7B611ED for ; Tue, 11 May 2021 10:52:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8E7B611ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgQ06-0007rc-TS for qemu-devel@archiver.kernel.org; Tue, 11 May 2021 06:52:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgPq2-0005h4-V5 for qemu-devel@nongnu.org; Tue, 11 May 2021 06:42:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:43023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgPpz-00029X-T5 for qemu-devel@nongnu.org; Tue, 11 May 2021 06:42:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620729722; 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; bh=j7d1rDqCAA8qsauHkv0gSWnRoeiYJXBL904ZNG6nFw4=; b=XXXwgcWl8W3hMGh4l4GAJE30qrM9ymhrGB+ReFt3PUjGsvjDUwkHjwGb0v5APMFBYjH/FQ GvvlokwowOkLlOcHqVsmDhlj2zFqMjAq9J1saSm36c1di5TecVuZaVVX8WpfeAFhYlWO3K +eibUoHp0QW8nqo0kUdCONQ8hq3yo4E= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-312-AAPzoR7fMGOKKqPjTZy2Ag-1; Tue, 11 May 2021 06:42:01 -0400 X-MC-Unique: AAPzoR7fMGOKKqPjTZy2Ag-1 Received: by mail-wr1-f70.google.com with SMTP id j33-20020adf91240000b029010e4009d2ffso6115897wrj.0 for ; Tue, 11 May 2021 03:42:00 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=xlbWfCBF6vgyaOmQZsaQ9/Pu05E9+2cb/6mazZenWLw=; b=lYDClSz2QW1Gu/uLQWSDQeQp5HkSFAnd1903TWE1MymTHnjbTNpzSMFs8W9Axl+xuV 2Okj5c/Q78uuYpvqn5DHRjg7hm+92uu5sLSSve9w+IGbD2kTVWzW/78/h4AYI7dKAy3f ZfZVVCgzxshGPkCW2TTIprDT5yBBHGVbVsPGMoN3aKHp0HKOcPScu4uZNIqLpenxvPnt /rj8bh1sstfqhoBD4JYvIWq52psMjmysct3Fp8cxxaD04Yg1qveUJJvmxqMiMrt+MDqc ySnnk9u3ySBfXzRN1YRha7fo/ulou6mJ5G+eZiX08rh3wr6/mPIZWnGfoYwJ/I/MuCM8 ud+A== X-Gm-Message-State: AOAM533R/koUIWxx+c2Uelnt+ArxEm9H1iLIJsDd99WpimQrkZm7GayL 6lYjgJh7J4nDCmG35FbTgtzgm7Hhab5QkCChZgKiJvpXt8ki1ZvQROLT+zzw5/FwFA8wqEeMqFh /Zw+O10opAk8HKo0Nz9/mFYI0ttaJBb5B/9cHOdfQ7/p/SDiNuZa0kfKAy0b4p5Dy X-Received: by 2002:a7b:cc83:: with SMTP id p3mr4775944wma.24.1620729719531; Tue, 11 May 2021 03:41:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCyErJiTg41DmdKwoAWDvCZL8zC81AHLAksjWGgU15W7MXq0ie5JAVqWzuF+KCA/O2XzOrdw== X-Received: by 2002:a7b:cc83:: with SMTP id p3mr4775913wma.24.1620729719288; Tue, 11 May 2021 03:41:59 -0700 (PDT) Received: from localhost.localdomain (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id f18sm2954194wmg.26.2021.05.11.03.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 03:41:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/3] hw/virtio: Constify VirtIOFeature Date: Tue, 11 May 2021 12:41:54 +0200 Message-Id: <20210511104157.2880306-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.3 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 Received-SPF: pass client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.698, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-block@nongnu.org, "Michael S. Tsirkin" , qemu-trivial@nongnu.org, Jason Wang , Max Reitz , Stefan Hajnoczi , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Trivial patches to keep VirtIOFeature arrays read-only=0D (better safe than sorry).=0D =0D Philippe Mathieu-Daud=C3=A9 (3):=0D hw/virtio: Pass virtio_feature_get_config_size() a const argument=0D virtio-blk: Constify VirtIOFeature feature_sizes[]=0D virtio-net: Constify VirtIOFeature feature_sizes[]=0D =0D include/hw/virtio/virtio.h | 2 +-=0D hw/block/virtio-blk.c | 2 +-=0D hw/net/virtio-net.c | 2 +-=0D hw/virtio/virtio.c | 2 +-=0D 4 files changed, 4 insertions(+), 4 deletions(-)=0D =0D --=20=0D 2.26.3=0D =0D