Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5653972rwi; Tue, 18 Oct 2022 02:07:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5F0SQxONjdE35qnpHL41PAfeoHA6IiX4vWzTWQnHuEX0ogblq1YMWgOdd0XwhKkDHmNVo/ X-Received: by 2002:a05:6402:90c:b0:457:b5ce:5f18 with SMTP id g12-20020a056402090c00b00457b5ce5f18mr1689971edz.309.1666084055964; Tue, 18 Oct 2022 02:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666084055; cv=none; d=google.com; s=arc-20160816; b=AbeKl+AWqdFk3FYKT+UHOj5N+5Y+yEqOzw+gLcfHWAJ125Z2oRw5UWB2UsVQmZajM4 bF963RDz1arM2CEXXQQf/BF4S2vbIIfYaZSvPXPMhuQEQrUI6C42gMQQ/RatihZ53gMB qckKT06ABAMQ0VDuchecQYAygvWvtoToDIqhfvucjHldUhPQQVbHiIqKMCbxc/SLY1XD xY1XxNWONxgXS3y+k8uWse+rlHBXmkxVfgdZ+R++69jZawpveiWCBkaYVyxYjbB1QAnV pCgkWajqzU3cVV5zMKwsmHrMms32jm//czNQuFRej5mzHB6uEtBpruKZoEM3N3PFmHby QFuQ== 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=66Xxbw9uM+Wk8xgQLftS/IeT9PSaPd0Ez6HrKL9aimE=; b=kuf8VXkJr9BBylMMkZllBJilSBUBXCPTCrU2paiu7ouT11lqXIoCTEbkqHPmI5kSJW Tfxc3yWWev0SjieMabmIP8knsZPB6Qs95G+JoCXIctZLg6v6U+SuegSSdbXb7Ptp+bJo Eifac5Wosi4DcyevL2r6Wsh+hCvhkcfFUlkM441Xixi6qDIVRBverm7xGRwVXBWc6/TU ux3jqtg1hUPBLxdoKPJURSC1UhSyT6XeZ6ugfF/R9MrSNZ4DO1LM83sinXnMYB9TVrC4 tdfOyz1Quql5qqXZlQnSLF+7gJoaamzjOq6Xk/oAODuijHBjKNfTOxWIrS5dwoonAlTs vBaA== 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 y2-20020a056402440200b00459f2befc4esi13578488eda.354.2022.10.18.02.07.09; Tue, 18 Oct 2022 02:07:35 -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 S230153AbiJRIjg (ORCPT + 99 others); Tue, 18 Oct 2022 04:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbiJRIjc (ORCPT ); Tue, 18 Oct 2022 04:39:32 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69E866574; Tue, 18 Oct 2022 01:39:29 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R991e4;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_---0VSTn1kW_1666082351; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSTn1kW_1666082351) by smtp.aliyun-inc.com; Tue, 18 Oct 2022 16:39:26 +0800 From: Jiapeng Chong To: peter.ujfalusi@gmail.com Cc: vkoul@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] dmaengine: ti: edma: Remove the unused function edma_and() Date: Tue, 18 Oct 2022 16:38:20 +0800 Message-Id: <20221018083820.25297-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,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 edma_and() is defined in the edma.c file, but not called elsewhere, so remove this unused function. drivers/dma/ti/edma.c:321:20: warning: unused function 'edma_and'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2430 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/dma/ti/edma.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/dma/ti/edma.c b/drivers/dma/ti/edma.c index fa06d7e6d8e3..9ea91c640c32 100644 --- a/drivers/dma/ti/edma.c +++ b/drivers/dma/ti/edma.c @@ -318,14 +318,6 @@ static inline void edma_modify(struct edma_cc *ecc, int offset, unsigned and, edma_write(ecc, offset, val); } -static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and) -{ - unsigned val = edma_read(ecc, offset); - - val &= and; - edma_write(ecc, offset, val); -} - static inline void edma_or(struct edma_cc *ecc, int offset, unsigned or) { unsigned val = edma_read(ecc, offset); -- 2.20.1.7.g153144c