mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
ANDROID: sdcardfs: fix export symbol types
In commit c0dbfed5ff ("ANDROID: sdcardfs: Enable modular sdcardfs") a
number of core vfs functions were exported, but they needed to be set as
_GPL symbols.
Fix this up by properly setting the export type of these symbols.
Bug: 35142419
Cc: Daniel Rosenberg <drosen@google.com>
Cc: Alistair Strachan <astrachan@google.com>
Cc: Yongqin Liu <yongqin.liu@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I3169efeb5b525c536958b1354318cf0fcd07e6e1
This commit is contained in:
@@ -46,7 +46,7 @@ void set_fs_pwd(struct fs_struct *fs, const struct path *path)
|
||||
if (old_pwd.dentry)
|
||||
path_put(&old_pwd);
|
||||
}
|
||||
EXPORT_SYMBOL(set_fs_pwd);
|
||||
EXPORT_SYMBOL_GPL(set_fs_pwd);
|
||||
|
||||
static inline int replace_path(struct path *p, const struct path *old, const struct path *new)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ void free_fs_struct(struct fs_struct *fs)
|
||||
path_put(&fs->pwd);
|
||||
kmem_cache_free(fs_cachep, fs);
|
||||
}
|
||||
EXPORT_SYMBOL(free_fs_struct);
|
||||
EXPORT_SYMBOL_GPL(free_fs_struct);
|
||||
|
||||
void exit_fs(struct task_struct *tsk)
|
||||
{
|
||||
|
||||
@@ -470,7 +470,7 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
|
||||
return ret;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(vfs_read);
|
||||
EXPORT_SYMBOL_GPL(vfs_read);
|
||||
|
||||
static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
|
||||
{
|
||||
@@ -569,7 +569,7 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(vfs_write);
|
||||
EXPORT_SYMBOL_GPL(vfs_write);
|
||||
|
||||
/* file_ppos returns &file->f_pos or NULL if file is stream */
|
||||
static inline loff_t *file_ppos(struct file *file)
|
||||
|
||||
Reference in New Issue
Block a user