by tritron » Tue Jun 21, 2011 4:28 pm
I am trying to compile my own and I get this errors
net/bluetooth/hci_sock.c: In function âhci_sock_dev_eventâ:
net/bluetooth/hci_sock.c:672:4: error: implicit declaration of function âbh_lock_sock_nestedâ [net/bluetooth/hci_sock.c:681:4: error: implicit declaration of function âbh_unlock_sockâcc1: some warnings being treated as errors
There is source
/* Detach sockets from device */
read_lock(&hci_sk_list.lock);
sk_for_each(sk, node, &hci_sk_list.head) {
local_bh_disable();
bh_lock_sock_nested(sk);
if (hci_pi(sk)->hdev == hdev) {
hci_pi(sk)->hdev = NULL;
sk->sk_err = EPIPE;
sk->sk_state = BT_OPEN;
sk->sk_state_change(sk);
hci_dev_put(hdev);
}
bh_unlock_sock(sk);
local_bh_enable();
}