diff mbox series

[v3,11/32] Mini-OS: add EXPORT_SYMBOL() instances to lib/ctype.c

Message ID 20231127102523.28003-12-jgross@suse.com (mailing list archive)
State New, archived
Headers show
Series Mini-OS: hide mini-os internal symbols | expand

Commit Message

Jürgen Groß Nov. 27, 2023, 10:25 a.m. UTC
Add the needed instances of EXPORT_SYMBOL() to lib/ctype.c.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
V3:
- new patch
---
 lib/ctype.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Samuel Thibault Nov. 27, 2023, 8:01 p.m. UTC | #1
Juergen Gross, le lun. 27 nov. 2023 11:25:02 +0100, a ecrit:
> Add the needed instances of EXPORT_SYMBOL() to lib/ctype.c.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

> ---
> V3:
> - new patch
> ---
>  lib/ctype.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/lib/ctype.c b/lib/ctype.c
> index 3f3bdb00..309ebbc9 100644
> --- a/lib/ctype.c
> +++ b/lib/ctype.c
> @@ -1,5 +1,6 @@
>  #ifndef HAVE_LIBC
>  #include <ctype.h>
> +#include <mini-os/export.h>
>  
>  unsigned char _ctype[] = {
>  _C,_C,_C,_C,_C,_C,_C,_C,                        /* 0-7 */
> @@ -26,4 +27,5 @@ _U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,       /* 192-207 */
>  _U,_U,_U,_U,_U,_U,_U,_P,_U,_U,_U,_U,_U,_U,_U,_L,       /* 208-223 */
>  _L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,       /* 224-239 */
>  _L,_L,_L,_L,_L,_L,_L,_P,_L,_L,_L,_L,_L,_L,_L,_L};      /* 240-255 */
> +EXPORT_SYMBOL(_ctype);
>  #endif
> -- 
> 2.35.3
>
diff mbox series

Patch

diff --git a/lib/ctype.c b/lib/ctype.c
index 3f3bdb00..309ebbc9 100644
--- a/lib/ctype.c
+++ b/lib/ctype.c
@@ -1,5 +1,6 @@ 
 #ifndef HAVE_LIBC
 #include <ctype.h>
+#include <mini-os/export.h>
 
 unsigned char _ctype[] = {
 _C,_C,_C,_C,_C,_C,_C,_C,                        /* 0-7 */
@@ -26,4 +27,5 @@  _U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,       /* 192-207 */
 _U,_U,_U,_U,_U,_U,_U,_P,_U,_U,_U,_U,_U,_U,_U,_L,       /* 208-223 */
 _L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,       /* 224-239 */
 _L,_L,_L,_L,_L,_L,_L,_P,_L,_L,_L,_L,_L,_L,_L,_L};      /* 240-255 */
+EXPORT_SYMBOL(_ctype);
 #endif