Pārlūkot izejas kodu

securemsm-kernel: smcinvoke: Move TZ min buf size to header file

Move SMCINVOKE_TZ_MIN_BUF_SIZE to header file so that it can
be used by userspace modules.

Change-Id: I1f690c2507c6694175c317fe14fcca21cc907714
Anmolpreet Kaur 2 gadi atpakaļ
vecāks
revīzija
50fd822191
2 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 0
      include/linux/smcinvoke.h
  2. 0 1
      smcinvoke/smcinvoke.c

+ 1 - 0
include/linux/smcinvoke.h

@@ -11,6 +11,7 @@
 
 #define SMCINVOKE_USERSPACE_OBJ_NULL	-1
 #define DEFAULT_CB_OBJ_THREAD_CNT	4
+#define SMCINVOKE_TZ_MIN_BUF_SIZE	4096
 
 struct smcinvoke_buf {
 	__u64 addr;

+ 0 - 1
smcinvoke/smcinvoke.c

@@ -47,7 +47,6 @@
 #define SMCINVOKE_DEV				"smcinvoke"
 #define SMCINVOKE_TZ_ROOT_OBJ			1
 #define SMCINVOKE_TZ_OBJ_NULL			0
-#define SMCINVOKE_TZ_MIN_BUF_SIZE		4096
 #define SMCINVOKE_ARGS_ALIGN_SIZE		(sizeof(uint64_t))
 #define SMCINVOKE_NEXT_AVAILABLE_TXN		0
 #define SMCINVOKE_REQ_PLACED			1