From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E881728B515; Wed, 23 Apr 2025 15:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745421805; cv=none; b=IVicDP/LL8KkOezw7eQH61rWx10FRNskd0sgBr4NjK0jFLcVD1C0ry3VhRAVIAtKCeFpHAMIYgurVHwO+i+SsUJvLVFUQVs7s9Q3AjPU0b6D4l2hjzVOBABcw1VkJ2oqfUEceTclbfHYDMZiqMezPpwjT2siS+lyVANhsibzO18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745421805; c=relaxed/simple; bh=9KUpAwqfY5Ai/8M9L9wr86ekg5+Wo85HXA7zpYgk5Nc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b09newZ8l5z8m9o6G4zY5OW7N4sFIplCqk1OFvhj72IRuGbiKjlJ5xK1LvNcD0NAbDXvtFi7f3n3AX1ZATDTVAiPtDexKClRTdFP5GF1NVsg6Mb9BY++/7cNFcNfJ/pTAHZ2iCxOGxKcuZdqToA24sWQmroxt2NADV8/xXXd54g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Oh3hdGsU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Oh3hdGsU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79F9FC4CEE2; Wed, 23 Apr 2025 15:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745421804; bh=9KUpAwqfY5Ai/8M9L9wr86ekg5+Wo85HXA7zpYgk5Nc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oh3hdGsUDGO7o8uWCphF2fpweLk9pa6lkdS0oKnTfDDB//+upWSsGuExg8VmY1vSq jXFbAEZCzfsHvjVkjr8R0X3S60QGRPBKOX3MTsyBxM0DTTH2f9kskSwA0xbQ5YmqlI AuVzcJpYn7rirnCbqWbr7TmaniWi3csIef9DPQCo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, WangYuli , Chaitanya Kulkarni , Christoph Hellwig , Keith Busch Subject: [PATCH 6.14 235/241] nvmet-fc: Remove unused functions Date: Wed, 23 Apr 2025 16:44:59 +0200 Message-ID: <20250423142630.172663260@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250423142620.525425242@linuxfoundation.org> References: <20250423142620.525425242@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: WangYuli commit 1b304c006b0fb4f0517a8c4ba8c46e88f48a069c upstream. The functions nvmet_fc_iodnum() and nvmet_fc_fodnum() are currently unutilized. Following commit c53432030d86 ("nvme-fabrics: Add target support for FC transport"), which introduced these two functions, they have not been used at all in practice. Remove them to resolve the compiler warnings. Fix follow errors with clang-19 when W=1e: drivers/nvme/target/fc.c:177:1: error: unused function 'nvmet_fc_iodnum' [-Werror,-Wunused-function] 177 | nvmet_fc_iodnum(struct nvmet_fc_ls_iod *iodptr) | ^~~~~~~~~~~~~~~ drivers/nvme/target/fc.c:183:1: error: unused function 'nvmet_fc_fodnum' [-Werror,-Wunused-function] 183 | nvmet_fc_fodnum(struct nvmet_fc_fcp_iod *fodptr) | ^~~~~~~~~~~~~~~ 2 errors generated. make[8]: *** [scripts/Makefile.build:207: drivers/nvme/target/fc.o] Error 1 make[7]: *** [scripts/Makefile.build:465: drivers/nvme/target] Error 2 make[6]: *** [scripts/Makefile.build:465: drivers/nvme] Error 2 make[6]: *** Waiting for unfinished jobs.... Fixes: c53432030d86 ("nvme-fabrics: Add target support for FC transport") Signed-off-by: WangYuli Reviewed-by: Chaitanya Kulkarni Reviewed-by: Christoph Hellwig Signed-off-by: Keith Busch Signed-off-by: Greg Kroah-Hartman --- drivers/nvme/target/fc.c | 14 -------------- 1 file changed, 14 deletions(-) --- a/drivers/nvme/target/fc.c +++ b/drivers/nvme/target/fc.c @@ -172,20 +172,6 @@ struct nvmet_fc_tgt_assoc { struct work_struct del_work; }; - -static inline int -nvmet_fc_iodnum(struct nvmet_fc_ls_iod *iodptr) -{ - return (iodptr - iodptr->tgtport->iod); -} - -static inline int -nvmet_fc_fodnum(struct nvmet_fc_fcp_iod *fodptr) -{ - return (fodptr - fodptr->queue->fod); -} - - /* * Association and Connection IDs: *