tls_getinfo.c: tls_get_info needs to be compiled in most cases.
Build Documentation / build-html (push) Has been cancelled

Simplify the compilation condition for tls_get_info() by removing the
CONFIG_TLS_ALIGNED check and adding an undef directive to ensure the function
is available in most cases rather than being limited to kernel or non-aligned TLS builds.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2025-09-18 19:51:37 +08:00
committed by Xiang Xiao
parent 521fcd964d
commit 71b7493a86
+2 -1
View File
@@ -32,7 +32,7 @@
#include <nuttx/tls.h>
#include <nuttx/sched.h>
#if !defined(up_tls_info) && (defined(__KERNEL__) || !defined(CONFIG_TLS_ALIGNED))
#ifndef up_tls_info
/****************************************************************************
* Public Functions
@@ -55,6 +55,7 @@
*
****************************************************************************/
#undef tls_get_info
FAR struct tls_info_s *tls_get_info(void)
{
FAR struct tls_info_s *info = NULL;