From 717cfd4b09c11e2a23793fd17e740623e22695d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Zi=C4=99cik?= Date: Tue, 11 Dec 2018 13:28:21 +0100 Subject: [PATCH] arch: xtensa: Remove unused field from _thread_arch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit removes the custom_data field from _thread_arch for xtensa platform as it is currently unused. Signed-off-by: Piotr Zięcik --- arch/xtensa/core/offsets/offsets.c | 4 ---- arch/xtensa/include/kernel_arch_thread.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/arch/xtensa/core/offsets/offsets.c b/arch/xtensa/core/offsets/offsets.c index 94157d46192..b74d32689b9 100644 --- a/arch/xtensa/core/offsets/offsets.c +++ b/arch/xtensa/core/offsets/offsets.c @@ -43,10 +43,6 @@ GEN_OFFSET_SYM(tPreempCoprocReg, cpStack); /* Xtensa-specific _thread_arch_t structure member offsets */ GEN_OFFSET_SYM(_thread_arch_t, flags); -#ifdef CONFIG_THREAD_CUSTOM_DATA -GEN_OFFSET_SYM(_thread_arch_t, custom_data); -#endif - /* Xtensa-specific ESF structure member offsets */ GEN_OFFSET_SYM(__esf_t, sp); GEN_OFFSET_SYM(__esf_t, pc); diff --git a/arch/xtensa/include/kernel_arch_thread.h b/arch/xtensa/include/kernel_arch_thread.h index 455d0b26bc1..6f33ee341d2 100644 --- a/arch/xtensa/include/kernel_arch_thread.h +++ b/arch/xtensa/include/kernel_arch_thread.h @@ -107,9 +107,6 @@ struct _thread_arch { * fixed offset to read the 'flags' field. */ u32_t flags; -#ifdef CONFIG_THREAD_CUSTOM_DATA - void *custom_data; /* available for custom use */ -#endif #ifdef CONFIG_ERRNO int errno_var; #endif