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,
*/
/* 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];
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;
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;
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;
.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);
}