Skip to content

Commit 72d9a37

Browse files
Thalleykartben
authored andcommitted
tests: Bluetooth: Tester: Cleanup includes
Update the includes so that only what is actually used is included, and so that everything is used is includes (IWYU). Signed-off-by: Emil Gydesen <[email protected]>
1 parent e71aa64 commit 72d9a37

File tree

18 files changed

+131
-77
lines changed

18 files changed

+131
-77
lines changed

tests/bluetooth/tester/src/btp.c

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,27 @@
66
*
77
* SPDX-License-Identifier: Apache-2.0
88
*/
9-
10-
#include <zephyr/kernel.h>
9+
#include <errno.h>
1110
#include <stdio.h>
11+
#include <stdint.h>
1212
#include <string.h>
13-
#include <zephyr/types.h>
13+
14+
#include <zephyr/autoconf.h>
15+
#include <zephyr/bluetooth/bluetooth.h>
1416
#include <zephyr/device.h>
1517
#include <zephyr/drivers/uart.h>
16-
#include <zephyr/toolchain.h>
17-
#include <zephyr/bluetooth/bluetooth.h>
18-
#include <zephyr/sys/byteorder.h>
1918
#include <zephyr/drivers/uart_pipe.h>
20-
19+
#include <zephyr/kernel.h>
20+
#include <zephyr/kernel/thread_stack.h>
2121
#include <zephyr/logging/log.h>
22+
#include <zephyr/net_buf.h>
23+
#include <zephyr/sys/__assert.h>
24+
#include <zephyr/sys/byteorder.h>
25+
#include <zephyr/sys/util.h>
26+
#include <zephyr/sys_clock.h>
27+
#include <zephyr/toolchain.h>
28+
#include <zephyr/types.h>
29+
2230
#define LOG_MODULE_NAME bttester
2331
LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_BTTESTER_LOG_LEVEL);
2432

tests/bluetooth/tester/src/btp/btp.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
#ifndef TESTS_BLUETOOTH_TESTER_SRC_BTP_
1111
#define TESTS_BLUETOOTH_TESTER_SRC_BTP_
1212

13-
#include <zephyr/sys/util.h>
14-
#include <zephyr/bluetooth/addr.h>
13+
#include <stdint.h>
1514

1615
#include "bttester.h"
1716
#include "btp_core.h"

tests/bluetooth/tester/src/btp/btp_core.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10-
#include <zephyr/sys/util.h>
11-
#include <zephyr/bluetooth/addr.h>
10+
#include <stdint.h>
1211

1312
/* Core Service */
1413
#define BTP_CORE_READ_SUPPORTED_COMMANDS 0x01

tests/bluetooth/tester/src/btp/btp_gap.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10-
#include <zephyr/sys/util.h>
10+
#include <stddef.h>
11+
#include <stdint.h>
12+
1113
#include <zephyr/bluetooth/addr.h>
1214

1315
/* GAP Service */

tests/bluetooth/tester/src/btp/btp_gatt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10-
#include <zephyr/sys/util.h>
10+
#include <stdint.h>
11+
1112
#include <zephyr/bluetooth/addr.h>
1213

1314
/* GATT Service */

tests/bluetooth/tester/src/btp/btp_ias.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9-
#include <zephyr/bluetooth/services/ias.h>
109
#include <stdint.h>
1110

1211
/* events */

tests/bluetooth/tester/src/btp/btp_l2cap.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10-
#include <zephyr/sys/util.h>
10+
#include <stdint.h>
11+
1112
#include <zephyr/bluetooth/addr.h>
1213

1314
/* L2CAP Service */

tests/bluetooth/tester/src/btp/btp_mesh.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10-
#include <zephyr/sys/util.h>
10+
#include <stdint.h>
11+
1112
#include <zephyr/bluetooth/addr.h>
13+
#include <zephyr/sys/util_macro.h>
1214

1315
/* MESH Service */
1416
/* commands */

tests/bluetooth/tester/src/btp/btp_ots.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9+
#include <stdint.h>
10+
911
/* OTS commands */
1012
#define BTP_OTS_READ_SUPPORTED_COMMANDS 0x01
1113
struct btp_ots_read_supported_commands_rp {

tests/bluetooth/tester/src/btp/bttester.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10-
#include <zephyr/types.h>
11-
#include <zephyr/sys/util.h>
10+
#include <stddef.h>
11+
#include <stdint.h>
12+
1213
#include <zephyr/bluetooth/addr.h>
14+
#include <zephyr/sys/util_macro.h>
1315
#include <sys/types.h>
1416

1517
static inline void tester_set_bit(uint8_t *addr, unsigned int bit)

0 commit comments

Comments
 (0)