Skip to content
Permalink
Browse files

cleanup: include/: move misc/byteorder.h to sys/byteorder.h

move misc/byteorder.h to sys/byteorder.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed Jun 26, 2019
1 parent 5eb90ec commit 5d001f3e41bbb7ad6f8781292f80a0ed86b5d47a
Showing with 492 additions and 477 deletions.
  1. +1 −1 drivers/bluetooth/hci/h4.c
  2. +1 −1 drivers/bluetooth/hci/h5.c
  3. +1 −1 drivers/bluetooth/hci/spi.c
  4. +1 −1 drivers/bluetooth/hci/userchan.c
  5. +1 −1 drivers/can/can_mcux_flexcan.c
  6. +1 −1 drivers/display/display_ili9340.c
  7. +1 −1 drivers/display/ssd1673.c
  8. +1 −1 drivers/gpio/gpio_sx1509b.c
  9. +1 −1 drivers/ieee802154/ieee802154_cc1200.c
  10. +1 −1 drivers/ieee802154/ieee802154_cc2520.c
  11. +1 −1 drivers/ieee802154/ieee802154_kw41z.c
  12. +1 −1 drivers/ieee802154/ieee802154_mcr20a.c
  13. +1 −1 drivers/ieee802154/ieee802154_nrf5.c
  14. +1 −1 drivers/led/ht16k33.c
  15. +1 −1 drivers/sensor/adt7420/adt7420.c
  16. +1 −1 drivers/sensor/adxl362/adxl362.c
  17. +1 −1 drivers/sensor/ak8975/ak8975.c
  18. +1 −1 drivers/sensor/amg88xx/amg88xx.c
  19. +1 −1 drivers/sensor/ams_iAQcore/iAQcore.c
  20. +1 −1 drivers/sensor/apds9960/apds9960.c
  21. +1 −1 drivers/sensor/bmc150_magn/bmc150_magn.c
  22. +1 −1 drivers/sensor/bme280/bme280.c
  23. +1 −1 drivers/sensor/bme680/bme680.c
  24. +1 −1 drivers/sensor/bmg160/bmg160.c
  25. +1 −1 drivers/sensor/bmi160/bmi160.c
  26. +1 −1 drivers/sensor/bmm150/bmm150.h
  27. +1 −1 drivers/sensor/ccs811/ccs811.c
  28. +1 −1 drivers/sensor/dht/dht.c
  29. +1 −1 drivers/sensor/ens210/ens210.c
  30. +1 −1 drivers/sensor/hmc5883l/hmc5883l.c
  31. +1 −1 drivers/sensor/hp206c/hp206c.c
  32. +1 −1 drivers/sensor/hts221/hts221.c
  33. +1 −1 drivers/sensor/lis2dh/lis2dh.c
  34. +1 −1 drivers/sensor/lis2ds12/lis2ds12.c
  35. +1 −1 drivers/sensor/lis2dw12/lis2dw12.c
  36. +1 −1 drivers/sensor/lis2mdl/lis2mdl.c
  37. +1 −1 drivers/sensor/lis3mdl/lis3mdl.c
  38. +1 −1 drivers/sensor/lps22hb/lps22hb.c
  39. +1 −1 drivers/sensor/lps25hb/lps25hb.c
  40. +1 −1 drivers/sensor/lsm6ds0/lsm6ds0.c
  41. +1 −1 drivers/sensor/lsm6dsl/lsm6dsl.c
  42. +1 −1 drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro.c
  43. +1 −1 drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro_trigger.c
  44. +1 −1 drivers/sensor/lsm9ds0_mfd/lsm9ds0_mfd.c
  45. +1 −1 drivers/sensor/mcp9808/mcp9808.c
  46. +1 −1 drivers/sensor/mcp9808/mcp9808_trigger.c
  47. +1 −1 drivers/sensor/mpu6050/mpu6050.c
  48. +1 −1 drivers/sensor/ms5837/ms5837.c
  49. +1 −1 drivers/sensor/th02/th02.c
  50. +1 −1 drivers/sensor/tmp007/tmp007.c
  51. +1 −1 drivers/sensor/tmp112/tmp112.c
  52. +1 −1 drivers/usb/device/usb_dc_dw.c
  53. +1 −1 drivers/usb/device/usb_dc_kinetis.c
  54. +1 −1 drivers/usb/device/usb_dc_native_posix.c
  55. +4 −317 include/misc/byteorder.h
  56. +1 −1 include/net/net_ip.h
  57. +328 −0 include/sys/byteorder.h
  58. +1 −1 samples/bluetooth/central/src/main.c
  59. +1 −1 samples/bluetooth/central_hr/src/main.c
  60. +1 −1 samples/bluetooth/eddystone/src/main.c
  61. +1 −1 samples/bluetooth/gatt/bas.c
  62. +1 −1 samples/bluetooth/gatt/cts.c
  63. +1 −1 samples/bluetooth/gatt/hog.c
  64. +1 −1 samples/bluetooth/gatt/hrs.c
  65. +1 −1 samples/bluetooth/gatt/ipss.c
  66. +1 −1 samples/bluetooth/handsfree/src/main.c
  67. +1 −1 samples/bluetooth/hci_spi/src/main.c
  68. +1 −1 samples/bluetooth/hci_uart/src/main.c
  69. +1 −1 samples/bluetooth/peripheral/src/main.c
  70. +1 −1 samples/bluetooth/peripheral_csc/src/main.c
  71. +1 −1 samples/bluetooth/peripheral_dis/src/main.c
  72. +1 −1 samples/bluetooth/peripheral_esp/src/main.c
  73. +1 −1 samples/bluetooth/peripheral_hids/src/main.c
  74. +1 −1 samples/bluetooth/peripheral_hr/src/main.c
  75. +1 −1 samples/bluetooth/peripheral_sc_only/src/main.c
  76. +1 −1 samples/boards/arduino_101/environmental_sensing/ap/src/main.c
  77. +1 −1 samples/boards/nrf52/mesh/onoff-app/src/main.c
  78. +1 −1 samples/net/sockets/coap_client/src/coap-client.c
  79. +1 −1 samples/net/sockets/coap_server/src/coap-server.c
  80. +1 −1 samples/nfc/nfc_hello/src/main.c
  81. +1 −1 samples/subsys/usb/webusb/src/main.c
  82. +1 −1 samples/subsys/usb/webusb/src/webusb.c
  83. +1 −1 subsys/bluetooth/common/rpa.c
  84. +1 −1 subsys/bluetooth/controller/hci/hci.c
  85. +1 −1 subsys/bluetooth/controller/hci/hci_driver.c
  86. +1 −1 subsys/bluetooth/controller/ll_sw/ctrl.c
  87. +1 −1 subsys/bluetooth/controller/ll_sw/ll_filter.c
  88. +1 −1 subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv.c
  89. +1 −1 subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c
  90. +1 −1 subsys/bluetooth/controller/ll_sw/ull_conn.c
  91. +1 −1 subsys/bluetooth/controller/ll_sw/ull_filter.c
  92. +1 −1 subsys/bluetooth/controller/ll_sw/ull_master.c
  93. +1 −1 subsys/bluetooth/controller/ll_sw/ull_slave.c
  94. +1 −1 subsys/bluetooth/host/a2dp.c
  95. +1 −1 subsys/bluetooth/host/att.c
  96. +1 −1 subsys/bluetooth/host/avdtp.c
  97. +1 −1 subsys/bluetooth/host/conn.c
  98. +1 −1 subsys/bluetooth/host/crypto.c
  99. +1 −1 subsys/bluetooth/host/gatt.c
  100. +1 −1 subsys/bluetooth/host/hci_core.c
  101. +1 −1 subsys/bluetooth/host/hci_ecc.c
  102. +1 −1 subsys/bluetooth/host/hfp_hf.c
  103. +1 −1 subsys/bluetooth/host/l2cap.c
  104. +1 −1 subsys/bluetooth/host/l2cap_br.c
  105. +1 −1 subsys/bluetooth/host/mesh/access.c
  106. +1 −1 subsys/bluetooth/host/mesh/cfg_cli.c
  107. +1 −1 subsys/bluetooth/host/mesh/cfg_srv.c
  108. +1 −1 subsys/bluetooth/host/mesh/crypto.c
  109. +1 −1 subsys/bluetooth/host/mesh/foundation.h
  110. +1 −1 subsys/bluetooth/host/mesh/friend.c
  111. +1 −1 subsys/bluetooth/host/mesh/health_cli.c
  112. +1 −1 subsys/bluetooth/host/mesh/health_srv.c
  113. +1 −1 subsys/bluetooth/host/mesh/lpn.c
  114. +1 −1 subsys/bluetooth/host/mesh/net.c
  115. +1 −1 subsys/bluetooth/host/mesh/prov.c
  116. +1 −1 subsys/bluetooth/host/mesh/proxy.c
  117. +1 −1 subsys/bluetooth/host/mesh/settings.c
  118. +1 −1 subsys/bluetooth/host/mesh/transport.c
  119. +1 −1 subsys/bluetooth/host/monitor.c
  120. +1 −1 subsys/bluetooth/host/rfcomm.c
  121. +1 −1 subsys/bluetooth/host/sdp.c
  122. +1 −1 subsys/bluetooth/host/smp.c
  123. +1 −1 subsys/bluetooth/host/uuid.c
  124. +1 −1 subsys/bluetooth/shell/bredr.c
  125. +1 −1 subsys/bluetooth/shell/bt.c
  126. +1 −1 subsys/bluetooth/shell/gatt.c
  127. +1 −1 subsys/bluetooth/shell/hci.c
  128. +1 −1 subsys/bluetooth/shell/l2cap.c
  129. +1 −1 subsys/bluetooth/shell/rfcomm.c
  130. +1 −1 subsys/dfu/boot/mcuboot.c
  131. +1 −1 subsys/disk/disk_access_sdhc.c
  132. +1 −1 subsys/mgmt/serial_util.c
  133. +1 −1 subsys/net/buf.c
  134. +1 −1 subsys/net/ip/icmpv6.c
  135. +1 −1 subsys/net/ip/tcp.c
  136. +1 −1 subsys/net/lib/coap/coap.c
  137. +1 −1 subsys/net/lib/coap/coap_link_format.c
  138. +1 −1 subsys/net/lib/lwm2m/lwm2m_rw_oma_tlv.c
  139. +1 −1 subsys/usb/class/bluetooth.c
  140. +1 −1 subsys/usb/class/cdc_acm.c
  141. +1 −1 subsys/usb/class/hid/core.c
  142. +1 −1 subsys/usb/class/loopback.c
  143. +1 −1 subsys/usb/class/mass_storage.c
  144. +1 −1 subsys/usb/class/usb_dfu.c
  145. +1 −1 subsys/usb/usb_descriptor.c
  146. +1 −1 subsys/usb/usb_device.c
  147. +1 −1 tests/application_development/cpp/src/main.cpp
  148. +1 −1 tests/benchmarks/mbedtls/src/benchmark.c
  149. +1 −1 tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect1.c
  150. +1 −1 tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect2.c
  151. +1 −1 tests/bluetooth/hci_prop_evt/src/main.c
  152. +1 −1 tests/bluetooth/shell/src/main.c
  153. +1 −1 tests/bluetooth/tester/src/bttester.c
  154. +1 −1 tests/bluetooth/tester/src/gap.c
  155. +1 −1 tests/bluetooth/tester/src/gatt.c
  156. +1 −1 tests/bluetooth/tester/src/l2cap.c
  157. +1 −1 tests/bluetooth/tester/src/mesh.c
  158. +1 −1 tests/kernel/common/src/byteorder.c
  159. +1 −1 tests/subsys/usb/bos/src/test_bos.c
  160. +1 −1 tests/subsys/usb/desc_sections/src/desc_sections.c
  161. +1 −1 tests/subsys/usb/device/src/main.c
  162. +1 −1 tests/subsys/usb/os_desc/src/usb_osdesc.c
