|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [mini-os master] Mini-OS: add EXPORT_SYMBOL() instances to lock.c
commit ca92da51f7f511a4200f4fedd1aedbe548021a06
Author: Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Mon Nov 27 11:25:11 2023 +0100
Commit: Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Mon Dec 4 16:52:57 2023 +0000
Mini-OS: add EXPORT_SYMBOL() instances to lock.c
Add the needed instances of EXPORT_SYMBOL() to lock.c.
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
---
lock.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lock.c b/lock.c
index 61194e5..8f58344 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
--
generated by git-patchbot for /home/xen/git/mini-os.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |