@@ -177,7 +177,6 @@ static int shmem_parser(const struct option *opt, const char *arg, int unset)
const uint64_t default_phys_addr = SHMEM_DEFAULT_ADDR;
const char *default_handle = SHMEM_DEFAULT_HANDLE;
struct shmem_info *si = malloc(sizeof(struct shmem_info));
- enum { PCI, UNK } addr_type = PCI;
uint64_t phys_addr;
uint64_t size;
char *handle = NULL;
@@ -193,7 +192,6 @@ static int shmem_parser(const struct option *opt, const char *arg, int unset)
/* parse out optional addr family */
if (strcasestr(p, "pci:")) {
p += skip_pci;
- addr_type = PCI;
} else if (strcasestr(p, "mem:")) {
die("I can't add to E820 map yet.\n");
}
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net> Cc: Sasha Levin <levinsasha928@gmail.com> Cc: Pekka Enberg <penberg@kernel.org> --- tools/kvm/builtin-run.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)