[v2,03/15] dmaengine: idxd: Export drv_enable/disable and related functions

Message ID 20230328153535.126223-4-tom.zanussi@linux.intel.com
State New
Headers
Series crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver |

Commit Message

Tom Zanussi March 28, 2023, 3:35 p.m. UTC
  To allow idxd sub-drivers to enable and disable wqs, export them.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
 drivers/dma/idxd/device.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Dave Jiang March 28, 2023, 4:02 p.m. UTC | #1
On 3/28/23 8:35 AM, Tom Zanussi wrote:
> To allow idxd sub-drivers to enable and disable wqs, export them.
> 
> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>

Reviewed-by: Dave Jiang <dave.jiang@intel.com>

> ---
>   drivers/dma/idxd/device.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c
> index 5f321f3b4242..af1aa88a66c1 100644
> --- a/drivers/dma/idxd/device.c
> +++ b/drivers/dma/idxd/device.c
> @@ -1406,6 +1406,7 @@ int drv_enable_wq(struct idxd_wq *wq)
>   err:
>   	return rc;
>   }
> +EXPORT_SYMBOL_NS_GPL(drv_enable_wq, IDXD);
>   
>   void drv_disable_wq(struct idxd_wq *wq)
>   {
> @@ -1427,6 +1428,7 @@ void drv_disable_wq(struct idxd_wq *wq)
>   	wq->type = IDXD_WQT_NONE;
>   	wq->client_count = 0;
>   }
> +EXPORT_SYMBOL_NS_GPL(drv_disable_wq, IDXD);
>   
>   int idxd_device_drv_probe(struct idxd_dev *idxd_dev)
>   {
  

Patch

diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c
index 5f321f3b4242..af1aa88a66c1 100644
--- a/drivers/dma/idxd/device.c
+++ b/drivers/dma/idxd/device.c
@@ -1406,6 +1406,7 @@  int drv_enable_wq(struct idxd_wq *wq)
 err:
 	return rc;
 }
+EXPORT_SYMBOL_NS_GPL(drv_enable_wq, IDXD);
 
 void drv_disable_wq(struct idxd_wq *wq)
 {
@@ -1427,6 +1428,7 @@  void drv_disable_wq(struct idxd_wq *wq)
 	wq->type = IDXD_WQT_NONE;
 	wq->client_count = 0;
 }
+EXPORT_SYMBOL_NS_GPL(drv_disable_wq, IDXD);
 
 int idxd_device_drv_probe(struct idxd_dev *idxd_dev)
 {