qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Make some structure static


From: Michael Tokarev
Subject: Re: [PATCH] Make some structure static
Date: Fri, 1 Mar 2024 23:47:15 +0300
User-agent: Mozilla Thunderbird

01.03.2024 21:56, Frediano Ziglio wrote:
Not used outside C module.

Please add a sensible subject prefix, like "hw/vfio/pci.c: ".

With that,

Revieved-by: Michael Tokarev <mjt@tls.msk.ru>

This is a good candidate for trivial-patches@ too (Cc'd).

/mjt

Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com>
---
  hw/vfio/pci.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 4fa387f043..a1522a011a 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2558,7 +2558,7 @@ static bool vfio_display_migration_needed(void *opaque)
          (vdev->ramfb_migrate == ON_OFF_AUTO_AUTO && vdev->enable_ramfb);
  }

-const VMStateDescription vmstate_vfio_display = {
+static const VMStateDescription vmstate_vfio_display = {
      .name = "VFIOPCIDevice/VFIODisplay",
      .version_id = 1,
      .minimum_version_id = 1,
@@ -2570,7 +2570,7 @@ const VMStateDescription vmstate_vfio_display = {
      }
  };

-const VMStateDescription vmstate_vfio_pci_config = {
+static const VMStateDescription vmstate_vfio_pci_config = {
      .name = "VFIOPCIDevice",
      .version_id = 1,
      .minimum_version_id = 1,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]