linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: linux-next: Tree for Nov 17 (bluetooth)
       [not found] <20111117150733.a70faf2c9030d511d5367e1e@canb.auug.org.au>
@ 2011-11-17 17:50 ` Randy Dunlap
  2011-11-18  9:58   ` Andrei Emeltchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2011-11-17 17:50 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, LKML, Marcel Holtmann, Gustavo F. Padovan,
	linux-bluetooth

On 11/16/2011 08:07 PM, Stephen Rothwell wrote:
> Hi all,


When CONFIG_BT_L2CAP is not enabled:

net/built-in.o: In function `hci_dev_open':
(.text+0xdce9a): undefined reference to `enable_hs'

-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: Tree for Nov 17 (bluetooth)
  2011-11-17 17:50 ` linux-next: Tree for Nov 17 (bluetooth) Randy Dunlap
@ 2011-11-18  9:58   ` Andrei Emeltchenko
  2011-11-18 13:30     ` Gustavo Padovan
  0 siblings, 1 reply; 4+ messages in thread
From: Andrei Emeltchenko @ 2011-11-18  9:58 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Stephen Rothwell, linux-next, LKML, Marcel Holtmann,
	Gustavo F. Padovan, linux-bluetooth

Hi Randy,

On Thu, Nov 17, 2011 at 09:50:39AM -0800, Randy Dunlap wrote:
> On 11/16/2011 08:07 PM, Stephen Rothwell wrote:
> > Hi all,
> 
> 
> When CONFIG_BT_L2CAP is not enabled:
> 
> net/built-in.o: In function `hci_dev_open':
> (.text+0xdce9a): undefined reference to `enable_hs'

Despite not enabling L2CAP sounds strange we might find solution even for
this usage :-)
I am thinking about moving enable_hs to common part not depending on
CONFIG_BT_L2CAP option:

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index cfd399f..ed0a656 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -54,6 +54,8 @@
 
 #define AUTO_OFF_TIMEOUT 2000
 
+int enable_hs;
+
 static void hci_cmd_task(unsigned long arg);
 static void hci_rx_task(unsigned long arg);
 static void hci_tx_task(unsigned long arg);
@@ -2691,3 +2693,6 @@ int hci_cancel_inquiry(struct hci_dev *hdev)
 
        return hci_send_cmd(hdev, HCI_OP_INQUIRY_CANCEL, 0, NULL);
 }
+
+module_param(enable_hs, bool, 0644);
+MODULE_PARM_DESC(enable_hs, "Enable High Speed");
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index e49b6e5..f36bc3f 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -58,7 +58,6 @@
 #include <net/bluetooth/a2mp.h>
 
 int disable_ertm;
-int enable_hs;
 
 static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN;
 static u8 l2cap_fixed_chan[8] = { L2CAP_FC_L2CAP, };
@@ -4811,6 +4810,3 @@ void l2cap_exit(void)
 
 module_param(disable_ertm, bool, 0644);
 MODULE_PARM_DESC(disable_ertm, "Disable enhanced retransmission mode");
-
-module_param(enable_hs, bool, 0644);
-MODULE_PARM_DESC(enable_hs, "Enable High Speed");


Best regards 
Andrei Emeltchenko 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: linux-next: Tree for Nov 17 (bluetooth)
  2011-11-18  9:58   ` Andrei Emeltchenko
@ 2011-11-18 13:30     ` Gustavo Padovan
  2011-11-18 13:41       ` Andrei Emeltchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Gustavo Padovan @ 2011-11-18 13:30 UTC (permalink / raw)
  To: Andrei Emeltchenko, Randy Dunlap, Stephen Rothwell, linux-next,
	LKML, Marcel Holtmann, linux-bluetooth

Hi Andrei,

* Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com> [2011-11-18 11:58:58 +0200]:

> Hi Randy,
> 
> On Thu, Nov 17, 2011 at 09:50:39AM -0800, Randy Dunlap wrote:
> > On 11/16/2011 08:07 PM, Stephen Rothwell wrote:
> > > Hi all,
> > 
> > 
> > When CONFIG_BT_L2CAP is not enabled:
> > 
> > net/built-in.o: In function `hci_dev_open':
> > (.text+0xdce9a): undefined reference to `enable_hs'
> 
> Despite not enabling L2CAP sounds strange we might find solution even for
> this usage :-)
> I am thinking about moving enable_hs to common part not depending on
> CONFIG_BT_L2CAP option:

This is ok, please send a proper git patch so I can apply it.

	Gustavo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: Tree for Nov 17 (bluetooth)
  2011-11-18 13:30     ` Gustavo Padovan
@ 2011-11-18 13:41       ` Andrei Emeltchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andrei Emeltchenko @ 2011-11-18 13:41 UTC (permalink / raw)
  To: Randy Dunlap, Stephen Rothwell, linux-next, LKML, Marcel Holtmann,
	linux-bluetooth

Hi Gustavo,

On Fri, Nov 18, 2011 at 11:30:17AM -0200, Gustavo Padovan wrote:
> Hi Andrei,
> 
> * Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com> [2011-11-18 11:58:58 +0200]:
> 
> > Hi Randy,
> > 
> > On Thu, Nov 17, 2011 at 09:50:39AM -0800, Randy Dunlap wrote:
> > > On 11/16/2011 08:07 PM, Stephen Rothwell wrote:
> > > > Hi all,
> > > 
> > > 
> > > When CONFIG_BT_L2CAP is not enabled:
> > > 
> > > net/built-in.o: In function `hci_dev_open':
> > > (.text+0xdce9a): undefined reference to `enable_hs'
> > 
> > Despite not enabling L2CAP sounds strange we might find solution even for
> > this usage :-)
> > I am thinking about moving enable_hs to common part not depending on
> > CONFIG_BT_L2CAP option:
> 
> This is ok, please send a proper git patch so I can apply it.

The patch is already sent to linux-bluetooth

Best regards 
Andrei Emeltchenko 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-18 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20111117150733.a70faf2c9030d511d5367e1e@canb.auug.org.au>
2011-11-17 17:50 ` linux-next: Tree for Nov 17 (bluetooth) Randy Dunlap
2011-11-18  9:58   ` Andrei Emeltchenko
2011-11-18 13:30     ` Gustavo Padovan
2011-11-18 13:41       ` Andrei Emeltchenko

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).