Skip to content

Commit 3910de6

Browse files
pm215Michael Tokarev
authored andcommitted
disas/riscv: Clean up includes
This commit was created with scripts/clean-includes: ./scripts/clean-includes --git disas/riscv disas/riscv*[ch] All .c should include qemu/osdep.h first. The script performs three related cleanups: * Ensure .c files include qemu/osdep.h first. * Including it in a .h is redundant, since the .c already includes it. Drop such inclusions. * Likewise, including headers qemu/osdep.h includes is redundant. Drop these, too. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Zhao Liu <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
1 parent 05871c7 commit 3910de6

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

disas/riscv-xthead.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: GPL-2.0-or-later
55
*/
66

7+
#include "qemu/osdep.h"
78
#include "disas/riscv.h"
89
#include "disas/riscv-xthead.h"
910

disas/riscv-xventana.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: GPL-2.0-or-later
55
*/
66

7+
#include "qemu/osdep.h"
78
#include "disas/riscv.h"
89
#include "disas/riscv-xventana.h"
910

disas/riscv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#ifndef DISAS_RISCV_H
88
#define DISAS_RISCV_H
99

10-
#include "qemu/osdep.h"
1110
#include "target/riscv/cpu_cfg.h"
1211

1312
/* types */

0 commit comments

Comments
 (0)