From 02cc127475d0fc215e875ab90a3d8d2749c96a12 Mon Sep 17 00:00:00 2001 From: Peter Mitsis Date: Wed, 10 Apr 2024 11:56:36 -0400 Subject: [PATCH] linker: subsys: Use Z_LINK_ITERABLE_SUBALIGN Updates the linker script fragments under 'subsys' to use Z_LINK_ITERABLE_SUBALIGN for the subalignment instead of a hardcoded value of 4. Signed-off-by: Peter Mitsis --- subsys/net/conn_mgr/conn_mgr.ld | 2 +- subsys/net/l2/wifi/wifi_nm.ld | 2 +- subsys/net/lib/lwm2m/iterables.ld | 2 +- subsys/sip_svc/sip_svc_data.ld | 2 +- subsys/usb/device_next/class/usbd_msc.ld | 2 +- subsys/usb/device_next/usbd_data.ld | 4 ++-- subsys/usb/host/usbh_data.ld | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/subsys/net/conn_mgr/conn_mgr.ld b/subsys/net/conn_mgr/conn_mgr.ld index ed09ad0c39..9efd726b36 100644 --- a/subsys/net/conn_mgr/conn_mgr.ld +++ b/subsys/net/conn_mgr/conn_mgr.ld @@ -6,4 +6,4 @@ #include -ITERABLE_SECTION_RAM(conn_mgr_conn_binding, 4) +ITERABLE_SECTION_RAM(conn_mgr_conn_binding, Z_LINK_ITERABLE_SUBALIGN) diff --git a/subsys/net/l2/wifi/wifi_nm.ld b/subsys/net/l2/wifi/wifi_nm.ld index 73bc53f881..2b23e88443 100644 --- a/subsys/net/l2/wifi/wifi_nm.ld +++ b/subsys/net/l2/wifi/wifi_nm.ld @@ -4,4 +4,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -ITERABLE_SECTION_RAM(wifi_nm_instance, 4) +ITERABLE_SECTION_RAM(wifi_nm_instance, Z_LINK_ITERABLE_SUBALIGN) diff --git a/subsys/net/lib/lwm2m/iterables.ld b/subsys/net/lib/lwm2m/iterables.ld index 83ce9070ef..dd487f9526 100644 --- a/subsys/net/lib/lwm2m/iterables.ld +++ b/subsys/net/lib/lwm2m/iterables.ld @@ -1 +1 @@ -ITERABLE_SECTION_ROM(lwm2m_init_func, 4) +ITERABLE_SECTION_ROM(lwm2m_init_func, Z_LINK_ITERABLE_SUBALIGN) diff --git a/subsys/sip_svc/sip_svc_data.ld b/subsys/sip_svc/sip_svc_data.ld index 02516ee1e5..3b993d0c8e 100644 --- a/subsys/sip_svc/sip_svc_data.ld +++ b/subsys/sip_svc/sip_svc_data.ld @@ -1,3 +1,3 @@ #include -ITERABLE_SECTION_RAM(sip_svc_controller, 4) +ITERABLE_SECTION_RAM(sip_svc_controller, Z_LINK_ITERABLE_SUBALIGN) diff --git a/subsys/usb/device_next/class/usbd_msc.ld b/subsys/usb/device_next/class/usbd_msc.ld index bf06af14df..9c0195ddf6 100644 --- a/subsys/usb/device_next/class/usbd_msc.ld +++ b/subsys/usb/device_next/class/usbd_msc.ld @@ -1,3 +1,3 @@ #include -ITERABLE_SECTION_ROM(usbd_msc_lun, 4) +ITERABLE_SECTION_ROM(usbd_msc_lun, Z_LINK_ITERABLE_SUBALIGN) diff --git a/subsys/usb/device_next/usbd_data.ld b/subsys/usb/device_next/usbd_data.ld index 78c09d0f38..c748bd74ac 100644 --- a/subsys/usb/device_next/usbd_data.ld +++ b/subsys/usb/device_next/usbd_data.ld @@ -1,4 +1,4 @@ #include -ITERABLE_SECTION_RAM(usbd_contex, 4) -ITERABLE_SECTION_RAM(usbd_class_node, 4) +ITERABLE_SECTION_RAM(usbd_contex, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM(usbd_class_node, Z_LINK_ITERABLE_SUBALIGN) diff --git a/subsys/usb/host/usbh_data.ld b/subsys/usb/host/usbh_data.ld index f04fd236fc..193c63efc0 100644 --- a/subsys/usb/host/usbh_data.ld +++ b/subsys/usb/host/usbh_data.ld @@ -1,4 +1,4 @@ #include -ITERABLE_SECTION_RAM(usbh_contex, 4) -ITERABLE_SECTION_RAM(usbh_class_data, 4) +ITERABLE_SECTION_RAM(usbh_contex, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM(usbh_class_data, Z_LINK_ITERABLE_SUBALIGN)