include: Fix use of <misc/FOO.h> -> <sys/FOO.h>

Fix #include <misc/FOO.h> as misc/FOO.h has been deprecated and
should be #include <sys/FOO.h>.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-12-09 11:18:21 -06:00 committed by Anas Nashif
commit 24ae1b1aa7
37 changed files with 45 additions and 46 deletions

View file

@ -11,7 +11,7 @@
#include <kernel.h> #include <kernel.h>
#include <arch/cpu.h> #include <arch/cpu.h>
#include <misc/util.h> #include <sys/util.h>
/** /**
* *

View file

@ -26,7 +26,7 @@
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h> #include <linker/sections.h>
#include <misc/util.h> #include <sys/util.h>
GTEXT(__start) GTEXT(__start)
GTEXT(_vector_table) GTEXT(_vector_table)

View file

@ -6,7 +6,7 @@
#include <generated_dts_board.h> #include <generated_dts_board.h>
#include <arch/cpu.h> #include <arch/cpu.h>
#include <misc/util.h> #include <sys/util.h>
/* Super-primitive 8250/16550 serial output-only driver, 115200 8n1 */ /* Super-primitive 8250/16550 serial output-only driver, 115200 8n1 */

View file

@ -8,7 +8,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <adc.h> #include <adc.h>
#include <ctype.h> #include <ctype.h>
#include <misc/util.h> #include <sys/util.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <logging/log.h> #include <logging/log.h>

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <misc/printk.h> #include <sys/printk.h>
#include <shell/shell.h> #include <shell/shell.h>
#include <drivers/can.h> #include <drivers/can.h>
#include <zephyr/types.h> #include <zephyr/types.h>

View file

@ -7,7 +7,7 @@
#include <soc.h> #include <soc.h>
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <sys/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
/* Macros to fill up prescaler values */ /* Macros to fill up prescaler values */

View file

@ -9,7 +9,7 @@
#include <soc.h> #include <soc.h>
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <sys/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "clock_stm32_ll_common.h" #include "clock_stm32_ll_common.h"

View file

@ -18,7 +18,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <net/net_if.h> #include <net/net_if.h>
#include <net/net_pkt.h> #include <net/net_pkt.h>
#include <misc/printk.h> #include <sys/printk.h>
/* flags */ /* flags */
#define LITEETH_EV_TX 0x1 #define LITEETH_EV_TX 0x1

View file

@ -10,7 +10,7 @@ LOG_MODULE_REGISTER(ieee802154_cc13xx_cc26xx);
#include <device.h> #include <device.h>
#include <errno.h> #include <errno.h>
#include <misc/byteorder.h> #include <sys/byteorder.h>
#include <net/ieee802154_radio.h> #include <net/ieee802154_radio.h>
#include <net/ieee802154.h> #include <net/ieee802154.h>
#include <net/net_pkt.h> #include <net/net_pkt.h>

View file

@ -8,7 +8,7 @@
#include <drivers/i2c.h> #include <drivers/i2c.h>
#include <drivers/sensor.h> #include <drivers/sensor.h>
#include <logging/log.h> #include <logging/log.h>
#include <misc/__assert.h> #include <sys/__assert.h>
#include "opt3001.h" #include "opt3001.h"

View file

@ -7,7 +7,7 @@
#ifndef ZEPHYR_DRIVERS_SENSOR_OPT3001_H_ #ifndef ZEPHYR_DRIVERS_SENSOR_OPT3001_H_
#define ZEPHYR_DRIVERS_SENSOR_OPT3001_H_ #define ZEPHYR_DRIVERS_SENSOR_OPT3001_H_
#include <misc/util.h> #include <sys/util.h>
#define OPT3001_REG_RESULT 0x00 #define OPT3001_REG_RESULT 0x00
#define OPT3001_REG_CONFIG 0x01 #define OPT3001_REG_CONFIG 0x01

View file

@ -7,9 +7,9 @@
#include <device.h> #include <device.h>
#include <drivers/i2c.h> #include <drivers/i2c.h>
#include <drivers/sensor.h> #include <drivers/sensor.h>
#include <misc/util.h> #include <sys/util.h>
#include <misc/byteorder.h> #include <sys/byteorder.h>
#include <misc/__assert.h> #include <sys/__assert.h>
#include <logging/log.h> #include <logging/log.h>
#include <kernel.h> #include <kernel.h>

View file

