Skip to content

Commit

Permalink
staging: sw_sync: sw_sync_timeline_ops can be static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Changlong Xie authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent aeac64a commit 451fb76
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/staging/android/sw_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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];
Expand All @@ -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;
Expand Down Expand Up @@ -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;

Expand All @@ -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;

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 451fb76

Please sign in to comment.