@@ -15,7 +15,7 @@
#include <init.h>
#include <drivers/uart.h>
#include <misc/util.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <string.h>

#include <bluetooth/bluetooth.h>
@@ -14,7 +14,7 @@
#include <init.h>
#include <drivers/uart.h>
#include <misc/util.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <misc/stack.h>
#include <misc/printk.h>
#include <string.h>
@@ -9,7 +9,7 @@
#include <drivers/gpio.h>
#include <init.h>
#include <drivers/spi.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <misc/util.h>

#include <bluetooth/hci.h>
@@ -10,7 +10,7 @@
#include <device.h>
#include <init.h>
#include <misc/util.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>

#include <errno.h>
#include <stddef.h>
@@ -9,7 +9,7 @@
#include <drivers/can.h>
#include <drivers/clock_control.h>
#include <device.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <fsl_flexcan.h>

#define LOG_LEVEL CONFIG_CAN_LOG_LEVEL
@@ -13,7 +13,7 @@
LOG_MODULE_REGISTER(display_ili9340);

#include <drivers/gpio.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <drivers/spi.h>
#include <string.h>

@@ -14,7 +14,7 @@ LOG_MODULE_REGISTER(ssd1673);
#include <init.h>
#include <drivers/gpio.h>
#include <drivers/spi.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>

