]> git.proxmox.com Git - mirror_qemu.git/commit
vl: Add missing "hw/boards.h" include
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 28 Feb 2020 11:46:32 +0000 (12:46 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 9 Mar 2020 14:59:31 +0000 (15:59 +0100)
commitfe48442fd6bb57614049ad08d2cf3fcf7a2e46bb
treea157eca8c8bb4dcf7c454d4be3877258fd662dee
parentb8ccfadc1f95b73766bf1ff33ea3549e37bd7c92
vl: Add missing "hw/boards.h" include

vl.c calls machine_usb() declared in "hw/boards.h". Include it.

This fixes (when modifying unrelated headers):

  vl.c:1283:10: error: implicit declaration of function 'machine_usb' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      if (!machine_usb(current_machine)) {
           ^
  vl.c:1283:10: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
  vl.c:1283:22: error: use of undeclared identifier 'current_machine'
      if (!machine_usb(current_machine)) {
                       ^

Acked-by: John Snow <jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200228114649.12818-2-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
softmmu/vl.c