DM: cleanup for header inclusions

used https://gitlab.com/esr/deheader to detect and remove unnecessary
header file inclusions

Signed-off-by: Zide Chen <zide.chen@intel.com>
This commit is contained in:
Zide Chen
2018-05-31 08:57:51 -07:00
committed by lijinxia
parent a9ee6da0d9
commit df4ab92e81
48 changed files with 2 additions and 225 deletions

View File

@@ -27,18 +27,10 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <inttypes.h>

View File

@@ -26,9 +26,6 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <ctype.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
@@ -38,10 +35,8 @@
#include <assert.h>
#include <stdbool.h>
#include "vmm.h"
#include "vmmapi.h"
#include "acpi.h"
#include "dm.h"
#include "inout.h"
#include "ioapic.h"
#include "mem.h"

View File

@@ -5,22 +5,13 @@
*
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <openssl/md5.h>
#include "dm.h"
#include "pci_core.h"

View File

@@ -26,8 +26,6 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <pthread.h>
#include "pci_core.h"
static int

View File

@@ -26,8 +26,6 @@
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <assert.h>
#include <pthread.h>
#include <stdbool.h>
@@ -36,11 +34,8 @@
#include "types.h"
#include "acpi.h"
#include "vmm.h"
#include "vmmapi.h"
#include "inout.h"
#include "pci_core.h"
#include "irq.h"
#include "lpc.h"
/*

View File

@@ -27,14 +27,11 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "vmm.h"
#include "vmmapi.h"
#include "acpi.h"
#include "inout.h"

View File

@@ -26,9 +26,6 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/user.h>
@@ -38,22 +35,14 @@
#include <string.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <sysexits.h>
#include <unistd.h>
#include <pthread.h>
#include <pciaccess.h>
#include "pcireg.h"
#include "iodev.h"
#include "vmm.h"
#include "vmmapi.h"
#include "vhm_ioctl_defs.h"
#include "pciio.h"
#include "pci_core.h"
#include "mem.h"
#include "acpi.h"
#include "dm.h"
#ifndef _PATH_DEVPCI
#define _PATH_DEVPCI "/dev/pci"

View File

@@ -26,11 +26,8 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdio.h>
#include "dm.h"
#include "pci_core.h"
#include "uart_core.h"

View File

@@ -24,11 +24,8 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/uio.h>
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <pthread.h>

View File

@@ -26,19 +26,11 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <openssl/md5.h>

View File

@@ -28,13 +28,8 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
@@ -44,8 +39,6 @@
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <libgen.h>
#include <sysexits.h>
#include <termios.h>
#include "dm.h"

View File

@@ -8,8 +8,6 @@
* HECI device virtualization.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <linux/mei.h>
#include <errno.h>

View File

@@ -5,10 +5,7 @@
*
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/types.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>

View File

@@ -26,35 +26,25 @@
* $FreeBSD$
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/select.h>
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <net/ethernet.h>
#ifndef NETMAP_WITH_LIBS
#define NETMAP_WITH_LIBS
#endif
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <assert.h>
#include <openssl/md5.h>
#include <pthread.h>
#include <sysexits.h>
#include "types.h"
#include "dm.h"
#include "pci_core.h"
#include "mevent.h"
#include "virtio.h"
#include "netmap_user.h"
#include <net/if.h>
#include <linux/if_tun.h>
#define VIRTIO_NET_RINGSZ 1024

View File

@@ -31,10 +31,6 @@
* once it has been seeded at bootup.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/uio.h>
#include <err.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@@ -42,7 +38,6 @@
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <sysexits.h>
#include "dm.h"
#include "pci_core.h"

View File

@@ -35,11 +35,6 @@
*
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/uio.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@@ -47,7 +42,6 @@
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <sysexits.h>
#include "dm.h"
#include "pci_core.h"
@@ -55,7 +49,6 @@
#include "vmmapi.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include "rpmb.h"
#include "rpmb_sim.h"
#include "rpmb_backend.h"

View File

@@ -18,7 +18,6 @@
#include <assert.h>
#include <stdbool.h>
#include "vmm.h"
#include "vmmapi.h"
#include "mevent.h"
#include "pci_core.h"

7
devicemodel/hw/pci/xhci.c Executable file → Normal file
View File

@@ -76,15 +76,9 @@
* +--------+ +--------+
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
@@ -96,7 +90,6 @@
#include "dm.h"
#include "pci_core.h"
#include "xhci.h"
#include "usb_core.h"
#include "usb_pmapper.h"
#undef LOG_TAG