Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp352128pxf; Thu, 1 Apr 2021 02:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZumIz28106GnGiZaj5gQqkUgLADFUnWDoSevRUi7bzYB3r9XeaoI7GIYqnLfO3lGSaVza X-Received: by 2002:a05:6402:26ce:: with SMTP id x14mr8716365edd.359.1617270944528; Thu, 01 Apr 2021 02:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617270944; cv=none; d=google.com; s=arc-20160816; b=nEhLIbsrn46rArYlQ8qmQHcbThXMC4MGSUVMjrPuK2OJTUOk+BgID+dR8jK/tmAdov sUXN8wlHVSVeo+mcpLc7tHvoIGHW4Dvw1ogWpfDszUlD3K5ioHZAWM3Gh5gqqBZS3f+t lmDWDlzdaw39+uylLVhEk7O2n3n10tf6zUwrqDA67WduNx+CKgnerbzqcCPGxcVq4ELv 4SLq88sXO+UAV2suhVHeJOqrav2vhrCZ4KEt4pPDMUBF8tH+J8QPS+BT9y78mmHlC6du k2SFYFKDyGp92oPWi7i0TrLICN3IvBubcxJ8u5WUmxVTj1HdG/CCW9fPD4iW/gorPjdI hM5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=6ko+N7DgErJoXz1vENT6Gdk5LAAcmfuswXrbWbgE4/Q=; b=wAnq8CaF2HCwL37LTKSLpGXN9RjzXRLdZl+29ib5CPCsCFqFisksIHmcqFNveK9F4H jMAHwsInDfYcPLOmIaqKV/Hf1AYOW11MAQYL30s+pXMdJBQljm/a3sTSMdRc8N+LCBmV wVzLp/rHk63XVlDTZCteO6ikxO9EdNHUnhnFWbFKcA/vqFrpj68YuuLiUMZhcQDaWcPl 4nxD2rzQWZE2kD8U17N22Yj4SMi09fyDvbeprn7LwHv9tsZywNvZ8k3oZGFcm9LKA57Z O4WdIkXCV45PCsRWrc1qnRvuCm9tMgYEqUBYJQ/vSNAVi9kt6tUgDeny/OS5pUVhWvi9 jJJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si3599616ejq.537.2021.04.01.02.55.21; Thu, 01 Apr 2021 02:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233776AbhDAJyU (ORCPT + 99 others); Thu, 1 Apr 2021 05:54:20 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:60761 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233383AbhDAJxr (ORCPT ); Thu, 1 Apr 2021 05:53:47 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R851e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UU4xAIW_1617270818; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UU4xAIW_1617270818) by smtp.aliyun-inc.com(127.0.0.1); Thu, 01 Apr 2021 17:53:45 +0800 From: Jiapeng Chong To: okaya@kernel.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, vkoul@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] dmaengine: qcom_hidma: remove unused code Date: Thu, 1 Apr 2021 17:53:36 +0800 Message-Id: <1617270816-36400-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/dma/qcom/hidma.c:94:20: warning: unused function 'to_hidma_desc' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/dma/qcom/hidma.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 6c0f9eb..23d6448 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -90,12 +90,6 @@ static inline struct hidma_chan *to_hidma_chan(struct dma_chan *dmach) return container_of(dmach, struct hidma_chan, chan); } -static inline -struct hidma_desc *to_hidma_desc(struct dma_async_tx_descriptor *t) -{ - return container_of(t, struct hidma_desc, desc); -} - static void hidma_free(struct hidma_dev *dmadev) { INIT_LIST_HEAD(&dmadev->ddev.channels); -- 1.8.3.1