backport: remove stddef.h inclusions
authorLuca Coelho <luciano.coelho@intel.com>
Sun, 18 Feb 2018 13:24:57 +0000 (15:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 23 Feb 2018 11:34:42 +0000 (12:34 +0100)
The verification code was copied from userspace code which includes
stddef.h.  In the kernel, this header should not be included, so
remove those cases.

Fixes: 988e2af4b7a0 ("backports: add signature verification code")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/compat/verification/mbedtls/asn1.h
backport/compat/verification/mbedtls/md.h
backport/compat/verification/mbedtls/oid.h

index bc6b48b8d9ce48ec115a06b4f462e60d46d41a9e..46eb214be942f219a648672ec7660051bf3b722b 100644 (file)
@@ -31,8 +31,6 @@
 #include MBEDTLS_CONFIG_FILE
 #endif
 
-#include <stddef.h>
-
 #if defined(MBEDTLS_BIGNUM_C)
 #include "bignum.h"
 #endif
index 9385116c14e53c2ffc32ff6f7cae9ce5c0d66de2..5342e4f54f592fd04167dc90ea7ff8be629618a6 100644 (file)
@@ -27,8 +27,6 @@
 #ifndef MBEDTLS_MD_H
 #define MBEDTLS_MD_H
 
-#include <stddef.h>
-
 #define MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE                -0x5080  /**< The selected feature is not available. */
 #define MBEDTLS_ERR_MD_BAD_INPUT_DATA                     -0x5100  /**< Bad input parameters to function. */
 #define MBEDTLS_ERR_MD_ALLOC_FAILED                       -0x5180  /**< Failed to allocate memory. */
index 117ee47567bfc0a081a2c43dfab1702b8bc521b5..b2ff08879aea03db411b1ddcd9d4aa7bf5372cbd 100644 (file)
@@ -34,8 +34,6 @@
 #include "asn1.h"
 #include "pk.h"
 
-#include <stddef.h>
-
 #if defined(MBEDTLS_CIPHER_C)
 #include "cipher.h"
 #endif