|
@@ -61,8 +61,6 @@
|
|
|
|
|
|
#define WOLFSSL_KTHREADS
|
|
|
|
|
|
- typedef struct mutex wolfSSL_Mutex;
|
|
|
-
|
|
|
#ifdef BUILDING_WOLFSSL
|
|
|
|
|
|
#if defined(CONFIG_MIPS) && defined(HAVE_LINUXKM_PIE_SUPPORT)
|
|
@@ -578,6 +576,13 @@
|
|
|
|
|
|
#endif /* BUILDING_WOLFSSL */
|
|
|
|
|
|
+ /* if BUILDING_WOLFSSL, mutex.h will have already been included recursively
|
|
|
+ * above, with the bevy of warnings suppressed, and the below include will
|
|
|
+ * be a redundant no-op.
|
|
|
+ */
|
|
|
+ #include <linux/mutex.h>
|
|
|
+ typedef struct mutex wolfSSL_Mutex;
|
|
|
+
|
|
|
#define XMALLOC(s, h, t) ({(void)(h); (void)(t); kmalloc(s, GFP_KERNEL);})
|
|
|
#define XFREE(p, h, t) ({void* _xp; (void)(h); _xp = (p); if(_xp) kfree(_xp);})
|
|
|
#define XREALLOC(p, n, h, t) ({(void)(h); (void)(t); krealloc((p), (n), GFP_KERNEL);})
|