diff --git a/include/sbi/sbi_visibility.h b/include/sbi/sbi_visibility.h index e9c401c5..f900c445 100644 --- a/include/sbi/sbi_visibility.h +++ b/include/sbi/sbi_visibility.h @@ -7,10 +7,12 @@ #ifndef __SBI_VISIBILITY_H__ #define __SBI_VISIBILITY_H__ +#ifndef __DTS__ /* * Declare all global objects with hidden visibility so access is PC-relative * instead of going through the GOT. */ #pragma GCC visibility push(hidden) +#endif #endif