From patchwork Mon Mar 20 23:23:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 72525 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1490404wrt; Mon, 20 Mar 2023 16:34:24 -0700 (PDT) X-Google-Smtp-Source: AK7set+ar0ARN+phgu5t8U17QNWpt4J2jEtaHcwugDZbqdzLf3b3hxEapXQ21kJUw3oBBOb8Schs X-Received: by 2002:a17:902:fb44:b0:19f:3b31:4d3 with SMTP id lf4-20020a170902fb4400b0019f3b3104d3mr121652plb.41.1679355263910; Mon, 20 Mar 2023 16:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679355263; cv=none; d=google.com; s=arc-20160816; b=P3lo4pzX1VjieQz/qg8oWVackiqlxLQpBHg5VhCax8ZrN1XeKjJSrfi+5juBfRtIjO 4sNjnzN7fHe+93PHfhPpFaVabHPARNDxCeE9cbaAiPZNflCjM6KdV6M5Tsu5/LWEPtaT n9vpSSkvcWN7JqTTso/b3Wr0giyUwP+l4evXx1PsiiK9KjjYae/Ht0sVCIsCpgHPol+p PV+OxbYZvyrl2JY3lehpWxqcF8G4Qo+edGB8sOzysHwiAziDDgMpk2tuAiXw05Ma0ikG BuCd3wslYisBbK9UvcLwXTx/dFicyydgb1NX2iON+QusyZsiEAqCDEj0VorXUFAz5vHN jF1g== 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=GpP2z7KdETtSjf5FRKQeOFJT3f2f22hqp1FLeOMOD9E=; b=DM0Cn9p+a79mmFiyJYQobuc2ma2dMZ/pri0tkL49QgVsN7dcbAkfPnPR1EvunV7W2u RVeRkacrHjtt83FZiuW/FFSHdmTzPLsamz1W6LfNzy+/k0QUit6knUmPZ7h/Yf6/n4O6 Xh/JzHH9IgeyVIz5CzdrtRUPmsTcNmmER2VJn9nHLadnV4Ggj+1JGUmT57sd53jbkCDd oHqiyCQkYpM9j9JnPJe0rEVd+3r7zLfdSoX5V0XLh4hxQ/c5ZEVPPNRyHbPeXAfnCtsS dUfDb1ssP7Na9mXw2GqigVM1dM2jUUHpJCIyipOXUsfMSKHWZHd+fT3tpmus9CkF1ba9 xYTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QFdO0I5q; 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 37-20020a631965000000b004fbd2a5db20si11192628pgz.538.2023.03.20.16.34.03; Mon, 20 Mar 2023 16:34:23 -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=QFdO0I5q; 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 S229819AbjCTXYR (ORCPT + 99 others); Mon, 20 Mar 2023 19:24:17 -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-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 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?1760931624881804533?= X-GMAIL-MSGID: =?utf-8?q?1760931624881804533?= 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 Reviewed-by: Pavan Chebbi --- 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