Re: [PATCH 1/4] crypto: qat: Fix random config build warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 24, 2014 at 03:19:24PM -0700, Tadeusz Struk wrote:
> Fix random config build warnings:
> 
> Implicit-function-declaration ‘__raw_writel’
> Cast to pointer from integer of different size [-Wint-to-pointer-cast]
> 
> Reviewed-by: Bruce Allan <bruce.w.allan@xxxxxxxxx>
> Signed-off-by: Tadeusz Struk <tadeusz.struk@xxxxxxxxx>
> ---
>  drivers/crypto/qat/qat_common/adf_accel_devices.h |    1 +
>  drivers/crypto/qat/qat_common/qat_algs.c          |    6 +++---
>  2 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/crypto/qat/qat_common/adf_accel_devices.h b/drivers/crypto/qat/qat_common/adf_accel_devices.h
> index f3206d9..9282381 100644
> --- a/drivers/crypto/qat/qat_common/adf_accel_devices.h
> +++ b/drivers/crypto/qat/qat_common/adf_accel_devices.h
> @@ -50,6 +50,7 @@
>  #include <linux/atomic.h>
>  #include <linux/list.h>
>  #include <linux/proc_fs.h>
> +#include <linux/io.h>
>  #include "adf_cfg_common.h"
>  
>  #define PCI_VENDOR_ID_INTEL 0x8086
> diff --git a/drivers/crypto/qat/qat_common/qat_algs.c b/drivers/crypto/qat/qat_common/qat_algs.c
> index 193b753..c4e8010 100644
> --- a/drivers/crypto/qat/qat_common/qat_algs.c
> +++ b/drivers/crypto/qat/qat_common/qat_algs.c
> @@ -745,7 +745,7 @@ void qat_alg_callback(void *resp)
>  {
>  	struct icp_qat_fw_la_resp *qat_resp = resp;
>  	struct qat_crypto_request *qat_req =
> -			(void *)(dma_addr_t)qat_resp->opaque_data;
> +				(void *)(__force long)qat_resp->opaque_data;

Why not just get rid of the (__force long) altogether?

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux