]> git.proxmox.com Git - mirror_qemu.git/commitdiff
riscv: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Jan 2024 16:34:07 +0000 (16:34 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 30 Jan 2024 18:20:20 +0000 (21:20 +0300)
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes --git riscv target/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 <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/riscv/vector_internals.c
target/riscv/vector_internals.h

index 9cf5c17cdeacad77952935a99d9e2021f813047e..12f5964fbbe1cda46241234f02eea268919cb182 100644 (file)
@@ -16,6 +16,7 @@
  * this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "vector_internals.h"
 
 /* set agnostic elements to 1s */
index 8133111e5f69bd1592a786ed7cddea2f6d8a6493..842765f6c16580503af64a3a2e6ceb0553f1ac03 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef TARGET_RISCV_VECTOR_INTERNALS_H
 #define TARGET_RISCV_VECTOR_INTERNALS_H
 
-#include "qemu/osdep.h"
 #include "qemu/bitops.h"
 #include "cpu.h"
 #include "tcg/tcg-gvec-desc.h"