]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tee: remove common.h inclusion
authorIgor Opaniuk <igor.opaniuk@gmail.com>
Thu, 4 Apr 2024 13:19:51 +0000 (15:19 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 18 Apr 2024 13:04:48 +0000 (16:04 +0300)
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

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tee/broadcom/chimp_optee.c
drivers/tee/optee/core.c
drivers/tee/optee/i2c.c
drivers/tee/optee/rpmb.c
drivers/tee/optee/supplicant.c
drivers/tee/sandbox.c
drivers/tee/tee-uclass.c

index 37f9b094f767abd56ed7299732df5a20aaca273b..bd146ef28997d667a70756e0dfa6cc627fb6f273 100644 (file)
@@ -3,9 +3,10 @@
  * Copyright 2020 Broadcom.
  */
 
-#include <common.h>
 #include <tee.h>
 #include <broadcom/chimp.h>
+#include <linux/errno.h>
+#include <string.h>
 
 #ifdef CONFIG_CHIMP_OPTEE
 
index 47f845cffe378d78cfdb176dab17b3d0c7ca81ad..5fc0505c788d8c031008b21460ed7c4f4957f081 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (c) 2018-2020 Linaro Limited
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
index ef4e10f99121586aac3dd7cc69acfbd8872c3e22..e3fb99897c5500113f31ec9b509be623e5ba1207 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (c) 2020 Foundries.io Ltd
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <tee.h>
index 5bc13757ea8d72930a84e7001223fbe847b542c3..bacced6af6cf56691b9a6cfb3db4aa4393c6255e 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (c) 2018 Linaro Limited
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <tee.h>
index f9dd874b594b9c28fd57d31752f7b62928899a49..8a426f53ba8ef031c486ad2a026d399e7f32f91e 100644 (file)
@@ -3,10 +3,10 @@
  * Copyright (c) 2018, Linaro Limited
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <tee.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 
 #include "optee_msg.h"
index ec66401878cfc571cd8ebcb5001302cc8d31ccdf..8ad7c09efdd858039e0107023f45ebfdb0a4e824 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Copyright (C) 2018 Linaro Limited
  */
-#include <common.h>
+
 #include <dm.h>
 #include <sandboxtee.h>
 #include <tee.h>
index 52412a4098e4cef6fa737bdfc19020305f137146..0194d73219317bf6f4620693549cca77482669e9 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_TEE
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>