@@ -9,9 +9,11 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
-#include <sys/ioctl.h>
#include "qemu/osdep.h"
+
+#include <sys/ioctl.h>
+
#include "qom/object_interfaces.h"
#include "qapi/error.h"
#include "sysemu/hostmem.h"
@@ -10,9 +10,10 @@
* later. See the COPYING file in the top-level directory.
*/
+#include "qemu/osdep.h"
+
#include <sys/eventfd.h>
-#include "qemu/osdep.h"
#include "qapi/error.h"
#include "block/export.h"
#include "qemu/error-report.h"
@@ -17,6 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu/osdep.h"
+
#include "qemu.h"
/*
@@ -16,6 +16,9 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+
+#include "qemu/osdep.h"
+
#include "target_arch.h"
void target_cpu_set_tls(CPUARMState *env, target_ulong newtls)
similarity index 100%
rename from bsd-user/elfcore.c
rename to bsd-user/elfcore.c.inc
@@ -121,7 +121,7 @@ static void bswap_note(struct elf_note *en) { }
#endif /* ! BSWAP_NEEDED */
-#include "elfcore.c"
+#include "elfcore.c.inc"
/*
* 'copy_elf_strings()' copies argument/envelope strings from user
@@ -17,6 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu/osdep.h"
+
#include "qemu.h"
#include "target_arch_sysarch.h"
@@ -17,6 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu/osdep.h"
+
#include "qemu.h"
/*
@@ -17,9 +17,10 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu/osdep.h"
+
#include <sys/types.h>
-#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu.h"
#include "qemu/timer.h"
@@ -18,12 +18,13 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu/osdep.h"
+
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/sysctl.h>
-#include "qemu/osdep.h"
#include "qemu/help-texts.h"
#include "qemu/units.h"
#include "qemu/accel.h"
@@ -17,7 +17,6 @@
#ifndef QEMU_H
#define QEMU_H
-#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu/units.h"
#include "exec/cpu_ldst.h"
@@ -16,6 +16,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu/osdep.h"
+
#include "qemu.h"
/*
@@ -17,9 +17,10 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu/osdep.h"
+
#include <sys/types.h>
-#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu.h"
#include "qemu/timer.h"
@@ -19,6 +19,7 @@
*
*/
+#include "qemu/osdep.h"
#include "rsakey.h"
void qcrypto_akcipher_rsakey_free(QCryptoAkCipherRSAKey *rsa_key)
@@ -5,8 +5,8 @@
* See the COPYING file in the top-level directory.
*/
-#include "qemu/ctype.h"
#include "qemu/osdep.h"
+#include "qemu/ctype.h"
#include "qemu/error-report.h"
#include "qemu/main-loop.h"
#include "qemu/sockets.h"
@@ -2,6 +2,8 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
+
+#include "qemu/osdep.h"
#include "cutils.h"
#include "qapi/error.h"
similarity index 100%
rename from ui/vnc-enc-hextile-template.h
rename to ui/vnc-enc-hextile-template.c.inc
@@ -34,12 +34,12 @@ static void hextile_enc_cord(uint8_t *ptr, int x, int y, int w, int h)
}
#define BPP 32
-#include "vnc-enc-hextile-template.h"
+#include "vnc-enc-hextile-template.c.inc"
#undef BPP
#define GENERIC
#define BPP 32
-#include "vnc-enc-hextile-template.h"
+#include "vnc-enc-hextile-template.c.inc"
#undef BPP
#undef GENERIC
@@ -66,7 +66,7 @@ static void ZRLE_ENCODE_TILE(VncState *vs, ZRLE_PIXEL *data, int w, int h,
int zywrle_level);
#if ZRLE_BPP != 8
-#include "vnc-enc-zywrle-template.c"
+#include "vnc-enc-zywrle-template.c.inc"
#endif
similarity index 100%
rename from ui/vnc-enc-zywrle-template.c
rename to ui/vnc-enc-zywrle-template.c.inc
@@ -10,6 +10,8 @@
* later. See the COPYING file in the top-level directory.
*/
+#include "qemu/osdep.h"
+
#ifdef CONFIG_LINUX
#include <linux/mman.h>
#else /* !CONFIG_LINUX */
@@ -17,7 +19,6 @@
#define MAP_SHARED_VALIDATE 0x0
#endif /* CONFIG_LINUX */
-#include "qemu/osdep.h"
#include "qemu/mmap-alloc.h"
#include "qemu/host-utils.h"
#include "qemu/cutils.h"
A few files relied on qemu/osdep.h being included via a common header. Others didn't need it because they were actually an included file, so ought to have been named '.c.inc'. Finally some didn't have it as the first header included. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- backends/hostmem-epc.c | 4 +++- block/export/vduse-blk.c | 3 ++- bsd-user/arm/signal.c | 2 ++ bsd-user/arm/target_arch_cpu.c | 3 +++ bsd-user/{elfcore.c => elfcore.c.inc} | 0 bsd-user/elfload.c | 2 +- bsd-user/freebsd/os-sys.c | 2 ++ bsd-user/i386/signal.c | 2 ++ bsd-user/i386/target_arch_cpu.c | 3 ++- bsd-user/main.c | 3 ++- bsd-user/qemu.h | 1 - bsd-user/x86_64/signal.c | 2 ++ bsd-user/x86_64/target_arch_cpu.c | 3 ++- crypto/rsakey.c | 1 + hw/hyperv/syndbg.c | 2 +- qga/cutils.c | 2 ++ ...-enc-hextile-template.h => vnc-enc-hextile-template.c.inc} | 0 ui/vnc-enc-hextile.c | 4 ++-- ui/vnc-enc-zrle.c.inc | 2 +- ...nc-enc-zywrle-template.c => vnc-enc-zywrle-template.c.inc} | 0 util/mmap-alloc.c | 3 ++- 21 files changed, 32 insertions(+), 12 deletions(-) rename bsd-user/{elfcore.c => elfcore.c.inc} (100%) rename ui/{vnc-enc-hextile-template.h => vnc-enc-hextile-template.c.inc} (100%) rename ui/{vnc-enc-zywrle-template.c => vnc-enc-zywrle-template.c.inc} (100%)