Skip to content

Commit df4ab92

Browse files
ZideChen0lijinxia
authored andcommitted
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>
1 parent a9ee6da commit df4ab92

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2
-225
lines changed

devicemodel/arch/x86/pm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@
2525
* SUCH DAMAGE.
2626
*/
2727

28-
#include <sys/cdefs.h>
29-
#include <sys/types.h>
3028
#include <assert.h>
3129
#include <errno.h>
3230
#include <pthread.h>
3331
#include <signal.h>
3432
#include <stdbool.h>
3533

3634
#include "vmmapi.h"
37-
#include "vmm.h"
3835
#include "acpi.h"
3936
#include "inout.h"
4037
#include "mevent.h"

devicemodel/core/console.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
* SUCH DAMAGE.
2525
*/
2626

27-
#include <stdio.h>
28-
#include <sys/cdefs.h>
29-
#include <sys/types.h>
3027

28+
#include <stdio.h>
3129
#include "gc.h"
3230
#include "console.h"
3331

devicemodel/core/consport.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@
2626
* $FreeBSD$
2727
*/
2828

29-
#include <sys/cdefs.h>
30-
#include <sys/types.h>
31-
#include <sys/select.h>
32-
#include <err.h>
3329
#include <stdio.h>
3430
#include <stdlib.h>
3531
#include <termios.h>
3632
#include <unistd.h>
3733
#include <stdbool.h>
38-
#include <sysexits.h>
3934

4035
#include "inout.h"
4136
#include "lpc.h"

devicemodel/core/gc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include <sys/cdefs.h>
2-
#include <sys/types.h>
31
#include <stdlib.h>
42
#include <stdio.h>
53
#include <string.h>

devicemodel/core/hugetlb.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,9 @@
3434
#include <sys/mount.h>
3535
#include <sys/stat.h>
3636
#include <sys/types.h>
37-
#include <ctype.h>
3837
#include <fcntl.h>
3938
#include <errno.h>
40-
#include <assert.h>
4139

42-
#include "vmm.h"
43-
#include "vhm_ioctl_defs.h"
4440
#include "vmmapi.h"
4541

4642
#define HUGETLB_LV1 0

devicemodel/core/inout.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@
2626
* $FreeBSD$
2727
*/
2828

29-
#include <sys/cdefs.h>
30-
#include <sys/param.h>
31-
#include <sys/mman.h>
32-
#include <linux/uio.h>
3329
#include <stdio.h>
34-
#include <stdbool.h>
3530
#include <string.h>
3631
#include <assert.h>
3732

38-
#include "vmm.h"
39-
#include "vmmapi.h"
40-
#include "dm.h"
4133
#include "inout.h"
4234

4335
SET_DECLARE(inout_port_set, struct inout_port);

devicemodel/core/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
* $FreeBSD$
2727
*/
2828

29-
#include <sys/cdefs.h>
30-
#include <sys/types.h>
31-
#include <sys/mman.h>
32-
#include <sys/time.h>
3329
#include <stdio.h>
3430
#include <stdlib.h>
3531
#include <string.h>
@@ -43,8 +39,6 @@
4339
#include <stdbool.h>
4440
#include <getopt.h>
4541

46-
#include "types.h"
47-
#include "vmm.h"
4842
#include "vmmapi.h"
4943
#include "sw_load.h"
5044
#include "cpuset.h"

devicemodel/core/mem.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@
3232
* so it can be searched within the range.
3333
*/
3434

35-
#include <sys/cdefs.h>
3635
#include <errno.h>
3736
#include <stdio.h>
3837
#include <stdlib.h>
39-
#include <stdbool.h>
4038
#include <assert.h>
4139
#include <pthread.h>
4240

4341
#include "vmm.h"
44-
#include "types.h"
4542
#include "mem.h"
4643
#include "tree.h"
4744

devicemodel/core/mevent.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,17 @@
3131
* using EPOLL, and having events be persistent by default.
3232
*/
3333

34-
#include <sys/cdefs.h>
3534
#include <assert.h>
36-
#include <err.h>
3735
#include <errno.h>
3836
#include <stdlib.h>
3937
#include <stdio.h>
4038
#include <stdbool.h>
41-
#include <string.h>
42-
#include <sysexits.h>
4339
#include <unistd.h>
44-
#include <sys/types.h>
45-
#include <sys/time.h>
4640
#include <sys/epoll.h>
4741
#include <sys/queue.h>
4842
#include <pthread.h>
4943

5044
#include "mevent.h"
51-
#include "vmm.h"
5245
#include "vmmapi.h"
5346

5447
#define MEVENT_MAX 64

devicemodel/core/mptbl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@
2626
* $FreeBSD$
2727
*/
2828

29-
#include <sys/cdefs.h>
30-
#include <sys/types.h>
3129
#include <stdio.h>
3230
#include <string.h>
3331

3432
#include "types.h"
3533
#include "mptable.h"
3634
#include "acpi.h"
3735
#include "dm.h"
38-
#include "mptbl.h"
3936
#include "pci_core.h"
4037

4138
#define MPTABLE_BASE 0xF0000

0 commit comments

Comments
 (0)