Message ID | 20230204200902.1709343-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1496942wrn; Sat, 4 Feb 2023 12:30:55 -0800 (PST) X-Google-Smtp-Source: AK7set/qZeJV+Qrp/aMZxtTo1gtya2pHDiyUpCQQNIWzrQIoe4EnvToOHopj1J5dCHTajEnU7xkl X-Received: by 2002:a05:6a00:15cb:b0:590:7735:5384 with SMTP id o11-20020a056a0015cb00b0059077355384mr17412274pfu.23.1675542655028; Sat, 04 Feb 2023 12:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675542655; cv=none; d=google.com; s=arc-20160816; b=SbRu7IX4aZD6hvqvFHsxPRHvd/fI5lyqkeAIFVbv7sJHPkyhoZWfmk2Qt5/FvaAb57 BJmyRGjWUVxVd/dDFv03AxSlwzOd7jg2yKksjFDyH/VVJWkzbZqDw/NO/0xRIOWKCTU+ jHx+0LfN8Y8hGcFeLKkF1drKHhVhtBoA74zhPfecGHPH1njY18YACwNcN+FhWgx+Cmw6 D95vsYZ35CdcE/BbaM7CsqFv5UjGrKtK1kHG9YtiddpK/jshztV+4zoNu+cKIpYA4uQL 6nCbPhQkCnOI9wm2Ds9M1qlUBKJKew0TuGyPQvdUGvgsgQ3eqm8q+dM+dh2S7r535ixX Mnlg== 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=/WaCBskwLyuFZAeD+BROUlg6POGlmNuR7JtD/rOXxGw=; b=F3fXUqo/4EvOMnrNyk02JtGY5bRSU93snu5Z/0WSztdvoJJJRcOTZK4Q+2hkL2kGI9 Jis1FAapONOFKVdud6GNouzzJ77OkGNsMHRCI/JZHZjv1ju/dPU+RpL4lyJS9D3x5mj2 I1gzVMgnSw2wu8Q6WzFJ+mHEYk5m89ntx7lDSO3rLXEyWLRWRNC7a9FcbzH+Y9M5vCQr TDyDPpal8j6GfPIyOu67dlkXcnYzUt1blQxgFBZKF6T491L6vZmoGVrHvSaqO8nLLkCV V3u7uBfk26qPpMAWbW8CRl7uzap8CbvIRkIJmviUqLwC4bIX307RcwhJwdHSeydMOBG0 2Nxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Akb4SCSv; 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 w67-20020a623046000000b00593adf6e522si6145797pfw.109.2023.02.04.12.30.36; Sat, 04 Feb 2023 12:30:55 -0800 (PST) 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=Akb4SCSv; 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 S231521AbjBDUJ7 (ORCPT <rfc822;il.mystafa@gmail.com> + 99 others); Sat, 4 Feb 2023 15:09:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230187AbjBDUJ5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 4 Feb 2023 15:09:57 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B58244B7 for <linux-kernel@vger.kernel.org>; Sat, 4 Feb 2023 12:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675541349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/WaCBskwLyuFZAeD+BROUlg6POGlmNuR7JtD/rOXxGw=; b=Akb4SCSvbITecTXG5S8IgrwWWbmywzBRaiyd7eeFbfgIcR26BsvJiyPw1S12peXXs5Bvas TaHMASytaOMvfle4oGgGArco5t0GFsZ3BEOpW3N0JhHtdYL3HY8JxGFqCO1JmN1flolb4N TuixZoBb23VF3b0cIF4Gq+2E+uUheSQ= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-310-0eu3RlYCNcKsl6ut1iXTxw-1; Sat, 04 Feb 2023 15:09:08 -0500 X-MC-Unique: 0eu3RlYCNcKsl6ut1iXTxw-1 Received: by mail-qt1-f199.google.com with SMTP id hf20-20020a05622a609400b003abcad051d2so4287427qtb.12 for <linux-kernel@vger.kernel.org>; Sat, 04 Feb 2023 12:09:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/WaCBskwLyuFZAeD+BROUlg6POGlmNuR7JtD/rOXxGw=; b=aTAGzcs5DbdtlCOSrDrge8iMo++kjyxeN9AfytNRQPGMbHc19//x2MnCjCQKJH1joV CXpURC/6E60mY+MY7E+Wvxda/vN05wGC5bB4l+qyMHONGQjY9DHk4IYVMTiPApeQhKjM qxinz7R4keoh4cJCD8IfpDDoV4Tej7x+oPLFM/2wsFPMe0oNa909KFP46YqsQLvBz+jV DiVVH1rZ4tU3J/phJuVZUrsfCrfzLml5gEMhC2+tSjTvCG0TuvpqUYfgOxVy+WLykbVs DZHcmJ6Ncm5ZnYH90+5HT0Pv7UjPq4re/Elw6EWwrOrFWCd6R4ElbhUQA3KMTLzV5FHX Bxng== X-Gm-Message-State: AO0yUKVv0xjrUp84a5T6v+qwyq5k8wIFXkZ9eJq/uXTsALK1KdPc5PEu VTcIdVOJx91iOV3fqlB2rcUxx4ZX9n8uHSVyrkCi2Gz+r0EiCw24KCgIh17pwlMmuMtacHsqJVu a7MyQ7YKPktYmKmfDdc5T+IKo X-Received: by 2002:ac8:5756:0:b0:3ba:19e5:3e45 with SMTP id 22-20020ac85756000000b003ba19e53e45mr3388200qtx.13.1675541347780; Sat, 04 Feb 2023 12:09:07 -0800 (PST) X-Received: by 2002:ac8:5756:0:b0:3ba:19e5:3e45 with SMTP id 22-20020ac85756000000b003ba19e53e45mr3388168qtx.13.1675541347551; Sat, 04 Feb 2023 12:09:07 -0800 (PST) Received: from localhost.localdomain.com (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id v11-20020a05620a122b00b0070648cf78bdsm4230548qkj.54.2023.02.04.12.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Feb 2023 12:09:07 -0800 (PST) From: Tom Rix <trix@redhat.com> To: kune@deine-taler.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix <trix@redhat.com> Subject: [PATCH] net: wireless: zd1211rw: remove redundant decls Date: Sat, 4 Feb 2023 12:09:02 -0800 Message-Id: <20230204200902.1709343-1-trix@redhat.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756933815335577824?= X-GMAIL-MSGID: =?utf-8?q?1756933815335577824?= |
Series |
net: wireless: zd1211rw: remove redundant decls
|
|
Commit Message
Tom Rix
Feb. 4, 2023, 8:09 p.m. UTC
building with W=2 has these errors
redundant redeclaration of ‘zd_rf_generic_patch_6m’ [-Werror=redundant-decls]
redundant redeclaration of ‘zd_rf_patch_6m_band_edge’ [-Werror=redundant-decls]
Remove the second decls.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/wireless/zydas/zd1211rw/zd_rf.h | 3 ---
1 file changed, 3 deletions(-)
Comments
On Sat, Feb 04, 2023 at 12:09:02PM -0800, Tom Rix wrote: > building with W=2 has these errors > redundant redeclaration of ‘zd_rf_generic_patch_6m’ [-Werror=redundant-decls] > redundant redeclaration of ‘zd_rf_patch_6m_band_edge’ [-Werror=redundant-decls] > > Remove the second decls. > > Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tom Rix <trix@redhat.com> wrote: > building with W=2 has these errors > redundant redeclaration of ‘zd_rf_generic_patch_6m’ [-Werror=redundant-decls] > redundant redeclaration of ‘zd_rf_patch_6m_band_edge’ [-Werror=redundant-decls] > > Remove the second decls. > > Signed-off-by: Tom Rix <trix@redhat.com> > Reviewed-by: Simon Horman <simon.horman@corigine.com> Patch applied to wireless-next.git, thanks. 9d5dbfe0e170 wifi: zd1211rw: remove redundant decls
diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_rf.h b/drivers/net/wireless/zydas/zd1211rw/zd_rf.h index 8bfec9e75125..9ca69df3d288 100644 --- a/drivers/net/wireless/zydas/zd1211rw/zd_rf.h +++ b/drivers/net/wireless/zydas/zd1211rw/zd_rf.h @@ -85,9 +85,6 @@ static inline int zd_rf_should_patch_cck_gain(struct zd_rf *rf) return rf->patch_cck_gain; } -int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel); -int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel); - /* Functions for individual RF chips */ int zd_rf_init_rf2959(struct zd_rf *rf);