diff mbox series

[v3,20/32] Mini-OS: add EXPORT_SYMBOL() instances to lock.c

Message ID 20231127102523.28003-21-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 lock.c.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
V3:
- new patch
---
 lock.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

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

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

> ---
> V3:
> - new patch
> ---
>  lock.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/lock.c b/lock.c
> index 61194e5d..8f58344f 100644
> --- a/lock.c
> +++ b/lock.c
> @@ -17,6 +17,7 @@ int ___lock_init(_LOCK_T *lock)
>      init_waitqueue_head(&lock->wait);
>      return 0;
>  }
> +EXPORT_SYMBOL(___lock_init);
>  
>  int ___lock_acquire(_LOCK_T *lock)
>  {
> @@ -32,6 +33,7 @@ int ___lock_acquire(_LOCK_T *lock)
>      local_irq_restore(flags);
>      return 0;
>  }
> +EXPORT_SYMBOL(___lock_acquire);
>  
>  int ___lock_try_acquire(_LOCK_T *lock)
>  {
> @@ -45,6 +47,7 @@ int ___lock_try_acquire(_LOCK_T *lock)
>      local_irq_restore(flags);
>      return ret;
>  }
> +EXPORT_SYMBOL(___lock_try_acquire);
>  
>  int ___lock_release(_LOCK_T *lock)
>  {
> @@ -55,7 +58,7 @@ int ___lock_release(_LOCK_T *lock)
>      local_irq_restore(flags);
>      return 0;
>  }
> -
> +EXPORT_SYMBOL(___lock_release);
>  
>  int ___lock_init_recursive(_LOCK_RECURSIVE_T *lock)
>  {
> @@ -63,6 +66,7 @@ int ___lock_init_recursive(_LOCK_RECURSIVE_T *lock)
>      init_waitqueue_head(&lock->wait);
>      return 0;
>  }
> +EXPORT_SYMBOL(___lock_init_recursive);
>  
>  int ___lock_acquire_recursive(_LOCK_RECURSIVE_T *lock)
>  {
> @@ -81,6 +85,7 @@ int ___lock_acquire_recursive(_LOCK_RECURSIVE_T *lock)
>      lock->count++;
>      return 0;
>  }
> +EXPORT_SYMBOL(___lock_acquire_recursive);
>  
>  int ___lock_try_acquire_recursive(_LOCK_RECURSIVE_T *lock)
>  {
> @@ -95,6 +100,7 @@ int ___lock_try_acquire_recursive(_LOCK_RECURSIVE_T *lock)
>      local_irq_restore(flags);
>      return ret;
>  }
> +EXPORT_SYMBOL(___lock_try_acquire_recursive);
>  
>  int ___lock_release_recursive(_LOCK_RECURSIVE_T *lock)
>  {
> @@ -108,5 +114,6 @@ int ___lock_release_recursive(_LOCK_RECURSIVE_T *lock)
>      local_irq_restore(flags);
>      return 0;
>  }
> +EXPORT_SYMBOL(___lock_release_recursive);
>  
>  #endif
> -- 
> 2.35.3
>
diff mbox series

Patch

diff --git a/lock.c b/lock.c
index 61194e5d..8f58344f 100644
--- a/lock.c
+++ b/lock.c
@@ -17,6 +17,7 @@  int ___lock_init(_LOCK_T *lock)
     init_waitqueue_head(&lock->wait);
     return 0;
 }
+EXPORT_SYMBOL(___lock_init);
 
 int ___lock_acquire(_LOCK_T *lock)
 {
@@ -32,6 +33,7 @@  int ___lock_acquire(_LOCK_T *lock)
     local_irq_restore(flags);
     return 0;
 }
+EXPORT_SYMBOL(___lock_acquire);
 
 int ___lock_try_acquire(_LOCK_T *lock)
 {
@@ -45,6 +47,7 @@  int ___lock_try_acquire(_LOCK_T *lock)
     local_irq_restore(flags);
     return ret;
 }
+EXPORT_SYMBOL(___lock_try_acquire);
 
 int ___lock_release(_LOCK_T *lock)
 {
@@ -55,7 +58,7 @@  int ___lock_release(_LOCK_T *lock)
     local_irq_restore(flags);
     return 0;
 }
-
+EXPORT_SYMBOL(___lock_release);
 
 int ___lock_init_recursive(_LOCK_RECURSIVE_T *lock)
 {
@@ -63,6 +66,7 @@  int ___lock_init_recursive(_LOCK_RECURSIVE_T *lock)
     init_waitqueue_head(&lock->wait);
     return 0;
 }
+EXPORT_SYMBOL(___lock_init_recursive);
 
 int ___lock_acquire_recursive(_LOCK_RECURSIVE_T *lock)
 {
@@ -81,6 +85,7 @@  int ___lock_acquire_recursive(_LOCK_RECURSIVE_T *lock)
     lock->count++;
     return 0;
 }
+EXPORT_SYMBOL(___lock_acquire_recursive);
 
 int ___lock_try_acquire_recursive(_LOCK_RECURSIVE_T *lock)
 {
@@ -95,6 +100,7 @@  int ___lock_try_acquire_recursive(_LOCK_RECURSIVE_T *lock)
     local_irq_restore(flags);
     return ret;
 }
+EXPORT_SYMBOL(___lock_try_acquire_recursive);
 
 int ___lock_release_recursive(_LOCK_RECURSIVE_T *lock)
 {
@@ -108,5 +114,6 @@  int ___lock_release_recursive(_LOCK_RECURSIVE_T *lock)
     local_irq_restore(flags);
     return 0;
 }
+EXPORT_SYMBOL(___lock_release_recursive);
 
 #endif