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 EBF05C74A5B for ; Tue, 21 Mar 2023 04:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbjCUEvQ (ORCPT ); Tue, 21 Mar 2023 00:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbjCUEvM (ORCPT ); Tue, 21 Mar 2023 00:51:12 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1097305C1 for ; Mon, 20 Mar 2023 21:51:09 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id k15so7126971pgt.10 for ; Mon, 20 Mar 2023 21:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1679374269; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EreI0axmIoAWb7kJD6KZO5O0Tim6KFcWmhMtZZ2OgkU=; b=TtL7ps5iIOs9ApmEnamPyY+r1qzzdqEZOMZ00g+CayBW0Drt+Cs+5EenYK4qxYIZ1C eflNXKsYOMl8rZ/paBw2Og900ky7OgBj5M7TOltpaI+YB3WkX1q8hk7oHJKc4TZsE3iy JHZYUGy7TFe8nO6Y3GGsyoH1U3fMujZOqYPhw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679374269; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EreI0axmIoAWb7kJD6KZO5O0Tim6KFcWmhMtZZ2OgkU=; b=JJeUb0hrH0k9l/sglvgk3kSwFlNhPFQOViRT2g0DfHCK/mYSluspoXXtGWBWWbBTYf rF3r/l9surHKds8T8g3aERjMs70cFaynXqvBmj5uEoRh+LyWwa/xULiB1GsPLIN6edBq WGBRTXSOQyAwc7VMDLGxSspYC2vJMZjrSe8+fa/4Ka7OETaxWZa065lK5mrubHp7ijYW tvv936xc4sQ3KCrWNZKTPMPUt2K6Tjt2sQEaINhZFPiDF6WwYrZOUxY8VUUH5IG0UIF/ PnrKv9F3lcyKM3NYi86UBVUSxjA2+WFB9eftoI4jFv4K2A6zauAG/2vxTwq3JH9CJbqo VFew== X-Gm-Message-State: AO0yUKUv/oLWDkJnbSI/PnvOX3N8P8Al1dTppziyVhq2F86icUppHMTa hh25l5rL8KXJyFVW8nBjwLnRAnpWWxmpwG+XnBlUiA== X-Google-Smtp-Source: AK7set82aHsZYqNETwBCxN6JaH/U7uzqwf+VwKlinynHbi1gWLfXQnBpCPLfMgVclh59ARAnoXU49Eq7Iyode0dklRI= X-Received: by 2002:a05:6a00:80db:b0:625:dc5b:9d1d with SMTP id ei27-20020a056a0080db00b00625dc5b9d1dmr557648pfb.0.1679374269255; Mon, 20 Mar 2023 21:51:09 -0700 (PDT) MIME-Version: 1.0 References: <20230320232317.1729464-1-trix@redhat.com> In-Reply-To: <20230320232317.1729464-1-trix@redhat.com> From: Pavan Chebbi Date: Tue, 21 Mar 2023 10:20:58 +0530 Message-ID: Subject: Re: [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function To: Tom Rix Cc: 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, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000c8ca9a05f761ca4b" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000c8ca9a05f761ca4b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 21, 2023 at 4:54=E2=80=AFAM Tom Rix wrote: > > clang with W=3D1 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(-) Looks good to me. Reviewed-by: Pavan Chebbi > > diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/ne= t/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_ad= apter *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 > --000000000000c8ca9a05f761ca4b Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQbQYJKoZIhvcNAQcCoIIQXjCCEFoCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3EMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFAD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