Skip to content

Commit

Permalink
lm32: 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>
Message-id: 1453832250-766-5-git-send-email-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Jan 29, 2016
1 parent 7b31bbc commit ea99dde
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion disas/lm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include <stdio.h>
#include "qemu/osdep.h"
#include "disas/bfd.h"

typedef enum {
Expand Down
1 change: 1 addition & 0 deletions hw/char/lm32_juart.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/lm32_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*/


#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/char/milkymist-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* http://www.milkymist.org/socdoc/uart.pdf
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/display/milkymist-tmu2.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/display/milkymist-vgafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* http://www.milkymist.org/socdoc/vgafb.pdf
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/input/milkymist-softusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* not available yet
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/intc/lm32_pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

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

#include "hw/hw.h"
#include "hw/i386/pc.h"
Expand Down
1 change: 1 addition & 0 deletions hw/lm32/lm32_boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/hw.h"
#include "hw/block/flash.h"
Expand Down
1 change: 1 addition & 0 deletions hw/lm32/milkymist.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/hw.h"
#include "hw/block/flash.h"
Expand Down
1 change: 1 addition & 0 deletions hw/misc/milkymist-hpdmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* http://www.milkymist.org/socdoc/hpdmc.pdf
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/misc/milkymist-pfpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/net/milkymist-minimac2.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/sd/milkymist-memcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* http://www.milkymist.org/socdoc/memcard.pdf
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 1 addition & 0 deletions hw/timer/lm32_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* http://www.latticesemi.com/documents/mico32timer.pdf
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "trace.h"
Expand Down
1 change: 1 addition & 0 deletions hw/timer/milkymist-sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* http://www.milkymist.org/socdoc/sysctl.pdf
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 1 addition & 0 deletions target-lm32/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* <http://www.gnu.org/licenses/lgpl-2.1.html>
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu-common.h"

Expand Down
2 changes: 1 addition & 1 deletion target-lm32/gdbstub.c
Original file line number Diff line number Diff line change
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"
#include "hw/lm32/lm32_pic.h"
Expand Down
1 change: 1 addition & 0 deletions target-lm32/helper.c
Original file line number Diff line number Diff line change
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 "qemu/host-utils.h"
#include "sysemu/sysemu.h"
Expand Down
5 changes: 1 addition & 4 deletions target-lm32/lm32-semi.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
* See the COPYING file in the top-level directory.
*/

#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <stddef.h>
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "qemu/log.h"
Expand Down
1 change: 1 addition & 0 deletions target-lm32/machine.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/boards.h"

Expand Down
2 changes: 1 addition & 1 deletion target-lm32/op_helper.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <assert.h>
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "qemu/host-utils.h"
Expand Down
1 change: 1 addition & 0 deletions target-lm32/translate.c
Original file line number Diff line number Diff line change
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 "disas/disas.h"
#include "exec/helper-proto.h"
Expand Down

0 comments on commit ea99dde

Please sign in to comment.