Message ID | 20231127102523.28003-19-jgross@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Mini-OS: hide mini-os internal symbols | expand |
Juergen Gross, le lun. 27 nov. 2023 11:25:09 +0100, a ecrit: > Add the needed instances of EXPORT_SYMBOL() to gnttab.c. > > Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> > --- > V3: > - new patch > --- > gnttab.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/gnttab.c b/gnttab.c > index 6978a9bc..8168ed5d 100644 > --- a/gnttab.c > +++ b/gnttab.c > @@ -80,6 +80,7 @@ gnttab_grant_access(domid_t domid, unsigned long frame, int readonly) > > return ref; > } > +EXPORT_SYMBOL(gnttab_grant_access); > > grant_ref_t > gnttab_grant_transfer(domid_t domid, unsigned long pfn) > @@ -94,6 +95,7 @@ gnttab_grant_transfer(domid_t domid, unsigned long pfn) > > return ref; > } > +EXPORT_SYMBOL(gnttab_grant_transfer); > > int > gnttab_end_access(grant_ref_t ref) > @@ -114,6 +116,7 @@ gnttab_end_access(grant_ref_t ref) > put_free_entry(ref); > return 1; > } > +EXPORT_SYMBOL(gnttab_end_access); > > unsigned long > gnttab_end_transfer(grant_ref_t ref) > @@ -144,6 +147,7 @@ gnttab_end_transfer(grant_ref_t ref) > > return frame; > } > +EXPORT_SYMBOL(gnttab_end_transfer); > > grant_ref_t > gnttab_alloc_and_grant(void **map) > @@ -156,6 +160,7 @@ gnttab_alloc_and_grant(void **map) > gref = gnttab_grant_access(0, mfn, 0); > return gref; > } > +EXPORT_SYMBOL(gnttab_alloc_and_grant); > > static const char * const gnttabop_error_msgs[] = GNTTABOP_error_msgs; > > @@ -168,6 +173,7 @@ gnttabop_error(int16_t status) > else > return gnttabop_error_msgs[status]; > } > +EXPORT_SYMBOL(gnttabop_error); > > void > init_gnttab(void) > -- > 2.35.3 >
diff --git a/gnttab.c b/gnttab.c index 6978a9bc..8168ed5d 100644 --- a/gnttab.c +++ b/gnttab.c @@ -80,6 +80,7 @@ gnttab_grant_access(domid_t domid, unsigned long frame, int readonly) return ref; } +EXPORT_SYMBOL(gnttab_grant_access); grant_ref_t gnttab_grant_transfer(domid_t domid, unsigned long pfn) @@ -94,6 +95,7 @@ gnttab_grant_transfer(domid_t domid, unsigned long pfn) return ref; } +EXPORT_SYMBOL(gnttab_grant_transfer); int gnttab_end_access(grant_ref_t ref) @@ -114,6 +116,7 @@ gnttab_end_access(grant_ref_t ref) put_free_entry(ref); return 1; } +EXPORT_SYMBOL(gnttab_end_access); unsigned long gnttab_end_transfer(grant_ref_t ref) @@ -144,6 +147,7 @@ gnttab_end_transfer(grant_ref_t ref) return frame; } +EXPORT_SYMBOL(gnttab_end_transfer); grant_ref_t gnttab_alloc_and_grant(void **map) @@ -156,6 +160,7 @@ gnttab_alloc_and_grant(void **map) gref = gnttab_grant_access(0, mfn, 0); return gref; } +EXPORT_SYMBOL(gnttab_alloc_and_grant); static const char * const gnttabop_error_msgs[] = GNTTABOP_error_msgs; @@ -168,6 +173,7 @@ gnttabop_error(int16_t status) else return gnttabop_error_msgs[status]; } +EXPORT_SYMBOL(gnttabop_error); void init_gnttab(void)
Add the needed instances of EXPORT_SYMBOL() to gnttab.c. Signed-off-by: Juergen Gross <jgross@suse.com> --- V3: - new patch --- gnttab.c | 6 ++++++ 1 file changed, 6 insertions(+)