Skip to contentSkip to conversation

mips: Clean up includes

PATCH Applied Peter Maydell 2 participants 2 messages Jan 18, 2016 – Jan 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: 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.

---
 disas/mips.c             | 1 +
 hw/mips/addr.c           | 1 +
 hw/mips/cputimer.c       | 1 +
 hw/mips/gt64xxx_pci.c    | 1 +
 hw/mips/mips_fulong2e.c  | 1 +
 hw/mips/mips_int.c       | 1 +
 hw/mips/mips_jazz.c      | 1 +
 hw/mips/mips_malta.c     | 1 +
 hw/mips/mips_mipssim.c   | 1 +
 hw/mips/mips_r4k.c       | 1 +
 target-mips/cpu.c        | 1 +
 target-mips/dsp_helper.c | 1 +
 target-mips/gdbstub.c    | 2 +-
 target-mips/helper.c     | 6 +-----
 target-mips/kvm.c        | 2 +-
 target-mips/lmi_helper.c | 1 +
 target-mips/machine.c    | 1 +
 target-mips/mips-semi.c  | 2 +-
 target-mips/msa_helper.c | 1 +
 target-mips/op_helper.c  | 2 +-
 target-mips/translate.c  | 1 +
 21 files changed, 21 insertions(+), 9 deletions(-)
disas/mips.c +1 -0
index bf0bbaf..0e488d8 100644
@@ -19,6 +19,7 @@ GNU General Public License for more details.
 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 "disas/bfd.h"
 
 /* mips.h.  Mips opcode list for GDB, the GNU debugger.
hw/mips/addr.c +1 -0
index ff3b952..e4e86b4 100644
@@ -20,6 +20,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/mips/cpudevs.h"
 
hw/mips/cputimer.c +1 -0
index f046588..efb227d 100644
@@ -20,6 +20,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/mips/cpudevs.h"
 #include "qemu/timer.h"
hw/mips/gt64xxx_pci.c +1 -0
index c1f3c9c..3f4523d 100644
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/mips/mips.h"
 #include "hw/pci/pci.h"
hw/mips/mips_fulong2e.c +1 -0
index 5988a88..6748d89 100644
@@ -18,6 +18,7 @@
  * http://www.loongsondeveloper.com/doc/Loongson2EUserGuide.pdf
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/char/serial.h"
hw/mips/mips_int.c +1 -0
index d740046..59081f9 100644
@@ -20,6 +20,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/mips/cpudevs.h"
 #include "cpu.h"
hw/mips/mips_jazz.c +1 -0
index 1cfbaa6..62527fd 100644
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/mips/mips.h"
 #include "hw/mips/cpudevs.h"
hw/mips/mips_malta.c +1 -0
index 91c36ba..c5da83f 100644
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/char/serial.h"
hw/mips/mips_mipssim.c +1 -0
index 23b35be..8951ae9 100644
@@ -24,6 +24,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/mips/mips.h"
 #include "hw/mips/cpudevs.h"
hw/mips/mips_r4k.c +1 -0
index 2d4e038..b6625ae 100644
@@ -7,6 +7,7 @@
  * All peripherial devices are attached to this "bus" with
  * the standard PC ISA addresses.
 */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/mips/mips.h"
 #include "hw/mips/cpudevs.h"
target-mips/cpu.c +1 -0
index 639a24b..0b3f130 100644
@@ -18,6 +18,7 @@
  * <http://www.gnu.org/licenses/lgpl-2.1.html>
  */
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "kvm_mips.h"
 #include "qemu-common.h"
target-mips/dsp_helper.c +1 -0
index 46528de..df7d220 100644
@@ -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/helper-proto.h"
 #include "qemu/bitops.h"
target-mips/gdbstub.c +1 -1
index 9845d88..b0b4a32 100644
@@ -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"
 
target-mips/helper.c +1 -5
index 118072a..f9c4c11 100644
@@ -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 "sysemu/kvm.h"
target-mips/kvm.c +1 -1
index 12d7db3..fb5ce1f 100644
@@ -9,7 +9,7 @@
  * Authors: Sanjay Lal <[email protected]>
 */
 
-#include <sys/types.h>
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
target-mips/lmi_helper.c +1 -0
index bbfcd59..fb1245b 100644
@@ -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/helper-proto.h"
 
target-mips/machine.c +1 -0
index b15c43a..737f3c2 100644
@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 
 #include "cpu.h"
target-mips/mips-semi.c +1 -1
index 5050940..ed235de 100644
@@ -17,7 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/stat.h>
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/softmmu-semi.h"
target-mips/msa_helper.c +1 -0
index 5dd3da6..49a9ed5 100644
@@ -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/helper-proto.h"
 
target-mips/op_helper.c +1 -1
index d2c98c9..217d669 100644
@@ -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 <stdlib.h>
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "qemu/host-utils.h"
 #include "exec/helper-proto.h"
target-mips/translate.c +1 -0
index 5626647..d403c89 100644
@@ -21,6 +21,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 "tcg-op.h"
Signature · 1 line
1.9.1
Applied
#1 lore raw
Quoted 21 lines · Peter Maydell

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.

---
 disas/mips.c             | 1 +
 hw/mips/addr.c           | 1 +
 hw/mips/cputimer.c       | 1 +
 hw/mips/gt64xxx_pci.c    | 1 +
 hw/mips/mips_fulong2e.c  | 1 +
 hw/mips/mips_int.c       | 1 +
 hw/mips/mips_jazz.c      | 1 +
 hw/mips/mips_malta.c     | 1 +
 hw/mips/mips_mipssim.c   | 1 +
 hw/mips/mips_r4k.c       | 1 +
 target-mips/cpu.c        | 1 +
 target-mips/dsp_helper.c | 1 +
 target-mips/gdbstub.c    | 2 +-
 target-mips/helper.c     | 6 +-----
Quoted 8 lines
 target-mips/kvm.c        | 2 +-
 target-mips/lmi_helper.c | 1 +
 target-mips/machine.c    | 1 +
 target-mips/mips-semi.c  | 2 +-
 target-mips/msa_helper.c | 1 +
 target-mips/op_helper.c  | 2 +-
 target-mips/translate.c  | 1 +
 21 files changed, 21 insertions(+), 9 deletions(-)

Applied to target-mips tree, thanks.

Regards,
Leon