linux/drivers/crypto/qat
Arnd Bergmann 8c9478a400 crypto: qat - reduce stack size with KASAN
Passing the register value by reference here leads a large amount of stack being
used when CONFIG_KASAN is enabled:

drivers/crypto/qat/qat_common/qat_hal.c: In function 'qat_hal_exec_micro_inst.constprop':
drivers/crypto/qat/qat_common/qat_hal.c:963:1: error: the frame size of 1792 bytes is larger than 1536 bytes [-Werror=frame-larger-than=]

Changing the register-read function to return the value instead reduces the stack
size to around 800 bytes, most of which is for the 'savuwords' array. The function
now no longer returns an error code, but nothing ever evaluated that anyway.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-12-22 19:52:39 +11:00
..
qat_c3xxx crypto: qat - modify format of dev top level debugfs entries 2016-12-30 19:52:34 +08:00
qat_c3xxxvf crypto: qat - modify format of dev top level debugfs entries 2016-12-30 19:52:34 +08:00
qat_c62x crypto: qat - modify format of dev top level debugfs entries 2016-12-30 19:52:34 +08:00
qat_c62xvf crypto: qat - modify format of dev top level debugfs entries 2016-12-30 19:52:34 +08:00
qat_common crypto: qat - reduce stack size with KASAN 2017-12-22 19:52:39 +11:00
qat_dh895xcc crypto: qat - modify format of dev top level debugfs entries 2016-12-30 19:52:34 +08:00
qat_dh895xccvf crypto: qat - modify format of dev top level debugfs entries 2016-12-30 19:52:34 +08:00
Kconfig crypto: qat - Add DH support 2016-07-11 18:03:10 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00