Skip to content

Commit

Permalink
Remove unused bcm_host.h includes, and some other unused includes. An…
Browse files Browse the repository at this point in the history
…notate some includes with the symbols they come from
  • Loading branch information
juj committed Nov 20, 2018
1 parent 73f8e4f commit edcdad7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 41 deletions.
17 changes: 6 additions & 11 deletions dma.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#ifndef KERNEL_MODULE
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <inttypes.h>
#include <syslog.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <bcm_host.h>
#include <stdio.h> // fprintf, stderr
#include <stdlib.h> // exit
#include <memory.h> // memset, memcpy
#include <inttypes.h> // uint32_t
#include <syslog.h> // syslog
#include <sys/mman.h> // mmap, munmap, PROT_READ, PROT_WRITE
#endif

#include "config.h"
Expand Down
12 changes: 6 additions & 6 deletions gpu.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <bcm_host.h>
#include <bcm_host.h> // bcm_host_init, bcm_host_deinit

#include <linux/futex.h>
#include <sys/syscall.h>
#include <syslog.h>
#include <stdio.h>
#include <math.h>
#include <linux/futex.h> // FUTEX_WAKE
#include <sys/syscall.h> // SYS_futex
#include <syslog.h> // syslog, LOG_ERR
#include <stdio.h> // fprintf
#include <math.h> // floor

#include "config.h"
#include "gpu.h"
Expand Down
17 changes: 4 additions & 13 deletions keyboard.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
#include <linux/input.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <pthread.h>
#include <errno.h>
#include <bcm_host.h>
#include <linux/input.h> // input_event
#include <fcntl.h> // O_RDONLY, O_NONBLOCK
#include <stdio.h> // printf
#include <stdint.h> // uint64_t

#include "config.h"
#include "keyboard.h"
Expand Down
17 changes: 6 additions & 11 deletions spi.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#ifndef KERNEL_MODULE
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <pthread.h>
#include <errno.h>
#include <bcm_host.h>
#include <stdio.h> // printf, stderr
#include <syslog.h> // syslog
#include <fcntl.h> // open, O_RDWR, O_SYNC
#include <sys/mman.h> // mmap, munmap
#include <pthread.h> // pthread_create
#include <bcm_host.h> // bcm_host_get_peripheral_address, bcm_host_get_peripheral_size, bcm_host_get_sdram_address
#endif

#include "config.h"
Expand Down

0 comments on commit edcdad7

Please sign in to comment.