diff mbox series

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

Message ID 20231127102523.28003-28-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 pcifront.c.

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

Comments

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

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

> ---
> V3:
> - new patch
> ---
>  pcifront.c | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/pcifront.c b/pcifront.c
> index 56423562..f1d69396 100644
> --- a/pcifront.c
> +++ b/pcifront.c
> @@ -278,6 +278,7 @@ error:
>      free_pcifront(dev);
>      return NULL;
>  }
> +EXPORT_SYMBOL(init_pcifront);
>  
>  void pcifront_scan(struct pcifront_dev *dev, void (*func)(unsigned int domain, unsigned int bus, unsigned slot, unsigned int fun))
>  {
> @@ -319,6 +320,7 @@ void pcifront_scan(struct pcifront_dev *dev, void (*func)(unsigned int domain, u
>      }
>      free(path);
>  }
> +EXPORT_SYMBOL(pcifront_scan);
>  
>  void shutdown_pcifront(struct pcifront_dev *dev)
>  {
> @@ -377,6 +379,7 @@ close_pcifront:
>      if (!err)
>          free_pcifront(dev);
>  }
> +EXPORT_SYMBOL(shutdown_pcifront);
>  
>  int pcifront_physical_to_virtual (struct pcifront_dev *dev,
>                                    unsigned int *dom,
> @@ -451,6 +454,7 @@ void pcifront_op(struct pcifront_dev *dev, struct xen_pci_op *op)
>      rmb();
>      *op = dev->info->op;
>  }
> +EXPORT_SYMBOL(pcifront_op);
>  
>  int pcifront_conf_read(struct pcifront_dev *dev,
>                         unsigned int dom,
> @@ -481,6 +485,7 @@ int pcifront_conf_read(struct pcifront_dev *dev,
>  
>      return 0;
>  }
> +EXPORT_SYMBOL(pcifront_conf_read);
>  
>  int pcifront_conf_write(struct pcifront_dev *dev,
>                          unsigned int dom,
> @@ -508,6 +513,7 @@ int pcifront_conf_write(struct pcifront_dev *dev,
>  
>      return op.err;
>  }
> +EXPORT_SYMBOL(pcifront_conf_write);
>  
>  int pcifront_enable_msi(struct pcifront_dev *dev,
>                          unsigned int dom,
> @@ -533,6 +539,7 @@ int pcifront_enable_msi(struct pcifront_dev *dev,
>      else
>          return op.value;
>  }
> +EXPORT_SYMBOL(pcifront_enable_msi);
>  
>  int pcifront_disable_msi(struct pcifront_dev *dev,
>                           unsigned int dom,
> @@ -555,6 +562,7 @@ int pcifront_disable_msi(struct pcifront_dev *dev,
>      
>      return op.err;
>  }
> +EXPORT_SYMBOL(pcifront_disable_msi);
>  
>  int pcifront_enable_msix(struct pcifront_dev *dev,
>                           unsigned int dom,
> @@ -589,7 +597,7 @@ int pcifront_enable_msix(struct pcifront_dev *dev,
>  
>      return 0;
>  }
> -
> +EXPORT_SYMBOL(pcifront_enable_msix);
>  
>  int pcifront_disable_msix(struct pcifront_dev *dev,
>                            unsigned int dom,
> @@ -612,3 +620,4 @@ int pcifront_disable_msix(struct pcifront_dev *dev,
>      
>      return op.err;
>  }
> +EXPORT_SYMBOL(pcifront_disable_msix);
> -- 
> 2.35.3
>
diff mbox series

Patch

diff --git a/pcifront.c b/pcifront.c
index 56423562..f1d69396 100644
--- a/pcifront.c
+++ b/pcifront.c
@@ -278,6 +278,7 @@  error:
     free_pcifront(dev);
     return NULL;
 }
+EXPORT_SYMBOL(init_pcifront);
 
 void pcifront_scan(struct pcifront_dev *dev, void (*func)(unsigned int domain, unsigned int bus, unsigned slot, unsigned int fun))
 {
@@ -319,6 +320,7 @@  void pcifront_scan(struct pcifront_dev *dev, void (*func)(unsigned int domain, u
     }
     free(path);
 }
+EXPORT_SYMBOL(pcifront_scan);
 
 void shutdown_pcifront(struct pcifront_dev *dev)
 {
@@ -377,6 +379,7 @@  close_pcifront:
     if (!err)
         free_pcifront(dev);
 }
+EXPORT_SYMBOL(shutdown_pcifront);
 
 int pcifront_physical_to_virtual (struct pcifront_dev *dev,
                                   unsigned int *dom,
@@ -451,6 +454,7 @@  void pcifront_op(struct pcifront_dev *dev, struct xen_pci_op *op)
     rmb();
     *op = dev->info->op;
 }
+EXPORT_SYMBOL(pcifront_op);
 
 int pcifront_conf_read(struct pcifront_dev *dev,
                        unsigned int dom,
@@ -481,6 +485,7 @@  int pcifront_conf_read(struct pcifront_dev *dev,
 
     return 0;
 }
+EXPORT_SYMBOL(pcifront_conf_read);
 
 int pcifront_conf_write(struct pcifront_dev *dev,
                         unsigned int dom,
@@ -508,6 +513,7 @@  int pcifront_conf_write(struct pcifront_dev *dev,
 
     return op.err;
 }
+EXPORT_SYMBOL(pcifront_conf_write);
 
 int pcifront_enable_msi(struct pcifront_dev *dev,
                         unsigned int dom,
@@ -533,6 +539,7 @@  int pcifront_enable_msi(struct pcifront_dev *dev,
     else
         return op.value;
 }
+EXPORT_SYMBOL(pcifront_enable_msi);
 
 int pcifront_disable_msi(struct pcifront_dev *dev,
                          unsigned int dom,
@@ -555,6 +562,7 @@  int pcifront_disable_msi(struct pcifront_dev *dev,
     
     return op.err;
 }
+EXPORT_SYMBOL(pcifront_disable_msi);
 
 int pcifront_enable_msix(struct pcifront_dev *dev,
                          unsigned int dom,
@@ -589,7 +597,7 @@  int pcifront_enable_msix(struct pcifront_dev *dev,
 
     return 0;
 }
-
+EXPORT_SYMBOL(pcifront_enable_msix);
 
 int pcifront_disable_msix(struct pcifront_dev *dev,
                           unsigned int dom,
@@ -612,3 +620,4 @@  int pcifront_disable_msix(struct pcifront_dev *dev,
     
     return op.err;
 }
+EXPORT_SYMBOL(pcifront_disable_msix);