linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2 0/3] Bluetooth: Add HCI init setup stage
Date: Thu, 4 Apr 2013 12:46:08 +0300	[thread overview]
Message-ID: <20130404094608.GA4710@x220> (raw)
In-Reply-To: <20130404082436.GA2340@x220>

[-- Attachment #1: Type: text/plain, Size: 1418 bytes --]

Hi Marcel,

On Thu, Apr 04, 2013, Johan Hedberg wrote:
> On Tue, Apr 02, 2013, Johan Hedberg wrote:
> > This is a resend of Marcel's patches that were sent in November, rebased
> > and fixed-up for bluetooth-next. They are a pre-requsite of some
> > follow-up work I'm doing to have a simple way of doing synchronous
> > single-command requests that will be needed by some HCI driver setup
> > routines.
> > 
> > Johan
> > 
> > ----------------------------------------------------------------
> > Marcel Holtmann (3):
> >       Bluetooth: Add driver setup stage for early init
> >       Bluetooth: Convert BCM92035 support to driver setup callback
> >       Bluetooth: Remove driver init queue from core
> > 
> >  drivers/bluetooth/btusb.c        |   28 +++++++++++--------
> >  include/net/bluetooth/hci_core.h |    3 +-
> >  net/bluetooth/hci_core.c         |   56 ++++++++++++++------------------------
> >  3 files changed, 38 insertions(+), 49 deletions(-)
> 
> There patches have now been pushed to the bluetooth-next tree.

I had to temporarily remove these since they cause build breakage when
building as modules:

>> ERROR: "hci_send_cmd" [drivers/bluetooth/btusb.ko] undefined!

It seems the reason is a missing EXPORT_SYMBOL declaration for
hci_send_cmd which the attached patch should fix. I'll also send a
revised patch set of my own function additions since those too will need
this declaration.

Johan

[-- Attachment #2: 0001-Bluetooth-Export-hci_send_cmd-outside-of-the-HCI-cor.patch --]
[-- Type: text/plain, Size: 974 bytes --]

>From 74b40041d3caeae96d9cbdd2f0ac8a478b79c7c1 Mon Sep 17 00:00:00 2001
From: Johan Hedberg <johan.hedberg@intel.com>
Date: Thu, 4 Apr 2013 12:39:53 +0300
Subject: [PATCH] Bluetooth: Export hci_send_cmd outside of the HCI core

This function will be needed by HCI drivers when we enable the driver
setup sequence to use the HCI core functionality. Hence, export the
symbol using EXPORT_SYMBOL.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
---
 net/bluetooth/hci_core.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index a199d63..6dfb2f3 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2538,6 +2538,7 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param)
 
 	return 0;
 }
+EXPORT_SYMBOL(hci_send_cmd);
 
 /* Queue a command to an asynchronous HCI request */
 void hci_req_add(struct hci_request *req, u16 opcode, u32 plen, void *param)
-- 
1.7.10.4


  reply	other threads:[~2013-04-04  9:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02 17:21 [PATCH v2 0/3] Bluetooth: Add HCI init setup stage Johan Hedberg
2013-04-02 17:21 ` [PATCH v2 1/3] Bluetooth: Add driver setup stage for early init Johan Hedberg
2013-04-02 17:21 ` [PATCH v2 2/3] Bluetooth: Convert BCM92035 support to driver setup callback Johan Hedberg
2013-04-02 17:21 ` [PATCH v2 3/3] Bluetooth: Remove driver init queue from core Johan Hedberg
2013-04-04  8:24 ` [PATCH v2 0/3] Bluetooth: Add HCI init setup stage Johan Hedberg
2013-04-04  9:46   ` Johan Hedberg [this message]
2013-04-04 15:22     ` Marcel Holtmann

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=20130404094608.GA4710@x220 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@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).