@ -19,7 +19,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <kernel_structs.h> #include <kernel_structs.h>
#include <arch/common/ffs.h> #include <arch/common/ffs.h>
#include <misc/util.h> #include <sys/util.h>
#include <arch/x86/ia32/thread.h> #include <arch/x86/ia32/thread.h>
#include <arch/x86/ia32/syscall.h> #include <arch/x86/ia32/syscall.h>

View file

@ -13,7 +13,7 @@
#ifndef ZEPHYR_INCLUDE_ESPI_H_ #ifndef ZEPHYR_INCLUDE_ESPI_H_
#define ZEPHYR_INCLUDE_ESPI_H_ #define ZEPHYR_INCLUDE_ESPI_H_
#include <misc/__assert.h> #include <sys/__assert.h>
#include <zephyr/types.h> #include <zephyr/types.h>
#include <device.h> #include <device.h>

View file

@ -12,8 +12,8 @@
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <misc/byteorder.h> #include <sys/byteorder.h>
#include <zephyr.h> #include <zephyr.h>
#include <bluetooth/bluetooth.h> #include <bluetooth/bluetooth.h>

View file

@ -10,8 +10,8 @@
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <misc/byteorder.h> #include <sys/byteorder.h>
#include <zephyr.h> #include <zephyr.h>
#include <bluetooth/bluetooth.h> #include <bluetooth/bluetooth.h>

View file

@ -5,7 +5,7 @@
*/ */
#include <zephyr.h> #include <zephyr.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <soc.h> #include <soc.h>
#if defined(CONFIG_SOC_NSIM_SEM) #if defined(CONFIG_SOC_NSIM_SEM)

View file

@ -8,7 +8,7 @@
#include <logging/log.h> #include <logging/log.h>
LOG_MODULE_REGISTER(tuning); LOG_MODULE_REGISTER(tuning);
#include <misc/byteorder.h> #include <sys/byteorder.h>
#include <string.h> #include <string.h>
#include <zephyr.h> #include <zephyr.h>

View file

@ -10,7 +10,7 @@
#include <device.h> #include <device.h>
#include <drivers/can.h> #include <drivers/can.h>
#include <drivers/gpio.h> #include <drivers/gpio.h>
#include <misc/byteorder.h> #include <sys/byteorder.h>
#define RX_THREAD_STACK_SIZE 512 #define RX_THREAD_STACK_SIZE 512
#define RX_THREAD_PRIORITY 2 #define RX_THREAD_PRIORITY 2

View file

@ -6,7 +6,7 @@
#include <errno.h> #include <errno.h>
#include <zephyr.h> #include <zephyr.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <device.h> #include <device.h>
#include <soc.h> #include <soc.h>
#include <gpio.h> #include <gpio.h>

View file

@ -5,7 +5,7 @@
*/ */
#include <zephyr.h> #include <zephyr.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <gpio.h> #include <gpio.h>
#include <soc.h> #include <soc.h>
#include <kscan.h> #include <kscan.h>

View file

@ -5,7 +5,7 @@
*/ */
#include <zephyr.h> #include <zephyr.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <ps2.h> #include <ps2.h>
#include <soc.h> #include <soc.h>
#define LOG_LEVEL LOG_LEVEL_DBG #define LOG_LEVEL LOG_LEVEL_DBG

View file

@ -6,7 +6,7 @@
#include <kernel.h> #include <kernel.h>
#include <device.h> #include <device.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <app_memory/app_memdomain.h> #include <app_memory/app_memdomain.h>
#include <sys/libc-hooks.h> #include <sys/libc-hooks.h>
#include <sys/mempool.h> #include <sys/mempool.h>

View file

@ -14,7 +14,7 @@
#ifndef _SOC_H_ #ifndef _SOC_H_
#define _SOC_H_ #define _SOC_H_
#include <misc/util.h> #include <sys/util.h>
/* ARC HS Core IRQs */ /* ARC HS Core IRQs */
@ -29,7 +29,7 @@
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <misc/util.h> #include <sys/util.h>
#include <random/rand32.h> #include <random/rand32.h>
/* /*

View file

@ -14,7 +14,7 @@
#ifndef _SOC_H_ #ifndef _SOC_H_
#define _SOC_H_ #define _SOC_H_
#include <misc/util.h> #include <sys/util.h>
/* default system clock */ /* default system clock */
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(100) #define SYSCLK_DEFAULT_IOSC_HZ MHZ(100)
@ -25,7 +25,7 @@
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <misc/util.h> #include <sys/util.h>
#include <random/rand32.h> #include <random/rand32.h>
/* /*

View file

@ -5,7 +5,6 @@
*/ */
#include <sys/slist.h> #include <sys/slist.h>
#include <misc/slist.h>
#include <arch/arm/cortex_m/mpu/arm_mpu.h> #include <arch/arm/cortex_m/mpu/arm_mpu.h>
#include "arm_mpu_mem_cfg.h" #include "arm_mpu_mem_cfg.h"

