Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp90497rdb; Wed, 18 Oct 2023 20:06:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBGA+ccR+dPrAf+nClBWRf0VOexdYmbakywCrb/ZzDFlBCu1TrV0aM+L41dLBpDysOohJb X-Received: by 2002:a05:6808:8e4:b0:3a7:b011:8960 with SMTP id d4-20020a05680808e400b003a7b0118960mr933858oic.40.1697684760785; Wed, 18 Oct 2023 20:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697684760; cv=none; d=google.com; s=arc-20160816; b=LrhcK7gYKyCi80ZyfuEAHGNZ/4SFCSJfqEcGd0uHFwKm2ECeRl/Q2GYQzgMcw1LKLs ducrPOy/WWD6ITIpiEQr2aNvmBMMHNiM9f6Z39qlyHT0Lwu7XSlK8rWjRdn77HgfjoLz Hv16Vw+rPNSFHQr2Udv+UDYj6WEijRPMocZ8ABSvkndeEbWEcwgkOwsbqSKH1u7rj8sR r4+ylEaO+m/ZsKB8E3USTjGXKaftdJSQKkPhDXaEwqPGKH4dlv/f5AUKf8auCdNOM0LU SikZLmfDnj2WvtvM5rSbu9apgaotHVcxOEdZBYIvlTike0ISUE1MrWLHXmpD1v3/Ifgz 6Dcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=j8hMhB4gpGtxP/rxUYs//WKu1Odn34QfV1u+vTbgjyQ=; fh=Q3FY/1Wv6NT34C7Bm3feN/aHBMAiCeNxBoDQmyA1vhY=; b=togExBF7s01XmErP/sHBmAmQwmXuC+gvYIqXUkIRCN8qPqZHKuoHUKa3Qs4sMLjtEf mro/tQhl33yN1SvbifzO3zhWytmAl+quMnlpEaO8C5p7xtEfL7/25TS3voik99GtLk89 bg1PZGaGKyCv7Wv3ov83MEofBD+KSbgjJ2oeJ+udk+MYlR1PE1Wec2sJMQUxvOUfTvDW f96eezFem9z0gRKQoFnLUJKAVdnHz9tWGLq5RvkExTf21SrQaJyKB1JBftkIcohrng+m dpfI5JwJArov2ItyM8Zgw8sWjkvf2t9whcwajghS7h4IS75DTb6MaBsPQxYe2TDqQFfF jTvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e2-20020a656782000000b00573fdbc93c0si3616100pgr.892.2023.10.18.20.06.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 20:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CB37B8181B83; Wed, 18 Oct 2023 20:05:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232420AbjJSDE7 (ORCPT + 99 others); Wed, 18 Oct 2023 23:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231470AbjJSDE6 (ORCPT ); Wed, 18 Oct 2023 23:04:58 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48528121; Wed, 18 Oct 2023 20:04:56 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VuSTilE_1697684685; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VuSTilE_1697684685) by smtp.aliyun-inc.com; Thu, 19 Oct 2023 11:04:53 +0800 From: Jiapeng Chong To: ming.lei@redhat.com Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] block: ublk_drv: Remove unused function Date: Thu, 19 Oct 2023 11:04:44 +0800 Message-Id: <20231019030444.53680-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 20:05:57 -0700 (PDT) The function are defined in the ublk_drv.c file, but not called elsewhere, so delete the unused function. drivers/block/ublk_drv.c:1211:20: warning: unused function 'ublk_abort_io_cmds'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6938 Signed-off-by: Jiapeng Chong --- drivers/block/ublk_drv.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/block/ublk_drv.c b/drivers/block/ublk_drv.c index c34474451908..83600b45e12a 100644 --- a/drivers/block/ublk_drv.c +++ b/drivers/block/ublk_drv.c @@ -1208,15 +1208,6 @@ static inline void ublk_forward_io_cmds(struct ublk_queue *ubq, __ublk_rq_task_work(blk_mq_rq_from_pdu(data), issue_flags); } -static inline void ublk_abort_io_cmds(struct ublk_queue *ubq) -{ - struct llist_node *io_cmds = llist_del_all(&ubq->io_cmds); - struct ublk_rq_data *data, *tmp; - - llist_for_each_entry_safe(data, tmp, io_cmds, node) - __ublk_abort_rq(ubq, blk_mq_rq_from_pdu(data)); -} - static void ublk_rq_task_work_cb(struct io_uring_cmd *cmd, unsigned issue_flags) { struct ublk_uring_cmd_pdu *pdu = ublk_get_uring_cmd_pdu(cmd); -- 2.20.1.7.g153144c