linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Arend van Spriel <arend@broadcom.com>
Cc: "gregkh@suse.de" <gregkh@suse.de>,
	Julian Calaby <julian.calaby@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"devel@linuxdriverproject.org" <devel@linuxdriverproject.org>
Subject: Re: [PATCH 9/9] staging: brcm80211: move utility functions into new module
Date: Tue, 10 May 2011 11:04:49 -0700	[thread overview]
Message-ID: <20110510180449.GE2335@kroah.com> (raw)
In-Reply-To: <4DC91A4C.7020305@broadcom.com>

On Tue, May 10, 2011 at 12:58:20PM +0200, Arend van Spriel wrote:
> On 05/10/2011 06:18 AM, Julian Calaby wrote:
> >Arend, Henry,
> >
> >One problem I noticed with your patch:
> >
> >On Tue, May 10, 2011 at 00:33, Arend van Spriel<arend@broadcom.com>  wrote:
> >>From: Henry Ptasinski<henryp@broadcom.com>
> >>
> >>Move utility functions shared by the brcmsmac and brcmfmac drivers into a new
> >>module, brcmutil.ko.  This eliminates the need to compile and link the shared
> >>functions into both drivers.  Prefix all exported symbols with "bcm_".
> >>
> >>Cc: devel@linuxdriverproject.org
> >>Cc: linux-wireless@vger.kernel.org
> >>Reviewed-by: Brett Rudley<brudley@broadcom.com>
> >>Signed-off-by: Arend van Spriel<arend@broadcom.com>
> >>---
> >>  drivers/staging/brcm80211/Makefile                |    1 +
> >>
> >>diff --git a/drivers/staging/brcm80211/Makefile b/drivers/staging/brcm80211/Makefile
> >>index c064cdf..287ad0e 100644
> >>--- a/drivers/staging/brcm80211/Makefile
> >>+++ b/drivers/staging/brcm80211/Makefile
> >>@@ -19,5 +19,6 @@
> >>  subdir-ccflags-y                                       := -DBCMDMA32
> >>  subdir-ccflags-$(CONFIG_BRCMDBG)       += -DBCMDBG -DBCMDBG_ASSERT
> >>
> >>+obj-m                  += util/
> >>  obj-$(CONFIG_BRCMFMAC) += brcmfmac/
> >>  obj-$(CONFIG_BRCMSMAC) += brcmsmac/
> >You should not use obj-m directly - the way this is set up, if module
> >support is disabled, then the driver will fail as the brcmutil module
> >will not be built. This might also happen if the drivers are built
> >into the kernel ('y' rather than 'm')
> >
> >You should create a new Kconfig variable (say BRCMWLUTIL) and use some
> >Kconfig trickery to ensure that it's built properly for the drivers
> >that need it, then replace this line with something like
> >
> >obj-$(CONFIG_BRCMWLUTIL)
> >
> >The LIB80211 symbol used by the Intel 2x00 (old non-mac80211) wireless
> >drivers uses similar trickery to ensure that everything is built
> >properly.
> Hi Greg,
> 
> We were informed about this potential problem. Should I resend this
> patch or fix it with a separate patch?

Resend it with a fixed version, I'll just not apply this one in the
series for now.

thanks,

greg k-h

  reply	other threads:[~2011-05-10 18:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1304951590-2411-1-git-send-email-arend@broadcom.com>
2011-05-09 14:33 ` [PATCH 1/9] staging: brcm80211: move header file Arend van Spriel
2011-05-09 14:33 ` [PATCH 2/9] staging: brcm80211: move files only used by brcmsmac into appropriate dir Arend van Spriel
2011-05-09 14:33 ` [PATCH 3/9] staging: brcm80211: delete unneeded files Arend van Spriel
2011-05-09 14:33 ` [PATCH 4/9] staging: brcm80211: remove unnecessary header file Arend van Spriel
2011-05-09 14:33 ` [PATCH 5/9] staging: brcm80211: remove unneeded include path Arend van Spriel
2011-05-09 14:33 ` [PATCH 6/9] staging: brcm80211: remove unused function Arend van Spriel
2011-05-09 14:33 ` [PATCH 7/9] staging: brcm80211: move another file only used by brcmsmac into appropriate dir Arend van Spriel
2011-05-09 14:33 ` [PATCH 8/9] staging: brcm80211: move functions only used by brcmsmac out of utils Arend van Spriel
2011-05-09 14:33 ` [PATCH 9/9] staging: brcm80211: move utility functions into new module Arend van Spriel
2011-05-10  4:18   ` Julian Calaby
2011-05-10  4:20     ` Julian Calaby
2011-05-10 10:58     ` Arend van Spriel
2011-05-10 18:04       ` Greg KH [this message]
2011-05-10 19:04         ` Arend van Spriel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110510180449.GE2335@kroah.com \
    --to=greg@kroah.com \
    --cc=arend@broadcom.com \
    --cc=devel@linuxdriverproject.org \
    --cc=gregkh@suse.de \
    --cc=julian.calaby@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).