Browse Source

linuxkm: eliminate duplicative WOLFSSL_KTHREADS macro (just use WOLFSSL_LINUXKM).

Daniel Pouzzner 1 year ago
parent
commit
f414e65d4b
3 changed files with 2 additions and 5 deletions
  1. 0 2
      linuxkm/linuxkm_wc_port.h
  2. 1 1
      wolfcrypt/src/wc_port.c
  3. 1 2
      wolfssl/internal.h

+ 0 - 2
linuxkm/linuxkm_wc_port.h

@@ -59,8 +59,6 @@
           (int)_xatoi_res;                              \
         })
 
-    #define WOLFSSL_KTHREADS
-
     #ifdef BUILDING_WOLFSSL
 
     #if defined(CONFIG_MIPS) && defined(HAVE_LINUXKM_PIE_SUPPORT)

+ 1 - 1
wolfcrypt/src/wc_port.c

@@ -1332,7 +1332,7 @@ int wolfSSL_CryptHwMutexUnLock(void)
             return BAD_MUTEX_E;
     }
 
-#elif defined(WOLFSSL_KTHREADS)
+#elif defined(WOLFSSL_LINUXKM)
 
     /* Linux kernel mutex routines are voids, alas. */
 

+ 1 - 2
wolfssl/internal.h

@@ -199,8 +199,7 @@
 #else
     #ifndef SINGLE_THREADED
         #if defined(WOLFSSL_LINUXKM)
-            #define WOLFSSL_KTHREADS
-            #include <linux/kthread.h>
+            /* setup is in linuxkm/linuxkm_wc_port.h */
         #elif defined(WOLFSSL_USER_MUTEX)
             /* do nothing */
         #else