diff mbox series

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

Message ID 20231127102523.28003-10-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/math.c.

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

Comments

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

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

> ---
> V3:
> - new patch
> ---
>  lib/math.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/lib/math.c b/lib/math.c
> index b98cc1d2..9ee9fcdb 100644
> --- a/lib/math.c
> +++ b/lib/math.c
> @@ -338,6 +338,7 @@ __qdivrem(u_quad_t uq, u_quad_t vq, u_quad_t *arq)
>  	tmp.ul[L] = COMBINE(qspace[3], qspace[4]);
>  	return (tmp.q);
>  }
> +EXPORT_SYMBOL(__qdivrem);
>  
>  /*
>   * From
> @@ -365,6 +366,7 @@ __divdi3(quad_t a, quad_t b)
>  	uq = __qdivrem(ua, ub, (u_quad_t *)0);
>  	return (neg ? -uq : uq);
>  }
> +EXPORT_SYMBOL(__divdi3);
>  
>  /*
>   * From
> @@ -379,6 +381,7 @@ __udivdi3(u_quad_t a, u_quad_t b)
>  {
>  	return (__qdivrem(a, b, (u_quad_t *)0));
>  }
> +EXPORT_SYMBOL(__udivdi3);
>  
>  /*
>   * From
> @@ -396,6 +399,7 @@ __umoddi3(u_quad_t a, u_quad_t b)
>  	(void)__qdivrem(a, b, &r);
>  	return (r);
>  }
> +EXPORT_SYMBOL(__umoddi3);
>  
>  /*
>   * Returns the quotient and places remainder in r
> @@ -405,6 +409,7 @@ __udivmoddi4(u_quad_t a, u_quad_t b, u_quad_t *r)
>  {
>  	return __qdivrem(a, b, r);
>  }
> +EXPORT_SYMBOL(__udivmoddi4);
>  
>  /*
>   * From
> @@ -434,3 +439,4 @@ __moddi3(quad_t a, quad_t b)
>  	(void)__qdivrem(ua, ub, &ur);
>  	return (neg ? -ur : ur);
>  }
> +EXPORT_SYMBOL(__moddi3);
> -- 
> 2.35.3
>
diff mbox series

Patch

diff --git a/lib/math.c b/lib/math.c
index b98cc1d2..9ee9fcdb 100644
--- a/lib/math.c
+++ b/lib/math.c
@@ -338,6 +338,7 @@  __qdivrem(u_quad_t uq, u_quad_t vq, u_quad_t *arq)
 	tmp.ul[L] = COMBINE(qspace[3], qspace[4]);
 	return (tmp.q);
 }
+EXPORT_SYMBOL(__qdivrem);
 
 /*
  * From
@@ -365,6 +366,7 @@  __divdi3(quad_t a, quad_t b)
 	uq = __qdivrem(ua, ub, (u_quad_t *)0);
 	return (neg ? -uq : uq);
 }
+EXPORT_SYMBOL(__divdi3);
 
 /*
  * From
@@ -379,6 +381,7 @@  __udivdi3(u_quad_t a, u_quad_t b)
 {
 	return (__qdivrem(a, b, (u_quad_t *)0));
 }
+EXPORT_SYMBOL(__udivdi3);
 
 /*
  * From
@@ -396,6 +399,7 @@  __umoddi3(u_quad_t a, u_quad_t b)
 	(void)__qdivrem(a, b, &r);
 	return (r);
 }
+EXPORT_SYMBOL(__umoddi3);
 
 /*
  * Returns the quotient and places remainder in r
@@ -405,6 +409,7 @@  __udivmoddi4(u_quad_t a, u_quad_t b, u_quad_t *r)
 {
 	return __qdivrem(a, b, r);
 }
+EXPORT_SYMBOL(__udivmoddi4);
 
 /*
  * From
@@ -434,3 +439,4 @@  __moddi3(quad_t a, quad_t b)
 	(void)__qdivrem(ua, ub, &ur);
 	return (neg ? -ur : ur);
 }
+EXPORT_SYMBOL(__moddi3);