diff mbox series

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

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

Commit Message

Jürgen Groß Nov. 27, 2023, 10:25 a.m. UTC
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(+)

Comments

Samuel Thibault Nov. 27, 2023, 8:01 p.m. UTC | #1
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 mbox series

Patch

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)
 {