[RFC PATCH] uacce: uacce_ctrl_open() can be static
kernel test robot
lkp at intel.com
Thu Jan 21 22:43:28 AEDT 2021
Reported-by: kernel test robot <lkp at intel.com>
Signed-off-by: kernel test robot <lkp at intel.com>
---
uacce.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c
index b8ac4080a7d6f76..11cbb69422221a5 100644
--- a/drivers/misc/uacce/uacce.c
+++ b/drivers/misc/uacce/uacce.c
@@ -508,7 +508,7 @@ void uacce_remove(struct uacce_device *uacce)
}
EXPORT_SYMBOL_GPL(uacce_remove);
-int uacce_ctrl_open(struct inode *inode, struct file *file)
+static int uacce_ctrl_open(struct inode *inode, struct file *file)
{
struct uacce_pin_container *p;
@@ -522,7 +522,7 @@ int uacce_ctrl_open(struct inode *inode, struct file *file)
return 0;
}
-int uacce_ctrl_release(struct inode *inode, struct file *file)
+static int uacce_ctrl_release(struct inode *inode, struct file *file)
{
struct uacce_pin_container *priv = file->private_data;
struct pin_pages *p;
More information about the Linux-accelerators
mailing list