]> git.proxmox.com Git - mirror_qemu.git/commitdiff
i386: Add missing include file for QEMU_PACKED
authorStefan Weil <sw@weilnetz.de>
Fri, 31 Jan 2014 22:05:24 +0000 (23:05 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 1 Feb 2014 09:43:52 +0000 (13:43 +0400)
Instead of packing BiosLinkerLoaderEntry, an unused global variable called
QEMU_PACKED was created (detected by smatch static code analysis).

Including qemu-common.h gets the right definition and also includes some
standard include files which now can be removed here.

Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/bios-linker-loader.c

index fd236110084d040523adcc5a4bdc498e01d1ce7c..aa56184e9a65ce7e9fb9b19ee334ea2ed77160b1 100644 (file)
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu-common.h"
 #include "bios-linker-loader.h"
 #include "hw/nvram/fw_cfg.h"
 
-#include <string.h>
-#include <assert.h>
 #include "qemu/bswap.h"
 
 #define BIOS_LINKER_LOADER_FILESZ FW_CFG_MAX_FILE_PATH