From nobody Sun Jun 28 00:09:46 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFE04C433F5 for ; Thu, 17 Feb 2022 11:11:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238753AbiBQLLN (ORCPT ); Thu, 17 Feb 2022 06:11:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239693AbiBQLLI (ORCPT ); Thu, 17 Feb 2022 06:11:08 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09CBF2A5218; Thu, 17 Feb 2022 03:10:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645096249; x=1676632249; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kUAzxYLqH3Wl8CbcjdnZky0Irg6Ay/7fZGWkkNOZACY=; b=BdJG3U8t8nip1IOZCi250iFzNmC6P1wS+2bDjnccUaquMw6sw8ncvEP4 oMpMIyRtydg7ajkNPRP5UKyf+RRjhoxVP7yTlX5Ru9Dyixs1COI8N0g0J qwQY60ixI+9oi9VJWYX4fu2PqOasXa5IG4nl8cGgRH9meUwTxXvbrf0m5 G6li6tbYpCV9hkmNoCKTlkrAg2W5ETLOYsTn7v2UzA4kOxBaLK23XQjdY jg3oH3ZHD+e4Qmwn7vkg0Ctkp1Epb/pZWBZLCh093mMR+KS4PTlX3wi8o nUvLKwPqqWFBVMUoyUE1g/aqgtbvgGZLd+YRGmkW4nzXZd5D8WuzAG3WI Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10260"; a="234380572" X-IronPort-AV: E=Sophos;i="5.88,375,1635231600"; d="scan'208";a="234380572" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 03:10:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,375,1635231600"; d="scan'208";a="530135129" Received: from lkp-server01.sh.intel.com (HELO 6f05bf9e3301) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 17 Feb 2022 03:10:46 -0800 Received: from kbuild by 6f05bf9e3301 with local (Exim 4.92) (envelope-from ) id 1nKegP-00006C-Gf; Thu, 17 Feb 2022 11:10:45 +0000 Date: Thu, 17 Feb 2022 19:10:04 +0800 From: kernel test robot To: Guixin Liu , gregkh@linuxfoundation.org, bostroesser@gmail.com, martin.petersen@oracle.com Cc: kbuild-all@lists.01.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, xiaoguang.wang@linux.alibaba.com, xlpang@linux.alibaba.com Subject: [RFC PATCH] scsi:target:tcmu: tcmu_ioctl_copy_between_sgl_and_iovec() can be static Message-ID: <20220217111004.GA73979@5a5c9590ad42> References: <1645064962-94123-2-git-send-email-kanie@linux.alibaba.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1645064962-94123-2-git-send-email-kanie@linux.alibaba.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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; } =20 -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; } =20 -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;