staging: sw_sync: sw_sync_timeline_ops can be static

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
Acked-by: Erik Gilling <konkers@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Changlong Xie 2013-03-05 13:39:39 +08:00 committed by Greg Kroah-Hartman
parent aeac64aac5
commit 451fb7664a

View file

@ -100,7 +100,7 @@ static void sw_sync_pt_value_str(struct sync_pt *sync_pt,
snprintf(str, size, "%d", pt->value);
}
struct sync_timeline_ops sw_sync_timeline_ops = {
static struct sync_timeline_ops sw_sync_timeline_ops = {
.driver_name = "sw_sync",
.dup = sw_sync_pt_dup,
.has_signaled = sw_sync_pt_has_signaled,
@ -137,7 +137,7 @@ EXPORT_SYMBOL(sw_sync_timeline_inc);
*/
/* opening sw_sync create a new sync obj */
int sw_sync_open(struct inode *inode, struct file *file)
static int sw_sync_open(struct inode *inode, struct file *file)
{
struct sw_sync_timeline *obj;
char task_comm[TASK_COMM_LEN];
@ -153,14 +153,14 @@ int sw_sync_open(struct inode *inode, struct file *file)
return 0;
}
int sw_sync_release(struct inode *inode, struct file *file)
static int sw_sync_release(struct inode *inode, struct file *file)
{
struct sw_sync_timeline *obj = file->private_data;
sync_timeline_destroy(&obj->obj);
return 0;
}
long sw_sync_ioctl_create_fence(struct sw_sync_timeline *obj, unsigned long arg)
static long sw_sync_ioctl_create_fence(struct sw_sync_timeline *obj, unsigned long arg)
{
int fd = get_unused_fd();
int err;
@ -206,7 +206,7 @@ long sw_sync_ioctl_create_fence(struct sw_sync_timeline *obj, unsigned long arg)
return err;
}
long sw_sync_ioctl_inc(struct sw_sync_timeline *obj, unsigned long arg)
static long sw_sync_ioctl_inc(struct sw_sync_timeline *obj, unsigned long arg)
{
u32 value;
@ -218,7 +218,7 @@ long sw_sync_ioctl_inc(struct sw_sync_timeline *obj, unsigned long arg)
return 0;
}
long sw_sync_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
static long sw_sync_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{
struct sw_sync_timeline *obj = file->private_data;
@ -247,12 +247,12 @@ static struct miscdevice sw_sync_dev = {
.fops = &sw_sync_fops,
};
int __init sw_sync_device_init(void)
static int __init sw_sync_device_init(void)
{
return misc_register(&sw_sync_dev);
}
void __exit sw_sync_device_remove(void)
static void __exit sw_sync_device_remove(void)
{
misc_deregister(&sw_sync_dev);
}