[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@xxxxxxxx>

Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>

> ---
> 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
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.