From 4f7ec696f4b124364c1b145dbe835984edc4c887 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 17 Oct 2018 10:26:52 +0200 Subject: numa: Clean up error reporting in parse_numa() Calling error_report() in a function that takes an Error ** argument is suspicious. parse_numa() does that, and then fails without setting an error. Its caller main(), via qemu_opts_foreach(), is fine with it, but clean it up anyway. While there, give parse_numa() internal linkage. Cc: Eduardo Habkost Signed-off-by: Markus Armbruster Reviewed-by: Eduardo Habkost Message-Id: <20181017082702.5581-29-armbru@redhat.com> --- include/sysemu/numa.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/sysemu') diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h index 7a0ae75..21713b7 100644 --- a/include/sysemu/numa.h +++ b/include/sysemu/numa.h @@ -22,7 +22,6 @@ struct NumaNodeMem { }; extern NodeInfo numa_info[MAX_NODES]; -int parse_numa(void *opaque, QemuOpts *opts, Error **errp); void parse_numa_opts(MachineState *ms); void numa_complete_configuration(MachineState *ms); void query_numa_node_mem(NumaNodeMem node_mem[]); -- cgit v1.1