Message ID | 20231127102523.28003-5-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:24:55 +0100, a ecrit: > Add the needed instances of EXPORT_SYMBOL() to hypervisor.c. > > Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> > --- > V3: > - new patch > --- > hypervisor.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/hypervisor.c b/hypervisor.c > index d3857e70..f2cbbc1c 100644 > --- a/hypervisor.c > +++ b/hypervisor.c > @@ -31,6 +31,8 @@ > #include <mini-os/events.h> > #include <xen/memory.h> > > +EXPORT_SYMBOL(hypercall_page); > + > #define active_evtchns(cpu,sh,idx) \ > ((sh)->evtchn_pending[idx] & \ > ~(sh)->evtchn_mask[idx]) > @@ -157,6 +159,7 @@ inline void mask_evtchn(uint32_t port) > shared_info_t *s = HYPERVISOR_shared_info; > synch_set_bit(port, &s->evtchn_mask[0]); > } > +EXPORT_SYMBOL(mask_evtchn); > > inline void unmask_evtchn(uint32_t port) > { > @@ -180,9 +183,11 @@ inline void unmask_evtchn(uint32_t port) > force_evtchn_callback(); > } > } > +EXPORT_SYMBOL(unmask_evtchn); > > inline void clear_evtchn(uint32_t port) > { > shared_info_t *s = HYPERVISOR_shared_info; > synch_clear_bit(port, &s->evtchn_pending[0]); > } > +EXPORT_SYMBOL(clear_evtchn); > -- > 2.35.3 >
diff --git a/hypervisor.c b/hypervisor.c index d3857e70..f2cbbc1c 100644 --- a/hypervisor.c +++ b/hypervisor.c @@ -31,6 +31,8 @@ #include <mini-os/events.h> #include <xen/memory.h> +EXPORT_SYMBOL(hypercall_page); + #define active_evtchns(cpu,sh,idx) \ ((sh)->evtchn_pending[idx] & \ ~(sh)->evtchn_mask[idx]) @@ -157,6 +159,7 @@ inline void mask_evtchn(uint32_t port) shared_info_t *s = HYPERVISOR_shared_info; synch_set_bit(port, &s->evtchn_mask[0]); } +EXPORT_SYMBOL(mask_evtchn); inline void unmask_evtchn(uint32_t port) { @@ -180,9 +183,11 @@ inline void unmask_evtchn(uint32_t port) force_evtchn_callback(); } } +EXPORT_SYMBOL(unmask_evtchn); inline void clear_evtchn(uint32_t port) { shared_info_t *s = HYPERVISOR_shared_info; synch_clear_bit(port, &s->evtchn_pending[0]); } +EXPORT_SYMBOL(clear_evtchn);
Add the needed instances of EXPORT_SYMBOL() to hypervisor.c. Signed-off-by: Juergen Gross <jgross@suse.com> --- V3: - new patch --- hypervisor.c | 5 +++++ 1 file changed, 5 insertions(+)