Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5631503 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ion: Make secure table APIs public"

parents 65cde6d2 9ba1c996
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -169,6 +169,12 @@ int msm_ion_secure_buffer(struct ion_client *client, struct ion_handle *handle,
 */
int msm_ion_unsecure_buffer(struct ion_client *client,
				struct ion_handle *handle);


int msm_ion_secure_table(struct sg_table *table, enum cp_mem_usage usage,
				int flags);

int msm_ion_unsecure_table(struct sg_table *table);
#else
static inline struct ion_client *msm_ion_client_create(const char *name)
{
@@ -201,6 +207,20 @@ static inline int msm_ion_unsecure_buffer(struct ion_client *client,
{
	return -ENODEV;
}

static inline int msm_ion_secure_table(struct sg_table *table,
				enum cp_mem_usage usage,
				int flags)
{
	return -ENODEV;
}

static inline int msm_ion_unsecure_table(struct sg_table *table)
{
	return -ENODEV;
}


#endif /* CONFIG_ION */

#endif