Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5610983rwi; Tue, 18 Oct 2022 01:20:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/zSPLyWAigfdDQRmtOKtrqwh/5STflLEtcMoEFKpgoc/jC1qhlljd1xjaxQHATCwlst1Y X-Received: by 2002:a05:6402:42c3:b0:45c:ec49:aacf with SMTP id i3-20020a05640242c300b0045cec49aacfmr1547608edc.40.1666081203066; Tue, 18 Oct 2022 01:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666081203; cv=none; d=google.com; s=arc-20160816; b=xnTqS91r39Hjkm32XoxYO+bxUyffnTlgIKZ5VDeGS4FtHs/9TEchnhJZPMfB+FrPCw MtYVr6NiYhIh9hRohsLKhYPa2rt5goQK5l4k6vMPz/31AAplbLIXrM+HSrSzik2Kx1Z0 3ei4BvRWdx2I9DqPwEcZnJCVyT60C0Bzg/nbV++JVQKG4RVeal4jVdZ7QrnsHksWsvkQ iXfYiEDrNAIAaEarR7ipVgn0Pu0YD8feUFXUkFZc3TK7JCYOYolrYLfpvzRmhMMVjc55 InYZFbqdQje+V1Bu1iZy/IUIcA1S3D+qI+xqxV/v7Uxl+CnNkxJiP9/GesvaMdrlAR7A YG9Q== 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=tFGkgds7aOzxEJjwMiJcXH8pp9TDnTNWRG4tM8q9WCE=; b=Rm7NhP1U5gJ12CEBnyh6DJmqGehRT13rU0vTzwlef2EnrMIdx9Tv5Rq3zUvsNzkn2x Yu6Jrl3N2qN1hXTEmWgWJuhdmCxkpWTd+csXMc74/1uMhAygJjpNQL/TgivMQfxZKBiU o3Rhc6prIly6WmKdrkDlcWADG/BxjJsm5Z8Fni9vKj9Qqd7Rj0uFXspmTjsxvKjvK9L4 eDfzj0uWFnctPlBR4T/fby5Sw0jGnroVojfFD1aumyFPFvA8/vTsr4YL7rZyj16vgpSa xUpbDqabmuW7OJtZ+8l4MyQgHhx7J6DwiM0aRTjJql6e7OhgquZZD1EpuvSJEE7Rss/G rgxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a05640226c500b0044f288e02edsi12095619edd.15.2022.10.18.01.19.37; Tue, 18 Oct 2022 01:20:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbiJRINd (ORCPT + 99 others); Tue, 18 Oct 2022 04:13:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbiJRIN3 (ORCPT ); Tue, 18 Oct 2022 04:13:29 -0400 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88F8B8FD74; Tue, 18 Oct 2022 01:13:27 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R971e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VSTkibi_1666080759; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSTkibi_1666080759) by smtp.aliyun-inc.com; Tue, 18 Oct 2022 16:13:24 +0800 From: Jiapeng Chong To: martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] target: Remove the unused function transport_lba_64_ext() Date: Tue, 18 Oct 2022 16:12:35 +0800 Message-Id: <20221018081235.124662-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=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function transport_lba_64_ext() is defined in the target_core_sbc.c file, but not called elsewhere, so remove this unused function. drivers/target/target_core_sbc.c:276:34: warning: unused function 'transport_lba_64_ext'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2427 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/target/target_core_sbc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 1e3216de1e04..1cd41e3834bb 100644 --- a/drivers/target/target_core_sbc.c +++ b/drivers/target/target_core_sbc.c @@ -270,14 +270,6 @@ static inline unsigned long long transport_lba_64(unsigned char *cdb) return get_unaligned_be64(&cdb[2]); } -/* - * For VARIABLE_LENGTH_CDB w/ 32 byte extended CDBs - */ -static inline unsigned long long transport_lba_64_ext(unsigned char *cdb) -{ - return get_unaligned_be64(&cdb[12]); -} - static sense_reason_t sbc_setup_write_same(struct se_cmd *cmd, unsigned char flags, struct sbc_ops *ops) { -- 2.20.1.7.g153144c