staging: android: vsoc: Fix ending '(' warnings in function defintions
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a81403c426
commit
b33fa3c687
@ -148,12 +148,12 @@ static int vsoc_release(struct inode *, struct file *);
|
|||||||
static ssize_t vsoc_read(struct file *, char __user *, size_t, loff_t *);
|
static ssize_t vsoc_read(struct file *, char __user *, size_t, loff_t *);
|
||||||
static ssize_t vsoc_write(struct file *, const char __user *, size_t, loff_t *);
|
static ssize_t vsoc_write(struct file *, const char __user *, size_t, loff_t *);
|
||||||
static loff_t vsoc_lseek(struct file *filp, loff_t offset, int origin);
|
static loff_t vsoc_lseek(struct file *filp, loff_t offset, int origin);
|
||||||
static int do_create_fd_scoped_permission(
|
static int
|
||||||
struct vsoc_device_region *region_p,
|
do_create_fd_scoped_permission(struct vsoc_device_region *region_p,
|
||||||
struct fd_scoped_permission_node *np,
|
struct fd_scoped_permission_node *np,
|
||||||
struct fd_scoped_permission_arg __user *arg);
|
struct fd_scoped_permission_arg __user *arg);
|
||||||
static void do_destroy_fd_scoped_permission(
|
static void
|
||||||
struct vsoc_device_region *owner_region_p,
|
do_destroy_fd_scoped_permission(struct vsoc_device_region *owner_region_p,
|
||||||
struct fd_scoped_permission *perm);
|
struct fd_scoped_permission *perm);
|
||||||
static long do_vsoc_describe_region(struct file *,
|
static long do_vsoc_describe_region(struct file *,
|
||||||
struct vsoc_device_region __user *);
|
struct vsoc_device_region __user *);
|
||||||
@ -203,14 +203,14 @@ static inline phys_addr_t shm_off_to_phys_addr(__u32 offset)
|
|||||||
* Convenience functions to obtain the region from the inode or file.
|
* Convenience functions to obtain the region from the inode or file.
|
||||||
* Dangerous to call before validating the inode/file.
|
* Dangerous to call before validating the inode/file.
|
||||||
*/
|
*/
|
||||||
static inline struct vsoc_device_region *vsoc_region_from_inode(
|
static
|
||||||
struct inode *inode)
|
inline struct vsoc_device_region *vsoc_region_from_inode(struct inode *inode)
|
||||||
{
|
{
|
||||||
return &vsoc_dev.regions[iminor(inode)];
|
return &vsoc_dev.regions[iminor(inode)];
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct vsoc_device_region *vsoc_region_from_filep(
|
static
|
||||||
struct file *inode)
|
inline struct vsoc_device_region *vsoc_region_from_filep(struct file *inode)
|
||||||
{
|
{
|
||||||
return vsoc_region_from_inode(file_inode(inode));
|
return vsoc_region_from_inode(file_inode(inode));
|
||||||
}
|
}
|
||||||
@ -250,8 +250,8 @@ static struct pci_driver vsoc_pci_driver = {
|
|||||||
.remove = vsoc_remove_device,
|
.remove = vsoc_remove_device,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int do_create_fd_scoped_permission(
|
static int
|
||||||
struct vsoc_device_region *region_p,
|
do_create_fd_scoped_permission(struct vsoc_device_region *region_p,
|
||||||
struct fd_scoped_permission_node *np,
|
struct fd_scoped_permission_node *np,
|
||||||
struct fd_scoped_permission_arg __user *arg)
|
struct fd_scoped_permission_arg __user *arg)
|
||||||
{
|
{
|
||||||
@ -344,8 +344,8 @@ static int do_create_fd_scoped_permission(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_destroy_fd_scoped_permission_node(
|
static void
|
||||||
struct vsoc_device_region *owner_region_p,
|
do_destroy_fd_scoped_permission_node(struct vsoc_device_region *owner_region_p,
|
||||||
struct fd_scoped_permission_node *node)
|
struct fd_scoped_permission_node *node)
|
||||||
{
|
{
|
||||||
if (node) {
|
if (node) {
|
||||||
@ -358,8 +358,8 @@ static void do_destroy_fd_scoped_permission_node(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_destroy_fd_scoped_permission(
|
static void
|
||||||
struct vsoc_device_region *owner_region_p,
|
do_destroy_fd_scoped_permission(struct vsoc_device_region *owner_region_p,
|
||||||
struct fd_scoped_permission *perm)
|
struct fd_scoped_permission *perm)
|
||||||
{
|
{
|
||||||
atomic_t *owner_ptr = NULL;
|
atomic_t *owner_ptr = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user