diff --git a/hw/display/vga.c b/hw/display/vga.c
index ffcfce38a4b60370d270d54abb58beef75766880..9c62fbf48823078fc32bbd5a11b6aa177ee28eaf 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -2032,7 +2032,7 @@ static bool vga_endian_state_needed(void *opaque)
     return s->default_endian_fb != s->big_endian_fb;
 }
 
-const VMStateDescription vmstate_vga_endian = {
+static const VMStateDescription vmstate_vga_endian = {
     .name = "vga.endian",
     .version_id = 1,
     .minimum_version_id = 1,