From patchwork Mon Mar 20 23:12:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 72521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1486808wrt; Mon, 20 Mar 2023 16:23:51 -0700 (PDT) X-Google-Smtp-Source: AK7set89G6DrEcsB/4iiyckhcgcx8QoMQq5v/0chwaF+TIQnpsGC/rjlI+p7WP3R8zmdu83NJcB+ X-Received: by 2002:a17:90b:1d0b:b0:23f:9925:6f8b with SMTP id on11-20020a17090b1d0b00b0023f99256f8bmr397414pjb.17.1679354630812; Mon, 20 Mar 2023 16:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679354630; cv=none; d=google.com; s=arc-20160816; b=r0uFVgxOlO5ftLO8VU7YuLyIbM3vMT5P+rreVdpg4iY/CmSar9QlfUW/HmJG3DaVfJ aQlR8jfN5WpX6MO4c+Oa75T8Mk5qjW5eqKhxTgL0/lz/Mk+enB8ieMAmiJboH98H8DQG HoNBkYDjGHIPYlXuzMZRX2zgU+7cHwW4/WXNE3/HZ8YB0zYvT/GUh6wssgp5Vn3CvACk /ne9O0klF5xHKutgcuLpxTzlP6K1rHMN9cjyCMGwEN6AS4LfzXTWwv8CnanofCmYUpq6 tOiXA1OUcTpqVqCWVlbLCvrHDoXvdTJIihB6thlQPAzEx9aVvALzm1vziZ9kCPGQXjTU wrFA== 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:dkim-signature; bh=8OXg4VI8cm6vRN/hId3npmgyDD4BW9c8No9p4EZybmM=; b=TiGkj8Rns1zNW1xhLxEXwpINuWHlhoVLeE/HAY3LFu/QMx10Wgq/JCce/zHmQf0Tn5 ffn7lgbDLU2kJIefBQLnUOMAtzF4GAhB1EDfRD5SfVM8/2kosZo7GVPscd9ltISNGrfR NIfgNpZd/a8RRZr9USLWQPC3CpxTW9c8ELpaEpF+JAasgEfWqOFYDDPDl3v9pk6rxSQ3 kA2OcroMQmqqIIoXOIlLoNGZ+hGLP66aomPPEOTHsOgq+A4rRSM54R83AH6sEufnFbWW B091y2cVAWeWSUj+ugha6OCTQUmJGsObA21f1eqF7GqizMgFtCtUiXeRNQhgSxzLMztZ u2CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L4zSnDCM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a17090a9bc300b00234ac7c8061si16897438pjw.175.2023.03.20.16.23.35; Mon, 20 Mar 2023 16:23:50 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L4zSnDCM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbjCTXNF (ORCPT + 99 others); Mon, 20 Mar 2023 19:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjCTXND (ORCPT ); Mon, 20 Mar 2023 19:13:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2D6B34008 for ; Mon, 20 Mar 2023 16:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679353935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8OXg4VI8cm6vRN/hId3npmgyDD4BW9c8No9p4EZybmM=; b=L4zSnDCMUYQAY40Hrih5mRwlizyvJRgT90kfHwx7fIs+a/QVxWSnp6TRHexEqgsNVUOJzH HGN/on9bQe/L1PAsCE/OBdpIiquQpcm88vxtjG0fCzwRMhGN4mEXxdyS08hqqz4ml9myNx VFGIaHMK9sUep6bFcZtoMeaPeAua95g= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-463-_BmeWqlQNwuGXuGWA0CFow-1; Mon, 20 Mar 2023 19:12:13 -0400 X-MC-Unique: _BmeWqlQNwuGXuGWA0CFow-1 Received: by mail-qk1-f198.google.com with SMTP id 72-20020a37044b000000b0074694114c09so1231909qke.4 for ; Mon, 20 Mar 2023 16:12:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679353933; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8OXg4VI8cm6vRN/hId3npmgyDD4BW9c8No9p4EZybmM=; b=CVpLoNF9RdpkDrtaw0zpnS1J7mPsU0HHVbP8Xxt8oBD8N7VvSNQmeGV453O7Wj7cuv FaXiYoghM8a/gbZQrunRXn6DpNPmbl3OhPhUtP9cXZNBLwnXMlr4pJmKCPcO29fODsso OUc94KzX+e380/g2q4ho3MebOrfN1kHUu289xPxD9MYoA/OeP9DyLELWYzcYdDdGt6RP 9mQNs/Q1IwRUwv4rKVeS86zC8eMrI7CLp+RsWH9rO5lM/YQRFr0IcccDQhjVpVCVFdJs e+UJVT3iUKsw6wWOfyDfWYXLQKb22upbsYEvVJR1XxO/iM0QtaksszXpwtSZZWAu0o+X Qd+Q== X-Gm-Message-State: AO0yUKWPrvLi1WUB90hepJTYoJsjlfLtofCnqAYBeIzHu9Lv3tZudX90 mUi5xm6bcefry1V2wV3Yq28TW6aCQITnKoBxpjkEg7KWsB0c0wBW/7508ulCwDA7vuhwivjp8M0 03MV0YwVZAGLeNPyfPlgLmJac X-Received: by 2002:a05:6214:e6a:b0:5b3:4b99:7af8 with SMTP id jz10-20020a0562140e6a00b005b34b997af8mr998492qvb.21.1679353933197; Mon, 20 Mar 2023 16:12:13 -0700 (PDT) X-Received: by 2002:a05:6214:e6a:b0:5b3:4b99:7af8 with SMTP id jz10-20020a0562140e6a00b005b34b997af8mr998476qvb.21.1679353932932; Mon, 20 Mar 2023 16:12:12 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id o10-20020a05620a0d4a00b0074281812276sm1755579qkl.97.2023.03.20.16.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 16:12:12 -0700 (PDT) From: Tom Rix To: peter.ujfalusi@gmail.com, vkoul@kernel.org, nathan@kernel.org, ndesaulniers@google.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] dmaengine: ti: edma: remove unused edma_and function Date: Mon, 20 Mar 2023 19:12:09 -0400 Message-Id: <20230320231209.1728940-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760930961278794984?= X-GMAIL-MSGID: =?utf-8?q?1760930961278794984?= clang with W=1 reports drivers/dma/ti/edma.c:321:20: error: unused function 'edma_and' [-Werror,-Wunused-function] static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and) ^ This function is not used, so remove it. Signed-off-by: Tom Rix --- 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);