Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A10EC6FD1D for ; Mon, 20 Mar 2023 23:24:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbjCTXYS (ORCPT ); Mon, 20 Mar 2023 19:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjCTXYO (ORCPT ); Mon, 20 Mar 2023 19:24:14 -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 7F12513D59 for ; Mon, 20 Mar 2023 16:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679354607; 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=GpP2z7KdETtSjf5FRKQeOFJT3f2f22hqp1FLeOMOD9E=; b=QFdO0I5qpvuf+2NsG0y3b5rfJllWHQlYrO5/sul57olNRrVACzupVbjty33Yak7LKOX4ml DGD3Ne5XMPY/Dg5IDrvPsWWCzBhUD8IC2+hiun6dI4jv++iL9OR8NPdvQHCqcGlRBxzJ2W dVJPneifjOlaq28Fg899y+QFyAXEGWw= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-315-KT7ZY36SM9KNwNbGsugohw-1; Mon, 20 Mar 2023 19:23:26 -0400 X-MC-Unique: KT7ZY36SM9KNwNbGsugohw-1 Received: by mail-qt1-f198.google.com with SMTP id t22-20020ac86a16000000b003bd1c0f74cfso7797469qtr.20 for ; Mon, 20 Mar 2023 16:23:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679354606; 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=GpP2z7KdETtSjf5FRKQeOFJT3f2f22hqp1FLeOMOD9E=; b=qPhnv+MH+huL+x+Xtq76FyUOn6Msqlb5RCojwTWae+4GDY9no/HO22DrSbXfh9NkHr ktufn6NbR5ejaXxU5RVYqLhyMWfflmk714SayHIPgRtwDqESLejsRPpsPQ3NvOYYvlZV KQXUlxq01SOg9dWiQHwLgte0+PrPYXjJr2nrmhh+Nxi9cFHVp6UaXcyrgivgjS13YssZ VHXcUYiJKijpgICbbMA8pmkz1jGhYr6T13DuWven1gjYBZWycVPz2q9ULlMoK/Hf5T8A eqZ2mdfwwCPQu0f9JfLEugq5pIXdot1/nNeqt36fiySfkdAESrtPGuPT6imx4is7nRkc geiA== X-Gm-Message-State: AO0yUKUFdw2Yh7LzmrJ+EHD9eG4z3l9B75wHKwonDj9odOYvG785z8Ui NJdFnYLw/lnrOIrDCvxY6O1bIl2cbcSCeeIqdD0MQQJ6GWriOWZgeJ5hBNVcgoY+ER8CICNYBG3 2k1Z8YW0YVv2zbsMd6WghA7MQ X-Received: by 2002:a05:6214:2a88:b0:56e:b1e0:3fef with SMTP id jr8-20020a0562142a8800b0056eb1e03fefmr1002397qvb.24.1679354605911; Mon, 20 Mar 2023 16:23:25 -0700 (PDT) X-Google-Smtp-Source: AK7set8QOzhqOd7nFesFbCuOTTVxImRbs0jpuxacByG/oeEhIIMtdUjSbjovf3qvpuVqd45uRXJMxQ== X-Received: by 2002:a05:6214:2a88:b0:56e:b1e0:3fef with SMTP id jr8-20020a0562142a8800b0056eb1e03fefmr1002373qvb.24.1679354605659; Mon, 20 Mar 2023 16:23:25 -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 q145-20020a374397000000b007429ee9482dsm8113502qka.134.2023.03.20.16.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 16:23:25 -0700 (PDT) From: Tom Rix To: chris.snook@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com, yuanjilin@cdjrlc.com, liew.s.piaw@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function Date: Mon, 20 Mar 2023 19:23:17 -0400 Message-Id: <20230320232317.1729464-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang with W=1 reports drivers/net/ethernet/atheros/atl1c/atl1c_main.c:214:20: error: unused function 'atl1c_irq_reset' [-Werror,-Wunused-function] static inline void atl1c_irq_reset(struct atl1c_adapter *adapter) ^ This function is not used, so remove it. Signed-off-by: Tom Rix --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 40c781695d58..4a288799633f 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -207,16 +207,6 @@ static inline void atl1c_irq_disable(struct atl1c_adapter *adapter) synchronize_irq(adapter->pdev->irq); } -/** - * atl1c_irq_reset - reset interrupt confiure on the NIC - * @adapter: board private structure - */ -static inline void atl1c_irq_reset(struct atl1c_adapter *adapter) -{ - atomic_set(&adapter->irq_sem, 1); - atl1c_irq_enable(adapter); -} - /* * atl1c_wait_until_idle - wait up to AT_HW_MAX_IDLE_DELAY reads * of the idle status register until the device is actually idle -- 2.27.0