Skip to content

Commit

Permalink
target-arm: Clean up includes
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1449505425-32022-3-git-send-email-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Jan 18, 2016
1 parent 8507170 commit 74c21bd
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 31 deletions.
8 changes: 1 addition & 7 deletions target-arm/arm-semi.c
Expand Up @@ -18,13 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "qemu/osdep.h"

#include "cpu.h"
#include "exec/semihost.h"
Expand Down
1 change: 1 addition & 0 deletions target-arm/cpu.c
Expand Up @@ -18,6 +18,7 @@
* <http://www.gnu.org/licenses/gpl-2.0.html>
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "internals.h"
#include "qemu-common.h"
Expand Down
1 change: 1 addition & 0 deletions target-arm/cpu64.c
Expand Up @@ -18,6 +18,7 @@
* <http://www.gnu.org/licenses/gpl-2.0.html>
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu-common.h"
#if !defined(CONFIG_USER_ONLY)
Expand Down
2 changes: 1 addition & 1 deletion target-arm/crypto_helper.c
Expand Up @@ -9,7 +9,7 @@
* version 2 of the License, or (at your option) any later version.
*/

#include <stdlib.h>
#include "qemu/osdep.h"

#include "cpu.h"
#include "exec/exec-all.h"
Expand Down
2 changes: 1 addition & 1 deletion target-arm/gdbstub.c
Expand Up @@ -17,7 +17,7 @@
* 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/>.
*/
#include "config.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "exec/gdbstub.h"

Expand Down
2 changes: 1 addition & 1 deletion target-arm/gdbstub64.c
Expand Up @@ -16,7 +16,7 @@
* 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/>.
*/
#include "config.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "exec/gdbstub.h"

Expand Down
1 change: 1 addition & 0 deletions target-arm/helper-a64.c
Expand Up @@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/gdbstub.h"
#include "exec/helper-proto.h"
Expand Down
1 change: 1 addition & 0 deletions target-arm/helper.c
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "cpu.h"
#include "internals.h"
#include "exec/gdbstub.h"
Expand Down
3 changes: 1 addition & 2 deletions target-arm/iwmmxt_helper.c
Expand Up @@ -19,8 +19,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include <stdlib.h>
#include <stdio.h>
#include "qemu/osdep.h"

#include "cpu.h"
#include "exec/exec-all.h"
Expand Down
1 change: 1 addition & 0 deletions target-arm/kvm-stub.c
Expand Up @@ -9,6 +9,7 @@
* See the COPYING file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "kvm_arm.h"

Expand Down
3 changes: 1 addition & 2 deletions target-arm/kvm.c
Expand Up @@ -8,8 +8,7 @@
*
*/

#include <stdio.h>
#include <sys/types.h>
#include "qemu/osdep.h"
#include <sys/ioctl.h>
#include <sys/mman.h>

Expand Down
3 changes: 1 addition & 2 deletions target-arm/kvm32.c
Expand Up @@ -8,8 +8,7 @@
*
*/

#include <stdio.h>
#include <sys/types.h>
#include "qemu/osdep.h"
#include <sys/ioctl.h>
#include <sys/mman.h>

Expand Down
4 changes: 1 addition & 3 deletions target-arm/kvm64.c
Expand Up @@ -9,16 +9,14 @@
*
*/

#include <stdio.h>
#include <sys/types.h>
#include "qemu/osdep.h"
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/ptrace.h>

#include <linux/elf.h>
#include <linux/kvm.h>

#include "config-host.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions target-arm/machine.c
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/boards.h"
#include "qemu/error-report.h"
Expand Down
3 changes: 1 addition & 2 deletions target-arm/neon_helper.c
Expand Up @@ -6,8 +6,7 @@
*
* This code is licensed under the GNU GPL v2.
*/
#include <stdlib.h>
#include <stdio.h>
#include "qemu/osdep.h"

#include "cpu.h"
#include "exec/exec-all.h"
Expand Down
1 change: 1 addition & 0 deletions target-arm/op_helper.c
Expand Up @@ -16,6 +16,7 @@
* 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/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "internals.h"
Expand Down
1 change: 1 addition & 0 deletions target-arm/psci.c
Expand Up @@ -15,6 +15,7 @@
* 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 <cpu.h>
#include <cpu-qom.h>
#include <exec/helper-proto.h>
Expand Down
6 changes: 1 addition & 5 deletions target-arm/translate-a64.c
Expand Up @@ -16,11 +16,7 @@
* 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/>.
*/
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "qemu/osdep.h"

#include "cpu.h"
#include "tcg-op.h"
Expand Down
6 changes: 1 addition & 5 deletions target-arm/translate.c
Expand Up @@ -18,11 +18,7 @@
* 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/>.
*/
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "qemu/osdep.h"

#include "cpu.h"
#include "internals.h"
Expand Down

0 comments on commit 74c21bd

Please sign in to comment.