[PATCH] staging: ccree: fixed pointer signedness warnings.
Greg KH
gregkh at linuxfoundation.org
Thu Dec 21 17:13:37 UTC 2017
On Thu, Dec 21, 2017 at 11:25:47AM +0000, Jeremy Sowden wrote:
> Changed the types of a number of index and length variables from int to
> unsigned int. Fixes a number of warnings arising from their addresses
> being passed to functions expecting pointers to unsigned ints.
>
> Signed-off-by: Jeremy Sowden <jeremy at azazel.net>
> ---
> drivers/staging/ccree/ssi_aead.c | 13 ++++++++-----
> drivers/staging/ccree/ssi_buffer_mgr.c | 2 +-
> drivers/staging/ccree/ssi_cipher.c | 3 ++-
> drivers/staging/ccree/ssi_hash.c | 15 ++++++++-------
> 4 files changed, 19 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c
> index 1522b00e08cf..638e3b515a1f 100644
> --- a/drivers/staging/ccree/ssi_aead.c
> +++ b/drivers/staging/ccree/ssi_aead.c
> @@ -275,7 +275,8 @@ static void cc_aead_complete(struct device *dev, void *cc_req)
> aead_request_complete(areq, err);
> }
>
> -static int xcbc_setkey(struct cc_hw_desc *desc, struct cc_aead_ctx *ctx)
> +static unsigned int xcbc_setkey
> + (struct cc_hw_desc *desc, struct cc_aead_ctx *ctx)
Your changelog text does not match up with what you are doing here at
all!
More information about the devel
mailing list