Skip to content

Commit

Permalink
Include qemu-common.h exactly where needed
Browse files Browse the repository at this point in the history
No header includes qemu-common.h after this commit, as prescribed by
qemu-common.h's file comment.

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <[email protected]>
[Rebased with conflicts resolved automatically, except for
include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c
block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c
target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h
target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h
target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h
target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and
net/tap-bsd.c fixed up]
  • Loading branch information
Markus Armbruster committed Jun 12, 2019
1 parent 0b8fa32 commit a8d2532
Show file tree
Hide file tree
Showing 485 changed files with 103 additions and 397 deletions.
1 change: 0 additions & 1 deletion accel/kvm/kvm-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <linux/kvm.h>

#include "qemu-common.h"
#include "qemu/atomic.h"
#include "qemu/option.h"
#include "qemu/config-file.h"
Expand Down
1 change: 0 additions & 1 deletion accel/stubs/hax-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/

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

Expand Down
1 change: 0 additions & 1 deletion accel/stubs/hvf-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/

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

Expand Down
1 change: 0 additions & 1 deletion accel/stubs/kvm-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

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

Expand Down
1 change: 0 additions & 1 deletion accel/stubs/whpx-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/

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

Expand Down
2 changes: 2 additions & 0 deletions accel/tcg/cpu-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
* 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 "qemu-common.h"
#include "cpu.h"
#include "trace.h"
#include "disas/disas.h"
Expand Down
1 change: 1 addition & 0 deletions accel/tcg/translate-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

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

#define NO_CPU_IO_DEFS
#include "cpu.h"
Expand Down
1 change: 0 additions & 1 deletion accel/tcg/translator.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/error-report.h"
#include "cpu.h"
#include "tcg/tcg.h"
Expand Down
1 change: 0 additions & 1 deletion accel/tcg/user-exec-stub.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qom/cpu.h"
#include "sysemu/replay.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 0 additions & 1 deletion arch_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "cpu.h"
#include "sysemu/sysemu.h"
#include "sysemu/arch_init.h"
Expand Down
1 change: 0 additions & 1 deletion audio/audio_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "qemu/osdep.h"
#include "audio.h"
#include "audio_int.h"
#include "qemu-common.h"
#include "qemu/cutils.h"
#include "qemu/timer.h"
#include "qapi/error.h"
Expand Down
1 change: 0 additions & 1 deletion audio/audio_pt_int.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "audio.h"

#define AUDIO_CAP "audio-pt"
Expand Down
1 change: 0 additions & 1 deletion audio/mixeng.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
#include "audio.h"
Expand Down
1 change: 0 additions & 1 deletion balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/atomic.h"
#include "exec/cpu-common.h"
#include "sysemu/kvm.h"
Expand Down
1 change: 0 additions & 1 deletion block/bochs.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "block/block_int.h"
#include "qemu/module.h"
#include "qemu/bswap.h"
Expand Down
1 change: 0 additions & 1 deletion block/cloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qemu-common.h"
#include "block/block_int.h"
#include "qemu/module.h"
#include "qemu/bswap.h"
Expand Down
1 change: 0 additions & 1 deletion block/dirty-bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "trace.h"
#include "block/block_int.h"
#include "block/blockjob.h"
Expand Down
1 change: 0 additions & 1 deletion block/dmg-bz2.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "dmg.h"
#include <bzlib.h>

Expand Down
1 change: 0 additions & 1 deletion block/dmg.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "block/block_int.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
Expand Down
1 change: 0 additions & 1 deletion block/dmg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#ifndef BLOCK_DMG_H
#define BLOCK_DMG_H

#include "qemu-common.h"
#include "block/block_int.h"
#include <zlib.h>

Expand Down
1 change: 1 addition & 0 deletions block/file-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"
#include "qemu/cutils.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions block/iscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <poll.h>
#include <math.h>
#include <arpa/inet.h>
#include "qemu-common.h"
#include "qemu/config-file.h"
#include "qemu/error-report.h"
#include "qemu/bitops.h"
Expand Down
1 change: 0 additions & 1 deletion block/linux-aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "block/aio.h"
#include "qemu/queue.h"
#include "block/block.h"
Expand Down
1 change: 0 additions & 1 deletion block/nbd-client.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef NBD_CLIENT_H
#define NBD_CLIENT_H

#include "qemu-common.h"
#include "block/nbd.h"
#include "block/block_int.h"
#include "io/channel-socket.h"
Expand Down
1 change: 1 addition & 0 deletions block/qapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "block/qapi.h"
#include "block/block_int.h"
#include "block/throttle-groups.h"
Expand Down
1 change: 0 additions & 1 deletion block/qcow2-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qcow2.h"
#include "trace.h"

Expand Down
1 change: 0 additions & 1 deletion block/qcow2-cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <zlib.h>

#include "qapi/error.h"
#include "qemu-common.h"
#include "qcow2.h"
#include "qemu/bswap.h"
#include "trace.h"
Expand Down
1 change: 0 additions & 1 deletion block/qcow2-refcount.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "qcow2.h"
#include "qemu/range.h"
#include "qemu/bswap.h"
Expand Down
1 change: 1 addition & 0 deletions block/sheepdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"
#include "qapi/qapi-visit-sockets.h"
#include "qapi/qapi-visit-block-core.h"
Expand Down
1 change: 0 additions & 1 deletion block/vhdx-endian.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "block/block_int.h"
#include "qemu/bswap.h"
#include "vhdx.h"
Expand Down
1 change: 0 additions & 1 deletion blockjob.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "block/block.h"
#include "block/blockjob_int.h"
#include "block/block_int.h"
Expand Down
1 change: 1 addition & 0 deletions bsd-user/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/units.h"
#include "sysemu/tcg.h"
#include "qemu-version.h"
Expand Down
1 change: 0 additions & 1 deletion bt-vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/bt.h"
#include "hw/bt.h"
#include "qemu/main-loop.h"
Expand Down
1 change: 1 addition & 0 deletions chardev/char-fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/module.h"
#include "qemu/sockets.h"
#include "qapi/error.h"
Expand Down
1 change: 1 addition & 0 deletions chardev/char-pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"
#include "qemu/module.h"
#include "qemu/option.h"
Expand Down
1 change: 1 addition & 0 deletions chardev/char-pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"
#include "chardev/char.h"
#include "io/channel-file.h"
Expand Down
1 change: 0 additions & 1 deletion contrib/ivshmem-client/ivshmem-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <sys/socket.h>
#include <sys/un.h>

#include "qemu-common.h"
#include "qemu/queue.h"

#include "ivshmem-client.h"
Expand Down
1 change: 0 additions & 1 deletion contrib/ivshmem-client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

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

#include "ivshmem-client.h"

Expand Down
1 change: 0 additions & 1 deletion contrib/ivshmem-server/ivshmem-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* top-level directory.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/host-utils.h"
#include "qemu/sockets.h"

Expand Down
1 change: 1 addition & 0 deletions cpus.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/config-file.h"
#include "cpu.h"
#include "monitor/monitor.h"
Expand Down
1 change: 0 additions & 1 deletion crypto/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "crypto/aes.h"

typedef uint32_t u32;
Expand Down
1 change: 0 additions & 1 deletion disas.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* General "disassemble this chunk" code. Used for debugging. */
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "disas/dis-asm.h"
#include "elf.h"
#include "qemu/qemu-print.h"
Expand Down
1 change: 0 additions & 1 deletion disas/cris.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
along with this program; if not, see <http://www.gnu.org/licenses/>. */

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "disas/dis-asm.h"
#include "target/cris/opcode-cris.h"

Expand Down
1 change: 0 additions & 1 deletion disas/i386.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@
#define MAX_REG_NAME_SIZE 8

/* opcodes/i386-dis.c r1.126 */
#include "qemu-common.h"

static int fetch_data2(struct disassemble_info *, bfd_byte *);
static int fetch_data(struct disassemble_info *, bfd_byte *);
Expand Down
1 change: 0 additions & 1 deletion disas/s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
02110-1301, USA. */

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "disas/dis-asm.h"

/* include/opcode/s390.h revision 1.9 */
Expand Down
1 change: 1 addition & 0 deletions dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/cutils.h"
#include "elf.h"
#include "cpu.h"
Expand Down
1 change: 1 addition & 0 deletions exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"

#include "qemu/cutils.h"
Expand Down
1 change: 1 addition & 0 deletions gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qemu/ctype.h"
Expand Down
1 change: 0 additions & 1 deletion hmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#ifndef HMP_H
#define HMP_H

#include "qemu-common.h"
#include "qemu/readline.h"

void hmp_info_name(Monitor *mon, const QDict *qdict);
Expand Down
1 change: 1 addition & 0 deletions hw/9pfs/9p-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "qemu/osdep.h"
#include <sys/socket.h>
#include <sys/un.h>
#include "qemu-common.h"
#include "9p.h"
#include "qapi/error.h"
#include "qemu/cutils.h"
Expand Down
Loading

0 comments on commit a8d2532

Please sign in to comment.