mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
tls_getinfo.c: tls_get_info needs to be compiled in most cases.
Build Documentation / build-html (push) Has been cancelled
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user