From patchwork Sun Feb 18 13:24:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Coelho X-Patchwork-Id: 10226767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B4170602DC for ; Sun, 18 Feb 2018 13:55:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A338B28AEC for ; Sun, 18 Feb 2018 13:55:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 961A728AEF; Sun, 18 Feb 2018 13:55:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34CA328AEC for ; Sun, 18 Feb 2018 13:55:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751466AbeBRNzt (ORCPT ); Sun, 18 Feb 2018 08:55:49 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:59526 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751335AbeBRNzs (ORCPT ); Sun, 18 Feb 2018 08:55:48 -0500 Received: from 91-156-4-241.elisa-laajakaista.fi ([91.156.4.241] helo=redipa.ger.corp.intel.com) by farmhouse.coelho.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1enOxs-0001N7-8J; Sun, 18 Feb 2018 15:25:12 +0200 From: Luca Coelho To: backports@vger.kernel.org Cc: Luca Coelho Date: Sun, 18 Feb 2018 15:24:57 +0200 Message-Id: <20180218132459.11011-9-luca@coelho.fi> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180218132459.11011-1-luca@coelho.fi> References: <20180218132459.11011-1-luca@coelho.fi> X-SA-Exim-Connect-IP: 91.156.4.241 X-SA-Exim-Mail-From: luca@coelho.fi Subject: [PATCH 08/10] backport: remove stddef.h inclusions X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on farmhouse.coelho.fi) Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Luca Coelho 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 --- backport/compat/verification/mbedtls/asn1.h | 2 -- backport/compat/verification/mbedtls/md.h | 2 -- backport/compat/verification/mbedtls/oid.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/backport/compat/verification/mbedtls/asn1.h b/backport/compat/verification/mbedtls/asn1.h index bc6b48b8d9ce..46eb214be942 100644 --- a/backport/compat/verification/mbedtls/asn1.h +++ b/backport/compat/verification/mbedtls/asn1.h @@ -31,8 +31,6 @@ #include MBEDTLS_CONFIG_FILE #endif -#include - #if defined(MBEDTLS_BIGNUM_C) #include "bignum.h" #endif diff --git a/backport/compat/verification/mbedtls/md.h b/backport/compat/verification/mbedtls/md.h index 9385116c14e5..5342e4f54f59 100644 --- a/backport/compat/verification/mbedtls/md.h +++ b/backport/compat/verification/mbedtls/md.h @@ -27,8 +27,6 @@ #ifndef MBEDTLS_MD_H #define MBEDTLS_MD_H -#include - #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. */ diff --git a/backport/compat/verification/mbedtls/oid.h b/backport/compat/verification/mbedtls/oid.h index 117ee47567bf..b2ff08879aea 100644 --- a/backport/compat/verification/mbedtls/oid.h +++ b/backport/compat/verification/mbedtls/oid.h @@ -34,8 +34,6 @@ #include "asn1.h" #include "pk.h" -#include - #if defined(MBEDTLS_CIPHER_C) #include "cipher.h" #endif