浏览代码

backends: 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: 1454089805-5470-5-git-send-email-peter.maydell@linaro.org
Peter Maydell 9 年之前
父节点
当前提交
9c058332f3
共有 10 个文件被更改,包括 10 次插入1 次删除
  1. 1 0
      backends/baum.c
  2. 1 0
      backends/hostmem-file.c
  3. 1 0
      backends/hostmem-ram.c
  4. 1 0
      backends/hostmem.c
  5. 1 1
      backends/msmouse.c
  6. 1 0
      backends/rng-egd.c
  7. 1 0
      backends/rng-random.c
  8. 1 0
      backends/rng.c
  9. 1 0
      backends/testdev.c
  10. 1 0
      backends/tpm.c

+ 1 - 0
backends/baum.c

@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "sysemu/char.h"
 #include "sysemu/char.h"
 #include "qemu/timer.h"
 #include "qemu/timer.h"

+ 1 - 0
backends/hostmem-file.c

@@ -9,6 +9,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * 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 "sysemu/hostmem.h"
 #include "sysemu/hostmem.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"

+ 1 - 0
backends/hostmem-ram.c

@@ -9,6 +9,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "sysemu/hostmem.h"
 #include "sysemu/hostmem.h"
 #include "qom/object_interfaces.h"
 #include "qom/object_interfaces.h"
 
 

+ 1 - 0
backends/hostmem.c

@@ -9,6 +9,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "sysemu/hostmem.h"
 #include "sysemu/hostmem.h"
 #include "hw/boards.h"
 #include "hw/boards.h"
 #include "qapi/visitor.h"
 #include "qapi/visitor.h"

+ 1 - 1
backends/msmouse.c

@@ -21,7 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
-#include <stdlib.h>
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "sysemu/char.h"
 #include "sysemu/char.h"
 #include "ui/console.h"
 #include "ui/console.h"

+ 1 - 0
backends/rng-egd.c

@@ -10,6 +10,7 @@
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "sysemu/rng.h"
 #include "sysemu/rng.h"
 #include "sysemu/char.h"
 #include "sysemu/char.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qerror.h"

+ 1 - 0
backends/rng-random.c

@@ -10,6 +10,7 @@
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "sysemu/rng-random.h"
 #include "sysemu/rng-random.h"
 #include "sysemu/rng.h"
 #include "sysemu/rng.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qerror.h"

+ 1 - 0
backends/rng.c

@@ -10,6 +10,7 @@
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "sysemu/rng.h"
 #include "sysemu/rng.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qerror.h"
 #include "qom/object_interfaces.h"
 #include "qom/object_interfaces.h"

+ 1 - 0
backends/testdev.c

@@ -23,6 +23,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "sysemu/char.h"
 #include "sysemu/char.h"
 
 

+ 1 - 0
backends/tpm.c

@@ -12,6 +12,7 @@
  * Based on backends/rng.c by Anthony Liguori
  * Based on backends/rng.c by Anthony Liguori
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "sysemu/tpm_backend.h"
 #include "sysemu/tpm_backend.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qerror.h"
 #include "sysemu/tpm.h"
 #include "sysemu/tpm.h"