Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused header files across multiple source files #2939

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion canutils/slcan/slcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <sys/socket.h>
#include <syslog.h>
#include <sys/uio.h>
#include <net/if.h>
#include <termios.h>
#include <nuttx/can.h>

Expand Down
1 change: 0 additions & 1 deletion examples/can/can_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <fcntl.h>
#include <errno.h>
#include <debug.h>
#include <unistd.h>

#include <nuttx/can/can.h>

Expand Down
1 change: 0 additions & 1 deletion examples/module/main/module_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <syslog.h>
#include <errno.h>
#include <debug.h>
Expand Down
3 changes: 0 additions & 3 deletions examples/nimble/nimble_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#include <unistd.h>
#include <sys/boardctl.h>
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>

#include "netutils/netinit.h"

Expand All @@ -51,7 +49,6 @@
#include "services/ias/ble_svc_ias.h"
#include "services/lls/ble_svc_lls.h"
#include "services/tps/ble_svc_tps.h"
#include "services/gap/ble_svc_gap.h"
#include "services/bas/ble_svc_bas.h"
#include "services/dis/ble_svc_dis.h"

Expand Down
1 change: 0 additions & 1 deletion examples/nrf24l01_btle/nrf24l01_btle.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <stdio.h>
#include <poll.h>
#include <fcntl.h>
#include <unistd.h>

#include "nrf24l01_btle.h"

Expand Down
2 changes: 0 additions & 2 deletions examples/relays/relays_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
#include <errno.h>
#include <debug.h>

#include <nuttx/arch.h>

#ifdef CONFIG_ARCH_RELAYS

/****************************************************************************
Expand Down
1 change: 0 additions & 1 deletion examples/rpmsgsocket/rpsock_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
Expand Down
2 changes: 0 additions & 2 deletions examples/usbserial/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
* Included Files
****************************************************************************/

#include <stdio.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
Expand Down Expand Up @@ -72,19 +70,19 @@

#ifndef CONFIG_EXAMPLES_USBSERIAL_ONLYSMALL
static const char g_longmsg[] =
"I am proud to come to this city as the guest of your distinguished Mayor, "

Check failure on line 73 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"who has symbolized throughout the world the fighting spirit of West Berlin. "

Check failure on line 74 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"And I am proud to visit the Federal Republic with your distinguished Chancellor "

Check failure on line 75 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"who for so many years has committed Germany to democracy and freedom and "
"progress, and to come here in the company of my fellow American, General Clay, "

Check failure on line 77 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"who has been in this city during its great moments of crisis and will come "

Check failure on line 78 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"again if ever needed.\n"
"Two thousand years ago the proudest boast was \"civis Romanus sum.\" Today, "

Check failure on line 80 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"in the world of freedom, the proudest boast is \"Ich bin ein Berliner.\"\r\""

Check failure on line 81 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"I appreciate my interpreter translating my German!\n"
"There are many people in the world who really don't understand, or say they "

Check failure on line 83 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"don't, what is the great issue between the free world and the Communist world. "

Check failure on line 84 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"Let them come to Berlin. There are some who say that communism is the wave of "

Check failure on line 85 in examples/usbserial/host.c

View workflow job for this annotation

GitHub Actions / check

Long line found
"the future. Let them come to Berlin. And there are some who say in Europe and "
"elsewhere we can work with the Communists. Let them come to Berlin. And there "
"are even a few who say that it is true that communism is an evil system, but it "
Expand Down
1 change: 0 additions & 1 deletion examples/usrsocktest/usrsocktest_noblock_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>

#include "defines.h"

Expand Down
1 change: 0 additions & 1 deletion netutils/pppd/pppd.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
#include <time.h>
#include <debug.h>
#include <unistd.h>

Expand Down
1 change: 0 additions & 1 deletion netutils/telnetc/telnetc.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>

#if defined(HAVE_ZLIB)
Expand Down
1 change: 0 additions & 1 deletion netutils/thttpd/fdwatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <sys/param.h>
#include <debug.h>
#include <poll.h>
#include <debug.h>

