Message ID | 20231220011209.127586-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-6222-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2344146dyi; Tue, 19 Dec 2023 17:12:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgroAcUd07LqG3n7/7Q5IiUBCJqN03ElFMie89fI5iRs1T2r+dFtvGLFPFJv+RHbQCe7Z+ X-Received: by 2002:a17:906:20c1:b0:a23:6f91:723a with SMTP id c1-20020a17090620c100b00a236f91723amr1688002ejc.48.1703034758308; Tue, 19 Dec 2023 17:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703034758; cv=none; d=google.com; s=arc-20160816; b=Ja9HWhnkkzccpAOTYNYs9hlw/SL/cTj258SKeRgsACjyFABVlCYtQnNs8ZODDcjspm VwdJtXNy9QvLR267Qe6yGdUiAl259xEqpDV+cZ76OqskTMdAF+AvTs9T+ieSoA7T5QhS 2tssbk2VtqIY9PZWfVkcUf2LFFMq5iS7H+8zIak1k9ahs0chhNeKEbduEv8zeUM2mrgz Xe4Njjs6RuUWJG7nREmMbb3jacc4V8iDoC6Pw29cDKdbJaIRZZME4SFzFMYtfFbrME5P 48+lnf/M+G1L1e9ueQmfKWCgNSh+2smKVUUxlT2DG8Vnfb/UzCuc1uhaOV+S4Uth9vxg 6Bww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=u3vkfW5flAkvMORMZNSKYzgJM1Ept0BnIsLqGHyyruw=; fh=+ntDV2tkhn87s/jXufF1JwK4htGG0oYyueIKUEsbcQQ=; b=EJwREWjG059YEPe4rcLiRjzzGZA7oav+NBVVLp/ianCDdCkZucha+NuHr6lJnYlWdH nuA61JCLgcq+q7vCN0WLIAnTaCo/V3I9LBcBVGfWF1e++LQM84bQZwqRJ+rOFZ6QeqRJ LsY95UgfqTsda2Vcm50QMxpgpwlRSYowY+QVzQ0YvSmOdekFtbDn7ZaDGPv5KCDCyWpF EqRXSSa+tPW2eUi6P06ZOgGZDF2fV+lmuOjuxK33piXN0unE6o47BvXa4QPKFG/Xi+eU J7Y7FALpF33snVEKvH5oS9dUys+YQwsu1QQLw1mD6IrZldtFWIX49FFmR1yq1+z09Wxj E5xQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6222-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6222-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t10-20020a17090616ca00b00a233322330bsi3039214ejd.926.2023.12.19.17.12.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 17:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6222-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6222-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6222-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CA5591F24A27 for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 01:12:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DCC379CC; Wed, 20 Dec 2023 01:12:19 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 840A853B1; Wed, 20 Dec 2023 01:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VysF4Sy_1703034730; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VysF4Sy_1703034730) by smtp.aliyun-inc.com; Wed, 20 Dec 2023 09:12:11 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: Larry.Finger@lwfinger.net, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH net-next] wifi: b43legacy: clean up some inconsistent indentings Date: Wed, 20 Dec 2023 09:12:09 +0800 Message-Id: <20231220011209.127586-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785761374980659435 X-GMAIL-MSGID: 1785761374980659435 |
Series |
[net-next] wifi: b43legacy: clean up some inconsistent indentings
|
|
Commit Message
Yang Li
Dec. 20, 2023, 1:12 a.m. UTC
drivers/net/wireless/broadcom/b43legacy/dma.c:178 priority_to_txring() warn: inconsistent indenting
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7783
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/net/wireless/broadcom/b43legacy/dma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Yang Li <yang.lee@linux.alibaba.com> writes: > drivers/net/wireless/broadcom/b43legacy/dma.c:178 priority_to_txring() warn: inconsistent indenting > > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7783 > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> wifi patches go to wireless-next, not net-next. No need to resend because of this.
On Wed, 20 Dec 2023 09:12:09 +0800 Yang Li <yang.lee@linux.alibaba.com> wrote: > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7783 This link is not publicly accessible. > a/drivers/net/wireless/broadcom/b43legacy/dma.c +++ > b/drivers/net/wireless/broadcom/b43legacy/dma.c @@ -174,8 +174,8 @@ > static struct b43legacy_dmaring *priority_to_txring( { > struct b43legacy_dmaring *ring; > > -/*FIXME: For now we always run on TX-ring-1 */ > -return dev->dma.tx_ring1; > + /*FIXME: For now we always run on TX-ring-1 */ > + return dev->dma.tx_ring1; > > /* 0 = highest priority */ > switch (queue_priority) { Thanks for your patch. But actually, I am kind of annoyed by the constant stream of whitespace fixing and dead code removal and other trivial changes to this legacy driver. It does not improve the code to add two tabs to this _ancient_ code. And I can already see the next patch coming that removes the dead code after this FIXME return. And then the next patch will come to remove this function altogether, and so on and so on. This driver has a _lot_ of such code, because it is based on reverse engineered knowledge with many many unknowns. IMO this just creates additional maintenance work and pressure on our maintainers for no good reason.
Michael Büsch <m@bues.ch> writes: > On Wed, 20 Dec 2023 09:12:09 +0800 > Yang Li <yang.lee@linux.alibaba.com> wrote: > >> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7783 > > This link is not publicly accessible. > >> a/drivers/net/wireless/broadcom/b43legacy/dma.c +++ >> b/drivers/net/wireless/broadcom/b43legacy/dma.c @@ -174,8 +174,8 @@ >> static struct b43legacy_dmaring *priority_to_txring( { >> struct b43legacy_dmaring *ring; >> >> -/*FIXME: For now we always run on TX-ring-1 */ >> -return dev->dma.tx_ring1; >> + /*FIXME: For now we always run on TX-ring-1 */ >> + return dev->dma.tx_ring1; >> >> /* 0 = highest priority */ >> switch (queue_priority) { > > Thanks for your patch. > > But actually, I am kind of annoyed by the constant stream of whitespace > fixing and dead code removal and other trivial changes to this legacy > driver. > > It does not improve the code to add two tabs to this _ancient_ code. > > And I can already see the next patch coming that removes the dead code > after this FIXME return. And then the next patch will come to remove > this function altogether, and so on and so on. > > This driver has a _lot_ of such code, because it is based on reverse > engineered knowledge with many many unknowns. > > IMO this just creates additional maintenance work and pressure on our > maintainers for no good reason. Yeah, the cleanup patches are a problem. Even more so that there can be people who deliberately try to submit compromised code: https://lore.kernel.org/lkml/202105051005.49BFABCE@keescook/ brtfs has a pretty good summary about their feelings towards cleanup patches: https://btrfs.readthedocs.io/en/latest/dev/Developer-s-FAQ.html#how-not-to-start Johannes and me have been talking that we should write something similar for wireless. Maybe we should start by adding that link to our documentation :)
diff --git a/drivers/net/wireless/broadcom/b43legacy/dma.c b/drivers/net/wireless/broadcom/b43legacy/dma.c index 60e41de72f29..ea73c594d846 100644 --- a/drivers/net/wireless/broadcom/b43legacy/dma.c +++ b/drivers/net/wireless/broadcom/b43legacy/dma.c @@ -174,8 +174,8 @@ static struct b43legacy_dmaring *priority_to_txring( { struct b43legacy_dmaring *ring; -/*FIXME: For now we always run on TX-ring-1 */ -return dev->dma.tx_ring1; + /*FIXME: For now we always run on TX-ring-1 */ + return dev->dma.tx_ring1; /* 0 = highest priority */ switch (queue_priority) {