View file

@ -7,7 +7,7 @@
#include <zephyr.h> #include <zephyr.h>
#include <sys_io.h> #include <sys_io.h>
#include <misc/__assert.h> #include <sys/__assert.h>
#include <power.h> #include <power.h>
#include <soc.h> #include <soc.h>

View file

@ -7,7 +7,7 @@
#include <zephyr.h> #include <zephyr.h>
#include <sys_io.h> #include <sys_io.h>
#include <misc/__assert.h> #include <sys/__assert.h>
#include <power.h> #include <power.h>
#include <soc.h> #include <soc.h>
#include "device_power.h" #include "device_power.h"

View file

@ -17,7 +17,7 @@
#ifndef _SOC__H_ #ifndef _SOC__H_
#define _SOC__H_ #define _SOC__H_
#include <misc/util.h> #include <sys/util.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -37,7 +37,7 @@ extern "C" {
#include <fsl_common.h> #include <fsl_common.h>
#include <device.h> #include <device.h>
#include <misc/util.h> #include <sys/util.h>
#include <random/rand32.h> #include <random/rand32.h>
#endif /* !_ASMLANGUAGE */ #endif /* !_ASMLANGUAGE */

View file

@ -8,12 +8,12 @@
#ifndef _BOARD__H_ #ifndef _BOARD__H_
#define _BOARD__H_ #define _BOARD__H_
#include <misc/util.h> #include <sys/util.h>
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <device.h> #include <device.h>
#include <misc/util.h> #include <sys/util.h>
#endif /* !_ASMLANGUAGE */ #endif /* !_ASMLANGUAGE */

View file

@ -6,7 +6,7 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <misc/printk.h> #include <sys/printk.h>
#include <sys/dlist.h> #include <sys/dlist.h>
#include <sys/mempool_base.h> #include <sys/mempool_base.h>
#include <toolchain.h> #include <toolchain.h>

View file

@ -11,7 +11,7 @@
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
#include <misc/__assert.h> #include <sys/__assert.h>
#include <stdbool.h> #include <stdbool.h>
#include <zephyr/types.h> #include <zephyr/types.h>

View file

@ -16,7 +16,7 @@ LOG_MODULE_REGISTER(net_l2_canbus, CONFIG_NET_L2_CANBUS_LOG_LEVEL);
#include <6lo.h> #include <6lo.h>
#include <timeout_q.h> #include <timeout_q.h>
#include <string.h> #include <string.h>
#include <misc/byteorder.h> #include <sys/byteorder.h>
#include <net/ethernet.h> #include <net/ethernet.h>
#include <net/net_ip.h> #include <net/net_ip.h>
#include <string.h> #include <string.h>

View file

@ -11,10 +11,10 @@
LOG_MODULE_REGISTER(net_sock_mgmt, CONFIG_NET_SOCKETS_LOG_LEVEL); LOG_MODULE_REGISTER(net_sock_mgmt, CONFIG_NET_SOCKETS_LOG_LEVEL);
#include <kernel.h> #include <kernel.h>
#include <misc/util.h> #include <sys/util.h>
#include <net/socket.h> #include <net/socket.h>
#include <syscall_handler.h> #include <syscall_handler.h>
#include <misc/fdtable.h> #include <sys/fdtable.h>
#include <net/socket_net_mgmt.h> #include <net/socket_net_mgmt.h>
#include <net/ethernet_mgmt.h> #include <net/ethernet_mgmt.h>

View file

@ -7,7 +7,7 @@
#include <ztest.h> #include <ztest.h>
#include <kernel_version.h> #include <kernel_version.h>
#include <misc/speculation.h> #include <sys/speculation.h>
#include "version.h" #include "version.h"
extern void test_byteorder_memcpy_swap(void); extern void test_byteorder_memcpy_swap(void);

View file

@ -12,7 +12,7 @@ LOG_MODULE_REGISTER(net_test, CONFIG_DNS_RESOLVER_LOG_LEVEL);
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <ztest.h> #include <ztest.h>

View file

@ -16,7 +16,7 @@ LOG_MODULE_REGISTER(net_test, NET_LOG_LEVEL);
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <misc/printk.h> #include <sys/printk.h>
#include <crc.h> #include <crc.h>
#include <ztest.h> #include <ztest.h>