drivers/target/target_core_user.c:1987:6: warning: symbol 'tcmu_ioctl_copy_between_sgl_and_iovec' was not declared. Should it be static? drivers/target/target_core_user.c:2031:6: warning: symbol 'tcmu_ioctl' was not declared. Should it be static? Reported-by: kernel test robot <lkp@xxxxxxxxx> Signed-off-by: kernel test robot <lkp@xxxxxxxxx> --- drivers/target/target_core_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index afea088f24862b..ea1af59e03deff 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1984,7 +1984,7 @@ static int tcmu_release(struct uio_info *info, struct inode *inode) return 0; } -long tcmu_ioctl_copy_between_sgl_and_iovec(struct tcmu_cmd *tcmu_cmd, +static long tcmu_ioctl_copy_between_sgl_and_iovec(struct tcmu_cmd *tcmu_cmd, struct iovec __user *uiovec, unsigned long vcnt, bool is_copy_to_sgl) @@ -2028,7 +2028,7 @@ long tcmu_ioctl_copy_between_sgl_and_iovec(struct tcmu_cmd *tcmu_cmd, return copy_ret; } -long tcmu_ioctl(struct uio_info *info, unsigned int cmd, unsigned long arg) +static long tcmu_ioctl(struct uio_info *info, unsigned int cmd, unsigned long arg) { struct tcmu_dev *udev = container_of(info, struct tcmu_dev, uio_info); struct tcmu_data_xfer __user *uxfer = (struct tcmu_data_xfer __user *)arg;