From patchwork Mon Mar 4 17:44:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1907828 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=S7OLRalm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpR273Jlfz23cw for ; Tue, 5 Mar 2024 04:46:07 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A175187FFA; Mon, 4 Mar 2024 18:45:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="S7OLRalm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E9D387FDA; Mon, 4 Mar 2024 18:45:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EF2F386F6E for ; Mon, 4 Mar 2024 18:45:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-412e41cab5aso684325e9.1 for ; Mon, 04 Mar 2024 09:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709574316; x=1710179116; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=29ZfrGGPw9deOi4jp/M1SFPGboRFKNilOsGHVs2N7NM=; b=S7OLRalmP5riUdv+Ei3Br904aaVByD7F2acPwODWfnvp9lhR+2kTLbGvTleJB18EIU aD5TzZ4YGVBgr8nqf39ouSb/9NoW9dnUu+cSCHcj44gaDnb2rAm1DstMV0IiLMi4Lz78 z0togSaLWDXuZRF87sYki/3UpVo5fT5kTkzkUjXcqH/NkVtWBOB7aEiIiNBJHlNhF49H BmO5eRkN9VVoMkohragYzs9KywtNxln63xzMpMHKW+5f3XwdT/YlQlKEKWfFSJuXtaXV Om4RbaCAH0/W2NqRVIBf1PfzKLqsYI9mwFSEUZhs8GuIiKXpeWNqZMJrfk62f1apdQRf CwDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574316; x=1710179116; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=29ZfrGGPw9deOi4jp/M1SFPGboRFKNilOsGHVs2N7NM=; b=OGn4IGpENIxqE4hWK2wtrR6muUMvRZVWbK9WyZX90vzJBfbGnbf9LeHZV+tzVPr1Of tmG8+JeIXd9s428oe04O3TFny0xq+r6sshu2NocTk9pg+QNH+65Syj7L88CiEW1Tejhb qBeYWsSUK/uGy3GijrcDdmpID0IAozzaGfRD+5dIyPEnsSr9qE+VacqvBVigNB1vXskT azJM4AH2orE0+emooXs4F3pnWxxcDRg2GqCk+srkP/PbYeAWGy4Lg3FOXil2UoA7BhHZ euNqvax3TpOnJZPEUYqrs2F1kPncgAOBwtUe6UDu634Ijg22tfhy7cU1c825YKwuEeXy qZtg== X-Gm-Message-State: AOJu0YyNtnD5ty7UIkSoQ6wgwWclLdpZLisWwBFjPRtU3AjgacLiFgRV sRHJcVcqtf+Q92pqi6VVhXW+rYBcFAtGFrd71vHkdM/cbCb12vkCvPn/TY0ZWhI= X-Google-Smtp-Source: AGHT+IFdjMHRzm6eT81ZzDa28Ao3iZlegKddAf5tV/YNkzElFU4hOX7zeRO4z1qVdeSIQnVqeJjRIg== X-Received: by 2002:a05:600c:1d1f:b0:412:c327:4064 with SMTP id l31-20020a05600c1d1f00b00412c3274064mr7695664wms.3.1709574315603; Mon, 04 Mar 2024 09:45:15 -0800 (PST) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id w15-20020a05600c474f00b00412ca1dc2e4sm11267844wmo.7.2024.03.04.09.45.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:14 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Etienne Carriere , Heinrich Schuchardt , Ilias Apalodimas , Jens Wiklander , Jorge Ramirez-Ortiz , Patrice Chotard , Simon Glass , Tom Rini Subject: [PATCH v3 6/6] tee: remove common.h inclusion Date: Mon, 4 Mar 2024 18:44:54 +0100 Message-Id: <20240304174454.1484507-7-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304174454.1484507-1-igor.opaniuk@gmail.com> References: <20240304174454.1484507-1-igor.opaniuk@gmail.com> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean The usage of the common.h include file is deprecated [1], and has already been removed from several files. Get rid of all inclusions in the "drivers/tee" directory, and replace it with required include files directly where needed. [1] doc/develop/codingstyle.rst Signed-off-by: Igor Opaniuk Reviewed-by: Ilias Apalodimas Reviewed-by: Sam Protsenko --- Changes in v2: - Fixed chimp_optee.c:37:9: error: implicit declaration of function 'memset' drivers/tee/broadcom/chimp_optee.c | 3 ++- drivers/tee/optee/core.c | 1 - drivers/tee/optee/i2c.c | 1 - drivers/tee/optee/rpmb.c | 1 - drivers/tee/optee/supplicant.c | 2 +- drivers/tee/sandbox.c | 2 +- drivers/tee/tee-uclass.c | 1 - 7 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/tee/broadcom/chimp_optee.c b/drivers/tee/broadcom/chimp_optee.c index 37f9b094f76..bd146ef2899 100644 --- a/drivers/tee/broadcom/chimp_optee.c +++ b/drivers/tee/broadcom/chimp_optee.c @@ -3,9 +3,10 @@ * Copyright 2020 Broadcom. */ -#include #include #include +#include +#include #ifdef CONFIG_CHIMP_OPTEE diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index 47f845cffe3..5fc0505c788 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -3,7 +3,6 @@ * Copyright (c) 2018-2020 Linaro Limited */ -#include #include #include #include diff --git a/drivers/tee/optee/i2c.c b/drivers/tee/optee/i2c.c index ef4e10f9912..e3fb99897c5 100644 --- a/drivers/tee/optee/i2c.c +++ b/drivers/tee/optee/i2c.c @@ -3,7 +3,6 @@ * Copyright (c) 2020 Foundries.io Ltd */ -#include #include #include #include diff --git a/drivers/tee/optee/rpmb.c b/drivers/tee/optee/rpmb.c index 5bc13757ea8..bacced6af6c 100644 --- a/drivers/tee/optee/rpmb.c +++ b/drivers/tee/optee/rpmb.c @@ -3,7 +3,6 @@ * Copyright (c) 2018 Linaro Limited */ -#include #include #include #include diff --git a/drivers/tee/optee/supplicant.c b/drivers/tee/optee/supplicant.c index f9dd874b594..8a426f53ba8 100644 --- a/drivers/tee/optee/supplicant.c +++ b/drivers/tee/optee/supplicant.c @@ -3,10 +3,10 @@ * Copyright (c) 2018, Linaro Limited */ -#include #include #include #include +#include #include #include "optee_msg.h" diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c index ec66401878c..8ad7c09efdd 100644 --- a/drivers/tee/sandbox.c +++ b/drivers/tee/sandbox.c @@ -2,7 +2,7 @@ /* * Copyright (C) 2018 Linaro Limited */ -#include + #include #include #include diff --git a/drivers/tee/tee-uclass.c b/drivers/tee/tee-uclass.c index 52412a4098e..0194d732193 100644 --- a/drivers/tee/tee-uclass.c +++ b/drivers/tee/tee-uclass.c @@ -5,7 +5,6 @@ #define LOG_CATEGORY UCLASS_TEE -#include #include #include #include