From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE274C433FE for ; Wed, 23 Nov 2022 14:10:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B43C852DF; Wed, 23 Nov 2022 15:10:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="D0LGQI7e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 19ABE852EC; Wed, 23 Nov 2022 15:10:01 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 759BE8521B for ; Wed, 23 Nov 2022 15:09:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jitloonl@ecsmtp.png.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669212598; x=1700748598; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=E6BEYjwTPWLiIIktyNYQdpOuM6Bd4pdsGvjhK4YCAq0=; b=D0LGQI7e3c+L9XWp2us1hnmG5kbi5nk4cZbZharUZocYT4l2XNwkzjdy HQxApOY0FPoCnHBK6KMUBXccmOf7HVMJD0HzoBPealw3Gpl+wmMsAt9Yv aKumvF/lvgCvGwi20AGe47mI2N+MOK0Vjh+oS1NWWLmxfiQ5700wxkS+M kUVrgugeCLAzbSRMAe/y3WJZwhmxgzQF7Q9oB69Sb4q6CvwZ/kCaLsNLE x2RJREmwJspsfgPxrkT/0tKrUs0uaIvKgFdP7ZNpvmTTbsAIa+SF7smru oxqgpLy8w2l/0IPekN5oShMPrLw04uS/K/l4MaL8jsGm/oy4zQzvr0XYK Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="315893178" X-IronPort-AV: E=Sophos;i="5.96,187,1665471600"; d="scan'208";a="315893178" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2022 06:09:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="644127773" X-IronPort-AV: E=Sophos;i="5.96,187,1665471600"; d="scan'208";a="644127773" Received: from pglmail07.png.intel.com ([10.221.193.207]) by fmsmga007.fm.intel.com with ESMTP; 23 Nov 2022 06:09:51 -0800 Received: from localhost (pgli0028.png.intel.com [10.221.84.177]) by pglmail07.png.intel.com (Postfix) with ESMTP id C8174482B; Wed, 23 Nov 2022 22:09:50 +0800 (+08) Received: by localhost (Postfix, from userid 12048045) id 8F936E0095B; Wed, 23 Nov 2022 22:09:50 +0800 (+08) From: Jit Loon Lim To: u-boot@lists.denx.de Cc: Jagan Teki , Vignesh R , Marek , Simon , Tien Fong , Kok Kiang , Siew Chin , Sin Hui , Raaj , Dinesh , Boon Khai , Alif , Teik Heng , Hazim , Jit Loon Lim , Sieu Mun Tang Subject: [PATCH] arm: socfpga: soc64: Add malloc.h Date: Wed, 23 Nov 2022 22:09:49 +0800 Message-Id: <20221123140949.7057-1-jit.loon.lim@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Tien Fong Chee HSD #1308580006: Some compilers complaint implicit declaration of malloc function, and some compilers have no this issue. Adding malloc.h to resolve this issue. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/secure_vab.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-socfpga/secure_vab.c b/arch/arm/mach-socfpga/secure_vab.c index e2db588506..02ebf89b85 100644 --- a/arch/arm/mach-socfpga/secure_vab.c +++ b/arch/arm/mach-socfpga/secure_vab.c @@ -1,18 +1,19 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (C) 2020 Intel Corporation + * Copyright (C) 2020-2021 Intel Corporation * */ +#include +#include +#include +#include #include #include #include #include -#include -#include #include #include -#include #define CHUNKSZ_PER_WD_RESET (256 * SZ_1K) -- 2.26.2