diff --git a/drivers/crypto/dwc-spacc/spacc_manager.c b/drivers/crypto/dwc-spacc/spacc_manager.c index 3b26b27a998f..d42ae499e959 100644 --- a/drivers/crypto/dwc-spacc/spacc_manager.c +++ b/drivers/crypto/dwc-spacc/spacc_manager.c @@ -1,8 +1,11 @@ // SPDX-License-Identifier: GPL-2.0 +#include #include "spacc_core.h" +#ifndef MIN #define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif /* prevent reading past the end of the buffer */ static void read_from_buf(unsigned char *dst, unsigned char *src,