* mapping itself - this merely takes the passed nvmap_sgt out of the stash
* and decrements the necessary cache stats.
*/
-void __nvmap_dmabuf_evict_stash_locked(struct nvmap_handle_sgt *nvmap_sgt)
+static void __nvmap_dmabuf_evict_stash_locked(
+ struct nvmap_handle_sgt *nvmap_sgt)
{
if (!list_empty(&nvmap_sgt->stash_entry))
list_del_init(&nvmap_sgt->stash_entry);
/*
* Locks the stash before doing the eviction.
*/
-void __nvmap_dmabuf_evict_stash(struct nvmap_handle_sgt *nvmap_sgt)
+static void __nvmap_dmabuf_evict_stash(struct nvmap_handle_sgt *nvmap_sgt)
{
mutex_lock(&nvmap_stashed_maps_lock);
__nvmap_dmabuf_evict_stash_locked(nvmap_sgt);
return ref;
}
-struct nvmap_handle *nvmap_duplicate_handle_id_ex(struct nvmap_client *client,
- struct nvmap_handle *h)
+static struct nvmap_handle *nvmap_duplicate_handle_id_ex(
+ struct nvmap_client *client,
+ struct nvmap_handle *h)
{
struct nvmap_handle_ref *ref = nvmap_duplicate_handle(client, h, 0);
}
EXPORT_SYMBOL(nvmap_duplicate_handle_id_ex);
-int nvmap_get_page_list_info(struct nvmap_client *client,
- struct nvmap_handle *handle, u32 *size,
- u32 *flags, u32 *nr_page, bool *contig)
+static int nvmap_get_page_list_info(
+ struct nvmap_client *client,
+ struct nvmap_handle *handle, u32 *size,
+ u32 *flags, u32 *nr_page, bool *contig)
{
struct nvmap_handle *h;
}
EXPORT_SYMBOL(nvmap_get_page_list_info);
-int nvmap_acquire_page_list(struct nvmap_client *client,
+static int nvmap_acquire_page_list(
+ struct nvmap_client *client,
struct nvmap_handle *handle, struct page **pages,
u32 nr_page)
{
}
EXPORT_SYMBOL(nvmap_acquire_page_list);
-int nvmap_release_page_list(struct nvmap_client *client,
- struct nvmap_handle *handle)
+static int nvmap_release_page_list(struct nvmap_client *client,
+ struct nvmap_handle *handle)
{
struct nvmap_handle_ref *ref;
struct nvmap_handle *h = NULL;
return -EPERM;
}
-const struct file_operations nvmap_fd_fops = {
+static const struct file_operations nvmap_fd_fops = {
.owner = THIS_MODULE,
.release = nvmap_share_release,
.mmap = nvmap_share_mmap,
return err;
}
-int nvmap_create_fd(struct nvmap_client *client, struct nvmap_handle *h)
+static int nvmap_create_fd(struct nvmap_client *client, struct nvmap_handle *h)
{
int fd;