qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1453832250-766-10-git-send-email-peter.maydell@linaro.org

+20 -74
+1
linux-user/arm/nwfpe/double_cpdo.c
··· 18 18 along with this program; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 + #include "qemu/osdep.h" 21 22 #include "fpa11.h" 22 23 #include "fpu/softfloat.h" 23 24 #include "fpopcode.h"
+1
linux-user/arm/nwfpe/extended_cpdo.c
··· 18 18 along with this program; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 + #include "qemu/osdep.h" 21 22 #include "fpa11.h" 22 23 #include "fpu/softfloat.h" 23 24 #include "fpopcode.h"
+1 -1
linux-user/arm/nwfpe/fpa11.c
··· 18 18 along with this program; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 + #include "qemu/osdep.h" 21 22 #include "fpa11.h" 22 23 23 24 #include "fpopcode.h" ··· 27 28 28 29 //#include <asm/system.h> 29 30 30 - #include <stdio.h> 31 31 32 32 FPA11* qemufpa = NULL; 33 33 CPUARMState* user_registers;
+1
linux-user/arm/nwfpe/fpa11_cpdo.c
··· 18 18 along with this program; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 + #include "qemu/osdep.h" 21 22 #include "fpa11.h" 22 23 #include "fpopcode.h" 23 24
+1
linux-user/arm/nwfpe/fpa11_cpdt.c
··· 19 19 along with this program; if not, see <http://www.gnu.org/licenses/>. 20 20 */ 21 21 22 + #include "qemu/osdep.h" 22 23 #include "fpa11.h" 23 24 #include "fpu/softfloat.h" 24 25 #include "fpopcode.h"
+1
linux-user/arm/nwfpe/fpa11_cprt.c
··· 19 19 along with this program; if not, see <http://www.gnu.org/licenses/>. 20 20 */ 21 21 22 + #include "qemu/osdep.h" 22 23 #include "fpa11.h" 23 24 #include "fpu/softfloat.h" 24 25 #include "fpopcode.h"
+1
linux-user/arm/nwfpe/fpopcode.c
··· 18 18 along with this program; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 + #include "qemu/osdep.h" 21 22 #include "fpa11.h" 22 23 #include "fpu/softfloat.h" 23 24 #include "fpopcode.h"
+1
linux-user/arm/nwfpe/single_cpdo.c
··· 18 18 along with this program; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 + #include "qemu/osdep.h" 21 22 #include "fpa11.h" 22 23 #include "fpu/softfloat.h" 23 24 #include "fpopcode.h"
+1 -9
linux-user/elfload.c
··· 1 1 /* This is the Linux kernel elf-loading code, ported into user space */ 2 - #include <sys/time.h> 2 + #include "qemu/osdep.h" 3 3 #include <sys/param.h> 4 4 5 - #include <stdio.h> 6 - #include <sys/types.h> 7 - #include <fcntl.h> 8 - #include <errno.h> 9 - #include <unistd.h> 10 5 #include <sys/mman.h> 11 6 #include <sys/resource.h> 12 - #include <stdlib.h> 13 - #include <string.h> 14 - #include <time.h> 15 7 16 8 #include "qemu.h" 17 9 #include "disas/disas.h"
+1 -4
linux-user/flatload.c
··· 33 33 34 34 /****************************************************************************/ 35 35 36 - #include <stdio.h> 37 - #include <stdlib.h> 38 - #include <errno.h> 36 + #include "qemu/osdep.h" 39 37 #include <sys/mman.h> 40 - #include <unistd.h> 41 38 42 39 #include "qemu.h" 43 40 #include "flat.h"
+1 -7
linux-user/linuxload.c
··· 1 1 /* Code for loading Linux executables. Mostly linux kernel code. */ 2 2 3 - #include <sys/types.h> 4 - #include <sys/stat.h> 5 - #include <fcntl.h> 6 - #include <errno.h> 7 - #include <unistd.h> 8 - #include <stdio.h> 9 - #include <stdlib.h> 3 + #include "qemu/osdep.h" 10 4 11 5 #include "qemu.h" 12 6
+1 -8
linux-user/m68k-sim.c
··· 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include <sys/types.h> 21 - #include <sys/stat.h> 22 - #include <errno.h> 23 - #include <fcntl.h> 24 - #include <unistd.h> 25 - #include <stdlib.h> 26 - #include <stdio.h> 27 - #include <time.h> 20 + #include "qemu/osdep.h" 28 21 29 22 #include "qemu.h" 30 23
+1 -6
linux-user/main.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <stdarg.h> 22 - #include <string.h> 23 - #include <errno.h> 24 - #include <unistd.h> 19 + #include "qemu/osdep.h" 25 20 #include <sys/mman.h> 26 21 #include <sys/syscall.h> 27 22 #include <sys/resource.h>
+1 -8
linux-user/mmap.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <stdarg.h> 22 - #include <string.h> 23 - #include <unistd.h> 24 - #include <errno.h> 25 - #include <sys/types.h> 26 - #include <sys/stat.h> 19 + #include "qemu/osdep.h" 27 20 #include <sys/mman.h> 28 21 #include <linux/mman.h> 29 22 #include <linux/unistd.h>
+1 -6
linux-user/signal.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <string.h> 22 - #include <stdarg.h> 23 - #include <unistd.h> 24 - #include <errno.h> 19 + #include "qemu/osdep.h" 25 20 #include <sys/ucontext.h> 26 21 #include <sys/resource.h> 27 22
+1 -3
linux-user/strace.c
··· 1 - #include <stdio.h> 1 + #include "qemu/osdep.h" 2 2 #include <sys/ipc.h> 3 3 #include <sys/msg.h> 4 4 #include <sys/sem.h> 5 5 #include <sys/shm.h> 6 6 #include <sys/select.h> 7 - #include <sys/types.h> 8 7 #include <sys/mount.h> 9 8 #include <sys/mman.h> 10 - #include <unistd.h> 11 9 #include <sched.h> 12 10 #include "qemu.h" 13 11
+1 -13
linux-user/syscall.c
··· 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 #define _ATFILE_SOURCE 20 - #include <stdlib.h> 21 - #include <stdio.h> 22 - #include <stdarg.h> 23 - #include <string.h> 20 + #include "qemu/osdep.h" 24 21 #include <elf.h> 25 22 #include <endian.h> 26 - #include <errno.h> 27 - #include <unistd.h> 28 - #include <fcntl.h> 29 - #include <time.h> 30 - #include <limits.h> 31 23 #include <grp.h> 32 - #include <sys/types.h> 33 24 #include <sys/ipc.h> 34 25 #include <sys/msg.h> 35 26 #include <sys/wait.h> 36 - #include <sys/time.h> 37 - #include <sys/stat.h> 38 27 #include <sys/mount.h> 39 28 #include <sys/file.h> 40 29 #include <sys/fsuid.h> ··· 44 33 #include <sys/mman.h> 45 34 #include <sys/swap.h> 46 35 #include <linux/capability.h> 47 - #include <signal.h> 48 36 #include <sched.h> 49 37 #ifdef __ia64__ 50 38 int __clone2(int (*fn)(void *), void *child_stack_base,
+1 -2
linux-user/uaccess.c
··· 1 1 /* User memory access */ 2 - #include <stdio.h> 3 - #include <string.h> 2 + #include "qemu/osdep.h" 4 3 5 4 #include "qemu.h" 6 5
+1 -1
linux-user/uname.c
··· 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include <stdio.h> 20 + #include "qemu/osdep.h" 21 21 22 22 #include "qemu.h" 23 23 //#include "qemu-common.h"
+1 -6
linux-user/vm86.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <stdarg.h> 22 - #include <string.h> 23 - #include <errno.h> 24 - #include <unistd.h> 19 + #include "qemu/osdep.h" 25 20 26 21 #include "qemu.h" 27 22