Content-Type: multipart/mixed; boundary="===============1671404116673113091==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] scsi:target:tcmu: tcmu_ioctl_copy_between_sgl_and_iovec() can be static Date: Thu, 17 Feb 2022 19:10:04 +0800 Message-ID: <20220217111004.GA73979@5a5c9590ad42> In-Reply-To: <1645064962-94123-2-git-send-email-kanie@linux.alibaba.com> List-Id: --===============1671404116673113091== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 Signed-off-by: kernel test robot --- 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_cm= d, 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 tcm= u_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 l= ong arg) { struct tcmu_dev *udev =3D container_of(info, struct tcmu_dev, uio_info); struct tcmu_data_xfer __user *uxfer =3D (struct tcmu_data_xfer __user *)a= rg; --===============1671404116673113091==--