Skip to content

Commit b3bc227

Browse files
committed
src/wolfcrypto_shim.h: include linux/mm.h, not linux/slab.h, to get kvmalloc_node prototype on earlier kernels (e.g. 5.14).
1 parent 992b696 commit b3bc227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wolfcrypto_shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/* internal file misc.c at commit d9f7629296 has inline CopyString() that calls
2222
* XMALLOC().
2323
*/
24-
#include <linux/slab.h>
24+
#include <linux/mm.h>
2525
#include <wolfssl/wolfcrypt/wc_port.h>
2626
#include <wolfssl/wolfcrypt/error-crypt.h>
2727
#define WOLFSSL_MISC_INCLUDED

0 commit comments

Comments
 (0)