crypto: qat - Fix adf_isr_resource_free name clash
authorTadeusz Struk <tadeusz.struk@intel.com>
Mon, 10 Aug 2015 20:00:02 +0000 (13:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 11 Aug 2015 14:06:24 +0000 (22:06 +0800)
When both PF and VF drivers are build in linker complains about multiple
definition of adf_isr_resource_[alloc/free] functions.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c
drivers/crypto/qat/qat_dh895xccvf/adf_drv.h
drivers/crypto/qat/qat_dh895xccvf/adf_isr.c

index 7bbf846a53cae6d525bcbdbd7f4d02796c5c345a..a9a27eff41fb15830b04708e2d9dc3a0c29dc066 100644 (file)
@@ -143,8 +143,8 @@ void adf_init_hw_data_dh895xcciov(struct adf_hw_device_data *hw_data)
        hw_data->num_engines = ADF_DH895XCCIOV_MAX_ACCELENGINES;
        hw_data->tx_rx_gap = ADF_DH895XCCIOV_RX_RINGS_OFFSET;
        hw_data->tx_rings_mask = ADF_DH895XCCIOV_TX_RINGS_MASK;
-       hw_data->alloc_irq = adf_isr_resource_alloc;
-       hw_data->free_irq = adf_isr_resource_free;
+       hw_data->alloc_irq = adf_vf_isr_resource_alloc;
+       hw_data->free_irq = adf_vf_isr_resource_free;
        hw_data->enable_error_correction = adf_vf_void_noop;
        hw_data->init_admin_comms = adf_vf_int_noop;
        hw_data->exit_admin_comms = adf_vf_void_noop;
index 041d2a0a02157f9196655750c45fb25dd7df5073..e270e4a63d1428c388b732c1c9142dda890b016d 100644 (file)
@@ -51,7 +51,7 @@
 
 void adf_init_hw_data_dh895xcciov(struct adf_hw_device_data *hw_data);
 void adf_clean_hw_data_dh895xcciov(struct adf_hw_device_data *hw_data);
-int adf_isr_resource_alloc(struct adf_accel_dev *accel_dev);
-void adf_isr_resource_free(struct adf_accel_dev *accel_dev);
+int adf_vf_isr_resource_alloc(struct adf_accel_dev *accel_dev);
+void adf_vf_isr_resource_free(struct adf_accel_dev *accel_dev);
 void adf_update_ring_arb_enable(struct adf_etr_ring_data *ring);
 #endif
index 7fdc84a407ccc757b392abe70b590a5538c2c3c7..87c5d8adb125ae3789bc2f0ed76558f8ce0901d5 100644 (file)
@@ -226,7 +226,7 @@ static void adf_cleanup_bh(struct adf_accel_dev *accel_dev)
        tasklet_kill(&priv_data->banks[0].resp_handler);
 }
 
-void adf_isr_resource_free(struct adf_accel_dev *accel_dev)
+void adf_vf_isr_resource_free(struct adf_accel_dev *accel_dev)
 {
        struct pci_dev *pdev = accel_to_pci_dev(accel_dev);
 
@@ -237,7 +237,7 @@ void adf_isr_resource_free(struct adf_accel_dev *accel_dev)
        adf_disable_msi(accel_dev);
 }
 
-int adf_isr_resource_alloc(struct adf_accel_dev *accel_dev)
+int adf_vf_isr_resource_alloc(struct adf_accel_dev *accel_dev)
 {
        if (adf_enable_msi(accel_dev))
                goto err_out;
@@ -253,6 +253,6 @@ int adf_isr_resource_alloc(struct adf_accel_dev *accel_dev)
 
        return 0;
 err_out:
-       adf_isr_resource_free(accel_dev);
+       adf_vf_isr_resource_free(accel_dev);
        return -EFAULT;
 }