Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6136579rwb; Sun, 11 Dec 2022 19:54:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf4nQxoho5UDT4eL90YsEqz/IXbzQg7mt5U9FAvlw4oMVGaaMe4s2H5sgfVbzn4ODwXvw5y7 X-Received: by 2002:a17:907:a409:b0:7b8:947e:61c3 with SMTP id sg9-20020a170907a40900b007b8947e61c3mr16518669ejc.77.1670817286484; Sun, 11 Dec 2022 19:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670817286; cv=none; d=google.com; s=arc-20160816; b=07ecYvZJVTLLCs9JyvRwkQadwyP56RGWP2tI6HE2r9+cQT4KqLtMNE5m63fsYdRoLT 4JhCrl3zUQOBkm2irIa+9bSOcpy+befi8/Ys3Z67M2knc76bKltm+McQyEDOKloMlTTD xZmcHX5I9F71VEwIf0ALfPzJseS/58k26vQinpP5d+e0OyDvAA9ZWx49OsdoL2nmrx2K Zl7EaD0z00cc43V33wa+dOC9g3p+Ad5Nac7Na79nXYj1zk0Uz8nCRHk2M1uJynzr42NT A+lplijFJX0Mvcv7Vs50jqSPgAtbcN/2UAW9ynu8qacfNvDsGwcSNtWr1qXJeWzeyqj0 vebg== 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=yJnaFhBUsfCk3z561o7n62FrBKJZaRe9mBjjV+I6A4g=; b=Ypek8KZ2PhFQt0XVq8khvMe9ZInucAI+H9alnrJN1qoV4WNiNIzfuqtBfcPBg++FIn mqFVhYHVGEM0I/fwACpI93nWZImL0SP3w4uzjaYqN6+9OCLxoYfRPzQgu1s0g4ei2FAV KagI9BAQDh2RPscbmSASgPz8FUvI61CeXkudqpIalnsOrhURBSnkaUYV7rt/xzbNFLQ4 KFUVosWQU1lhMHnmB76KVtUIja6xnBUf+qEiyYXS/epVOhKJDVj3fgWtn4tdeQ0y3ph3 a3zOMsnxuU3xCBb98caXGt6k6JF6Wu0RRkLxRa/rVPqj9qgfDmgVQtOqrDkVto4WuMvl +k5A== 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 sb23-20020a1709076d9700b0078d770f363fsi5886173ejc.471.2022.12.11.19.54.23; Sun, 11 Dec 2022 19:54:46 -0800 (PST) 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 S230498AbiLLDfd (ORCPT + 77 others); Sun, 11 Dec 2022 22:35:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbiLLDfb (ORCPT ); Sun, 11 Dec 2022 22:35:31 -0500 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3124B493; Sun, 11 Dec 2022 19:35:29 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=0;PH=DS;RN=7;SR=0;TI=SMTPD_---0VX16Mju_1670816116; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VX16Mju_1670816116) by smtp.aliyun-inc.com; Mon, 12 Dec 2022 11:35:27 +0800 From: Jiapeng Chong To: fenghua.yu@intel.com Cc: dave.jiang@intel.com, vkoul@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] dmaengine: idxd: Remove the unused function set_completion_address() Date: Mon, 12 Dec 2022 11:35:14 +0800 Message-Id: <20221212033514.5831-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 set_completion_address is defined in the dma.c file, but not called elsewhere, so remove this unused function. drivers/dma/idxd/dma.c:66:20: warning: unused function 'set_completion_address'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3416 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/dma/idxd/dma.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/dma/idxd/dma.c b/drivers/dma/idxd/dma.c index e0874cb4721c..eb35ca313684 100644 --- a/drivers/dma/idxd/dma.c +++ b/drivers/dma/idxd/dma.c @@ -63,12 +63,6 @@ static void op_flag_setup(unsigned long flags, u32 *desc_flags) *desc_flags |= IDXD_OP_FLAG_RCI; } -static inline void set_completion_address(struct idxd_desc *desc, - u64 *compl_addr) -{ - *compl_addr = desc->compl_dma; -} - static inline void idxd_prep_desc_common(struct idxd_wq *wq, struct dsa_hw_desc *hw, char opcode, u64 addr_f1, u64 addr_f2, u64 len, -- 2.20.1.7.g153144c