#include "ssd1673_regs.h"
#include <display/cfb.h>
@@ -11,7 +11,7 @@
#include <init.h>
#include <drivers/gpio.h>
#include <drivers/i2c.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <misc/util.h>

#ifdef CONFIG_HAS_DTS_I2C
@@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <net/net_if.h>
#include <net/net_pkt.h>

#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <string.h>
#include <random/rand32.h>

@@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <net/net_if.h>
#include <net/net_pkt.h>

#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <string.h>
#include <random/rand32.h>

@@ -20,7 +20,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <net/ieee802154_radio.h>
#include <net/net_if.h>
#include <net/net_pkt.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <random/rand32.h>

#include "fsl_xcvr.h"
@@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <net/net_if.h>
#include <net/net_pkt.h>

#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <string.h>
#include <random/rand32.h>

@@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <net/openthread.h>
#endif

#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <string.h>
#include <random/rand32.h>

@@ -13,7 +13,7 @@
#include <drivers/i2c.h>
#include <kernel.h>
#include <drivers/led.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <zephyr.h>

#define LOG_LEVEL CONFIG_LED_LOG_LEVEL
@@ -6,7 +6,7 @@

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

@@ -8,7 +8,7 @@
#include <device.h>
#include <drivers/i2c.h>
#include <drivers/gpio.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <misc/util.h>
#include <kernel.h>
#include <drivers/sensor.h>
@@ -7,7 +7,7 @@
#include <device.h>
#include <drivers/i2c.h>
#include <kernel.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <misc/util.h>
#include <drivers/sensor.h>
#include <sys/__assert.h>
@@ -13,7 +13,7 @@
#include <drivers/sensor.h>
#include <drivers/i2c.h>
#include <sys/__assert.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <init.h>
#include <kernel.h>
#include <string.h>
@@ -13,7 +13,7 @@
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>

