Message ID | 20231127102523.28003-16-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:06 +0100, a ecrit: > Add the needed instances of EXPORT_SYMBOL() to console.c. > > Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> > --- > V3: > - new patch > --- > console.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/console.c b/console.c > index 5d205c7d..0107b685 100644 > --- a/console.c > +++ b/console.c > @@ -125,6 +125,7 @@ void console_print(struct consfront_dev *dev, const char *data, int length) > > ring_send_fn(dev, copied_ptr, length); > } > +EXPORT_SYMBOL(console_print); > > void print(int direct, const char *fmt, va_list args) > { > @@ -155,6 +156,7 @@ void printk(const char *fmt, ...) > print(0, fmt, args); > va_end(args); > } > +EXPORT_SYMBOL(printk); > > void xprintk(const char *fmt, ...) > { > @@ -164,6 +166,8 @@ void xprintk(const char *fmt, ...) > print(1, fmt, args); > va_end(args); > } > +EXPORT_SYMBOL(xprintk); > + > void init_console(void) > { > printk("Initialising console ... "); > @@ -320,6 +324,7 @@ int xencons_ring_avail(struct consfront_dev *dev) > > return prod - cons; > } > +EXPORT_SYMBOL(xencons_ring_avail); > > int xencons_ring_recv(struct consfront_dev *dev, char *data, unsigned int len) > { > -- > 2.35.3 >
diff --git a/console.c b/console.c index 5d205c7d..0107b685 100644 --- a/console.c +++ b/console.c @@ -125,6 +125,7 @@ void console_print(struct consfront_dev *dev, const char *data, int length) ring_send_fn(dev, copied_ptr, length); } +EXPORT_SYMBOL(console_print); void print(int direct, const char *fmt, va_list args) { @@ -155,6 +156,7 @@ void printk(const char *fmt, ...) print(0, fmt, args); va_end(args); } +EXPORT_SYMBOL(printk); void xprintk(const char *fmt, ...) { @@ -164,6 +166,8 @@ void xprintk(const char *fmt, ...) print(1, fmt, args); va_end(args); } +EXPORT_SYMBOL(xprintk); + void init_console(void) { printk("Initialising console ... "); @@ -320,6 +324,7 @@ int xencons_ring_avail(struct consfront_dev *dev) return prod - cons; } +EXPORT_SYMBOL(xencons_ring_avail); int xencons_ring_recv(struct consfront_dev *dev, char *data, unsigned int len) {
Add the needed instances of EXPORT_SYMBOL() to console.c. Signed-off-by: Juergen Gross <jgross@suse.com> --- V3: - new patch --- console.c | 5 +++++ 1 file changed, 5 insertions(+)