Browse Source

securemam-kernel: Change the scope of CONFIG_QSEECOM

Export get_client_env_object when CONFIG_QSEECOM is enabled

Change-Id: I1a52d6e86c8bc75436df55a91759b251caeaa051
Jayasri Bhattacharyya 2 years ago
parent
commit
91e3da89cb
1 changed files with 7 additions and 3 deletions
  1. 7 3
      smcinvoke/smcinvoke_kernel.c

+ 7 - 3
smcinvoke/smcinvoke_kernel.c

@@ -3,7 +3,6 @@
  * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  */
-#if !IS_ENABLED(CONFIG_QSEECOM)
 #include <linux/file.h>
 #include <linux/fs.h>
 #include <linux/fdtable.h>
@@ -14,12 +13,15 @@
 #include <linux/firmware.h>
 #include <linux/elf.h>
 #include "smcinvoke.h"
-#include "linux/qseecom.h"
 #include "smcinvoke_object.h"
+#include "IClientEnv.h"
+
+#if !IS_ENABLED(CONFIG_QSEECOM)
+#include "linux/qseecom.h"
 #include "misc/qseecom_kernel.h"
 #include "IQSEEComCompat.h"
 #include "IQSEEComCompatAppLoader.h"
-#include "IClientEnv.h"
+#endif
 
 const uint32_t CQSEEComCompatAppLoader_UID = 122;
 
@@ -302,6 +304,8 @@ int32_t get_client_env_object(struct Object *clientEnvObj)
 }
 EXPORT_SYMBOL(get_client_env_object);
 
+#if !IS_ENABLED(CONFIG_QSEECOM)
+
 static int load_app(struct qseecom_compat_context *cxt, const char *app_name)
 {
 	size_t fw_size = 0;