#include <drivers/gpio.h>
@@ -11,7 +11,7 @@
#include <drivers/sensor.h>
#include <init.h>
#include <drivers/gpio.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>

#ifdef DT_BOSCH_BME280_BUS_I2C
@@ -15,7 +15,7 @@
#include <drivers/i2c.h>
#include <init.h>
#include <kernel.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>
#include <drivers/sensor.h>

@@ -10,7 +10,7 @@

#include <init.h>
#include <drivers/sensor.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <kernel.h>
#include <logging/log.h>

@@ -10,7 +10,7 @@

#include <init.h>
#include <drivers/sensor.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <kernel.h>
#include <sys/__assert.h>
#include <logging/log.h>
@@ -18,7 +18,7 @@
#include <kernel.h>
#include <device.h>
#include <drivers/sensor.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>
#include <drivers/gpio.h>

@@ -8,7 +8,7 @@
#include <drivers/gpio.h>
#include <drivers/i2c.h>
#include <kernel.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <misc/util.h>
#include <drivers/sensor.h>
#include <sys/__assert.h>
@@ -6,7 +6,7 @@

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


#include <init.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>
#include <logging/log.h>

@@ -13,7 +13,7 @@
#include <device.h>
#include <init.h>
#include <string.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>
#include <logging/log.h>

@@ -10,7 +10,7 @@

#include <init.h>
#include <sys/__assert.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <logging/log.h>
#include <drivers/sensor.h>

@@ -8,7 +8,7 @@

#include <init.h>
#include <sys/__assert.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <drivers/sensor.h>
#include <string.h>

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

@@ -10,7 +10,7 @@
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>
#include <logging/log.h>

@@ -12,7 +12,7 @@
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>
#include <logging/log.h>

@@ -13,7 +13,7 @@
#include <device.h>
#include <init.h>
#include <string.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>
#include <logging/log.h>

@@ -10,7 +10,7 @@
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>

#include <drivers/gpio.h>
@@ -9,7 +9,7 @@
#include <device.h>
#include <init.h>
#include <drivers/i2c.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <sys/__assert.h>

#include <drivers/gpio.h>
@@ -13,7 +13,7 @@
#include <device.h>
#include <init.h>
#include <drivers/i2c.h>
#include <misc/byteorder.h>
#include <sys/byteorder.h>
#include <drivers/gpio.h>
#include <logging/log.h>

0 comments on commit 5d001f3

Please sign in to comment.
You can’t perform that action at this time.