提交 74c21bd0 编写于 作者: P Peter Maydell

target-arm: 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: NPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
Message-id: 1449505425-32022-3-git-send-email-peter.maydell@linaro.org
上级 85071702
...@@ -18,13 +18,7 @@ ...@@ -18,13 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <sys/types.h> #include "qemu/osdep.h"
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "cpu.h" #include "cpu.h"
#include "exec/semihost.h" #include "exec/semihost.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
* <http://www.gnu.org/licenses/gpl-2.0.html> * <http://www.gnu.org/licenses/gpl-2.0.html>
*/ */
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "internals.h" #include "internals.h"
#include "qemu-common.h" #include "qemu-common.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
* <http://www.gnu.org/licenses/gpl-2.0.html> * <http://www.gnu.org/licenses/gpl-2.0.html>
*/ */
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "qemu-common.h" #include "qemu-common.h"
#if !defined(CONFIG_USER_ONLY) #if !defined(CONFIG_USER_ONLY)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* version 2 of the License, or (at your option) any later version. * version 2 of the License, or (at your option) any later version.
*/ */
#include <stdlib.h> #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "config.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "config.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
......
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "internals.h" #include "internals.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
......
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdlib.h> #include "qemu/osdep.h"
#include <stdio.h>
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "kvm_arm.h" #include "kvm_arm.h"
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
* *
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
* *
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
......
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
* *
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/ptrace.h> #include <sys/ptrace.h>
...@@ -18,7 +17,6 @@ ...@@ -18,7 +17,6 @@
#include <linux/elf.h> #include <linux/elf.h>
#include <linux/kvm.h> #include <linux/kvm.h>
#include "config-host.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
......
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
* *
* This code is licensed under the GNU GPL v2. * This code is licensed under the GNU GPL v2.
*/ */
#include <stdlib.h> #include "qemu/osdep.h"
#include <stdio.h>
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "internals.h" #include "internals.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include <cpu.h> #include <cpu.h>
#include <cpu-qom.h> #include <cpu-qom.h>
#include <exec/helper-proto.h> #include <exec/helper-proto.h>
......
...@@ -16,11 +16,7 @@ ...@@ -16,11 +16,7 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdarg.h> #include "qemu/osdep.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "cpu.h" #include "cpu.h"
#include "tcg-op.h" #include "tcg-op.h"
......
...@@ -18,11 +18,7 @@ ...@@ -18,11 +18,7 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdarg.h> #include "qemu/osdep.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "cpu.h" #include "cpu.h"
#include "internals.h" #include "internals.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册