From: Cyrille Pitchen Date: Thu, 29 Sep 2016 16:46:57 +0000 (+0200) Subject: crypto: atmel-aes - fix compiler error when VERBOSE_DEBUG is defined X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f709dc86bc4f9d8c320ceb9a12ac304756129dd5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: atmel-aes - fix compiler error when VERBOSE_DEBUG is defined This patch fixes a compiler error when VERBOSE_DEBUG is defined. Indeed, in atmel_aes_write(), the 3rd argument of atmel_aes_reg_name() was missing. Signed-off-by: Cyrille Pitchen Reported-by: Levent Demir Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index e3d40a8dfffb..1d9e7bd3f377 100644 --- a/drivers/crypto/atmel-aes.c +++ b/drivers/crypto/atmel-aes.c @@ -317,7 +317,7 @@ static inline void atmel_aes_write(struct atmel_aes_dev *dd, char tmp[16]; dev_vdbg(dd->dev, "write 0x%08x into %s\n", value, - atmel_aes_reg_name(offset, tmp)); + atmel_aes_reg_name(offset, tmp, sizeof(tmp))); } #endif /* VERBOSE_DEBUG */