linuxkm: retain noinline from kernel headers, and use it directly in wolfssl/wolfcrypt/sp.h.

This commit is contained in:
Daniel Pouzzner
2020-08-27 16:03:03 -05:00
parent 9aa3a4c559
commit 7bc33f4ec1
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,9 @@
#include <wolfssl/wolfcrypt/ecc.h>
#if defined(_MSC_VER)
#ifdef noinline
#define SP_NOINLINE noinline
#elif defined(_MSC_VER)
#define SP_NOINLINE __declspec(noinline)
#elif defined(__ICCARM__) || defined(__IAR_SYSTEMS_ICC__)
#define SP_NOINLINE _Pragma("inline = never")

View File

@@ -95,8 +95,6 @@
*/
#undef current
#undef noinline
/* prevent gcc's mm_malloc.h from being included, since it unconditionally includes stdlib.h, which is kernel-incompatible: */
#define _MM_MALLOC_H_INCLUDED