aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2020-08-21 12:42:10 +0000
committerHerbert Xu <[email protected]>2020-08-25 01:24:07 +0000
commit3033fd177bcc3e0762b43cb82cf584dbb07064f1 (patch)
tree4cdc892107550c8346a804a1475feccc1847d9e2
parentcrypto: hisilicon/qm - fix the process of register algorithms to crypto (diff)
downloadkernel-3033fd177bcc3e0762b43cb82cf584dbb07064f1.tar.gz
kernel-3033fd177bcc3e0762b43cb82cf584dbb07064f1.zip
crypto: stm32 - Add missing header inclusions
The stm32 driver was missing a number of includes that we being pulled in by unrelated header files. As the indirect inclusion went away, it now fails to build. This patch adds the missing inclusions. Reported-by: kernel test robot <[email protected]> Fixes: 0c3dc787a62a ("crypto: algapi - Remove skbuff.h inclusion") Signed-off-by: Herbert Xu <[email protected]>
-rw-r--r--drivers/crypto/stm32/stm32-crc32.c2
-rw-r--r--drivers/crypto/stm32/stm32-hash.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/stm32/stm32-crc32.c b/drivers/crypto/stm32/stm32-crc32.c
index 3ba41148c2a4..5fb706b68309 100644
--- a/drivers/crypto/stm32/stm32-crc32.c
+++ b/drivers/crypto/stm32/stm32-crc32.c
@@ -7,6 +7,8 @@
#include <linux/bitrev.h>
#include <linux/clk.h>
#include <linux/crc32poly.h>
+#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c
index 03c5e6683805..092eaabda238 100644
--- a/drivers/crypto/stm32/stm32-hash.c
+++ b/drivers/crypto/stm32/stm32-hash.c
@@ -9,6 +9,7 @@
#include <linux/clk.h>
#include <linux/crypto.h>
#include <linux/delay.h>
+#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include <linux/interrupt.h>
#include <linux/io.h>