qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qapi: drop the sentinel in enum array

Now that all usages have been converted to user lookup helpers.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170822132255.23945-14-marcandre.lureau@redhat.com>
[Rebased, superfluous local variable dropped, missing
check-qom-proplist.c update added]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1503564371-26090-17-git-send-email-armbru@redhat.com>

authored by

Marc-André Lureau and committed by
Markus Armbruster
ebf677c8 f7abe0ec

+1 -5
-1
block/parallels.c
··· 72 72 .array = (const char *const[]) { 73 73 "falloc", 74 74 "truncate", 75 - NULL, 76 75 }, 77 76 .size = PRL_PREALLOC_MODE__MAX 78 77 };
+1 -3
scripts/qapi.py
··· 1860 1860 ''', 1861 1861 index=index, value=value) 1862 1862 1863 - max_index = c_enum_const(name, '_MAX', prefix) 1864 1863 ret += mcgen(''' 1865 - [%(max_index)s] = NULL, 1866 1864 }, 1867 1865 .size = %(max_index)s 1868 1866 }; 1869 1867 ''', 1870 - max_index=max_index) 1868 + max_index=c_enum_const(name, '_MAX', prefix)) 1871 1869 return ret 1872 1870 1873 1871
-1
tests/check-qom-proplist.c
··· 51 51 [DUMMY_FROG] = "frog", 52 52 [DUMMY_ALLIGATOR] = "alligator", 53 53 [DUMMY_PLATYPUS] = "platypus", 54 - [DUMMY_LAST] = NULL, 55 54 }, 56 55 .size = DUMMY_LAST 57 56 };