Return-path: Received: from cantor2.suse.de ([195.135.220.15]:56520 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752877Ab1GGB5n (ORCPT ); Wed, 6 Jul 2011 21:57:43 -0400 Date: Wed, 6 Jul 2011 18:45:12 -0700 From: Greg KH To: Pavel Roskin Cc: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Henry Ptasinski , linville@tuxdriver.com, devel@linuxdriverproject.org, linux-wireless@vger.kernel.org, Brett Rudley , Arend Van Spriel , Roland Vossen , Zhenhui Lin Subject: Re: [RFC] Move brcm80211 to mainline Message-ID: <20110707014512.GA21087@suse.de> (sfid-20110707_035747_596105_A5285C69) References: <20110707002034.GA17885@broadcom.com> <4E1504A3.1070801@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <4E1504A3.1070801@gnu.org> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Jul 06, 2011 at 08:58:11PM -0400, Pavel Roskin wrote: > On 07/06/2011 08:40 PM, Rafał Miłecki wrote: > >Short question, without commenting on brcm80211 code yet: > > > >Why should we want 2 mainline drivers for the same hardware? > > Also, checkpatch.pl finds a lot of bad stuff: > > total: 1 errors, 1505 warnings, 105454 lines checked > > $ scripts/checkpatch.pl 0001-wireless-testing-add-brcm80211.patch >Log > $ egrep '^(WARNING|ERROR)' Log |sort |uniq -c > 1 ERROR: do not use assignment in if condition > 76 WARNING: braces {} are not necessary for any arm of this statement > 205 WARNING: braces {} are not necessary for single statement blocks > 4 WARNING: consider using a completion > 11 WARNING: consider using kstrto* in preference to simple_strtoul > 20 WARNING: do not add new typedefs > 5 WARNING: externs should be avoided in .c files > 1164 WARNING: line over 80 characters > 20 WARNING: Use of volatile is usually wrong: see Almost all of these should be fixed, especially the volatile one, that's just horrible. Also, there's the whole big endian mess that needs to be fixed up before the driver can be moved out of staging. Henry, what's the status of that? greg k-h