diff mbox series

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

Message ID 20231127102523.28003-18-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 gntmap.c.

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

Comments

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

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

> ---
> V3:
> - new patch
> ---
>  gntmap.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/gntmap.c b/gntmap.c
> index 3422ab23..5f57d6b3 100644
> --- a/gntmap.c
> +++ b/gntmap.c
> @@ -106,6 +106,7 @@ gntmap_set_max_grants(struct gntmap *map, int count)
>      map->nentries = count;
>      return 0;
>  }
> +EXPORT_SYMBOL(gntmap_set_max_grants);
>  
>  static int
>  _gntmap_unmap_grant_ref(struct gntmap *map, int idx)
> @@ -209,6 +210,7 @@ gntmap_munmap(struct gntmap *map, unsigned long start_address, int count)
>  
>      return 0;
>  }
> +EXPORT_SYMBOL(gntmap_munmap);
>  
>  void*
>  gntmap_map_grant_refs(struct gntmap *map, 
> @@ -251,6 +253,7 @@ gntmap_map_grant_refs(struct gntmap *map,
>  
>      return (void*) addr;
>  }
> +EXPORT_SYMBOL(gntmap_map_grant_refs);
>  
>  void
>  gntmap_init(struct gntmap *map)
> @@ -259,6 +262,7 @@ gntmap_init(struct gntmap *map)
>      map->nentries = 0;
>      map->entries = NULL;
>  }
> +EXPORT_SYMBOL(gntmap_init);
>  
>  void
>  gntmap_fini(struct gntmap *map)
> @@ -281,3 +285,4 @@ gntmap_fini(struct gntmap *map)
>      map->entries = NULL;
>      map->nentries = 0;
>  }
> +EXPORT_SYMBOL(gntmap_fini);
> -- 
> 2.35.3
>
diff mbox series

Patch

diff --git a/gntmap.c b/gntmap.c
index 3422ab23..5f57d6b3 100644
--- a/gntmap.c
+++ b/gntmap.c
@@ -106,6 +106,7 @@  gntmap_set_max_grants(struct gntmap *map, int count)
     map->nentries = count;
     return 0;
 }
+EXPORT_SYMBOL(gntmap_set_max_grants);
 
 static int
 _gntmap_unmap_grant_ref(struct gntmap *map, int idx)
@@ -209,6 +210,7 @@  gntmap_munmap(struct gntmap *map, unsigned long start_address, int count)
 
     return 0;
 }
+EXPORT_SYMBOL(gntmap_munmap);
 
 void*
 gntmap_map_grant_refs(struct gntmap *map, 
@@ -251,6 +253,7 @@  gntmap_map_grant_refs(struct gntmap *map,
 
     return (void*) addr;
 }
+EXPORT_SYMBOL(gntmap_map_grant_refs);
 
 void
 gntmap_init(struct gntmap *map)
@@ -259,6 +262,7 @@  gntmap_init(struct gntmap *map)
     map->nentries = 0;
     map->entries = NULL;
 }
+EXPORT_SYMBOL(gntmap_init);
 
 void
 gntmap_fini(struct gntmap *map)
@@ -281,3 +285,4 @@  gntmap_fini(struct gntmap *map)
     map->entries = NULL;
     map->nentries = 0;
 }
+EXPORT_SYMBOL(gntmap_fini);