#include "config.h"
#include "thttpd_alloc.h"
Expand Down
1 change: 0 additions & 1 deletion system/vi/vi.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <syslog.h>
Expand Down
1 change: 0 additions & 1 deletion system/zmodem/zm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <ctype.h>
#include <fcntl.h>
#include <sched.h>
#include <assert.h>
Expand Down
1 change: 0 additions & 1 deletion testing/drivertest/drivertest_framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>

#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion testing/drivertest/drivertest_i2c_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion testing/drivertest/drivertest_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>

#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion testing/drivertest/drivertest_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <debug.h>
#include <inttypes.h>
Expand Down
1 change: 0 additions & 1 deletion testing/ostest/schedlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <pthread.h>
#include <errno.h>
#include <sched.h>
#include <unistd.h>
#include <stdint.h>

#ifdef CONFIG_SIM_WALLTIME_SLEEP
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/fs/cases/fs_append_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <syslog.h>
#include <stdint.h>
#include <stdarg.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/fs/cases/fs_creat_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <syslog.h>
#include <stdint.h>
#include <stdarg.h>
Expand Down
3 changes: 0 additions & 3 deletions testing/testsuites/kernel/fs/cases/fs_pread_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,16 @@
****************************************************************************/
#include <nuttx/config.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdio.h>
#include "fstest.h"

/****************************************************************************
Expand Down
2 changes: 0 additions & 2 deletions testing/testsuites/kernel/fs/cases/fs_pwrite_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@
****************************************************************************/
#include <nuttx/config.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/fs/cases/fs_read_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <fcntl.h>
#include <syslog.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
Expand Down
2 changes: 0 additions & 2 deletions testing/testsuites/kernel/fs/cases/fs_readlink_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
Expand All @@ -34,7 +33,6 @@
#include <string.h>
#include <syslog.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/fs/cases/fs_sendfile_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <syslog.h>
#include <stdint.h>
#include <stdarg.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/fs/cases/fs_stat_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/fs/cases/fs_stream_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <syslog.h>
#include <stdint.h>
#include <stdarg.h>
Expand Down
3 changes: 0 additions & 3 deletions testing/testsuites/kernel/fs/cases/fs_symlink_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@
****************************************************************************/
#include <nuttx/config.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <syslog.h>
#include <stdint.h>
#include <stdarg.h>
Expand Down
3 changes: 0 additions & 3 deletions testing/testsuites/kernel/mm/cmocka_mm_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include "MmTest.h"
#include <cmocka.h>
Expand Down
3 changes: 0 additions & 3 deletions testing/testsuites/kernel/mutex/cmocka_mutex_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include "MutexTest.h"
#include <cmocka.h>
Expand Down
3 changes: 0 additions & 3 deletions testing/testsuites/kernel/pthread/cmocka_pthread_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include "PthreadTest.h"
#include <cmocka.h>
Expand Down
3 changes: 0 additions & 3 deletions testing/testsuites/kernel/socket/cmocka_socket_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include "SocketTest.h"
#include <cmocka.h>
Expand Down
2 changes: 0 additions & 2 deletions testing/testsuites/kernel/syscall/cases/accept_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <setjmp.h>
#include <cmocka.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
Expand Down
2 changes: 0 additions & 2 deletions testing/testsuites/kernel/syscall/cases/bind_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
#include <cmocka.h>
#include <grp.h>
#include <pwd.h>
#include <sys/types.h>
#include <syslog.h>
#include <errno.h>
#include <pthread.h>
#include <netinet/in.h>

Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/syscall/cases/dup2_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <syslog.h>
#include <stdio.h>
#include <errno.h>
#include <syslog.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdarg.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/syscall/cases/dup_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <syslog.h>
#include <stdio.h>
#include <errno.h>
#include <syslog.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdint.h>
Expand Down
2 changes: 0 additions & 2 deletions testing/testsuites/kernel/syscall/cases/fsync_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <syslog.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/statvfs.h>
#include <sys/resource.h>
#include <time.h>
Expand All @@ -38,7 +37,6 @@
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdint.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <signal.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/syscall/cases/lstat_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
Expand Down
1 change: 0 additions & 1 deletion testing/testsuites/kernel/syscall/cases/memcpy_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <errno.h>
#include <cmocka.h>
#include "SyscallTest.h"

Expand Down
Loading
Loading