Skip to content

Commit 89ddd0b

Browse files
dcpleungnashif
authored andcommitted
usb: usb_dc_mcux: use K_HEAP_DEFINE_NOCACHE()
This changes "__nocache K_HEAP_DEFINE()" to use the new K_HEAP_DEFINE_NOCACHE() macro. This fixes a build error as K_HEAP_DEFINE() is specifying its own linker section so that it is no longer possible to specify another linker section. Fixes #38108 Signed-off-by: Daniel Leung <[email protected]>
1 parent 1049038 commit 89ddd0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/device/usb_dc_mcux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void usb_isr_handler(void);
6868
/* The max MPS is 1023 for FS, 1024 for HS. */
6969
#if defined(CONFIG_NOCACHE_MEMORY)
7070
#define EP_BUF_NONCACHED
71-
__nocache K_HEAP_DEFINE(ep_buf_pool, 1024 * EP_BUF_NUMOF_BLOCKS);
71+
K_HEAP_DEFINE_NOCACHE(ep_buf_pool, 1024 * EP_BUF_NUMOF_BLOCKS);
7272
#else
7373
K_HEAP_DEFINE(ep_buf_pool, 1024 * EP_BUF_NUMOF_BLOCKS);
7474
#endif

0 commit comments

Comments
 (0)