Skip to content
Snippets Groups Projects
  1. Aug 10, 2015
  2. Jul 30, 2015
  3. Nov 10, 2014
    • Johan Hedberg's avatar
      Bluetooth: Fix sparse warning in amp.c · 252670c4
      Johan Hedberg authored
      
      This fixes the following sparse warning:
      
      net/bluetooth/amp.c:152:53: warning: Variable length array is used.
      
      The warning itself is probably harmless since this kind of usage of
      shash_desc is present also in other places in the kernel (there's even a
      convenience macro SHASH_DESC_ON_STACK available for defining such stack
      variables). However, dynamically allocated versions are also used in
      several places of the kernel (e.g. kernel/kexec.c and lib/digsig.c)
      which have the benefit of not exhibiting the sparse warning.
      
      Since there are no more sparse warnings in the Bluetooth subsystem after
      fixing this one it is now easier to spot whenever new ones might get
      introduced by future patches.
      
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      252670c4
  4. Sep 08, 2014
  5. Jul 20, 2014
  6. Jul 16, 2014
    • Johan Hedberg's avatar
      Bluetooth: Add a role parameter to hci_conn_add() · a5c4e309
      Johan Hedberg authored
      
      We need to be able to track slave vs master LE connections in
      hci_conn_hash, and to be able to do that we need to know the role of the
      connection by the time hci_conn_add_has() is called. This means in
      practice the hci_conn_add() call that creates the hci_conn_object.
      
      This patch adds a new role parameter to hci_conn_add() function to give
      the object its initial role value, and updates the callers to pass the
      appropriate role to it. Since the function now takes care of
      initializing both conn->role and conn->out values we can remove some
      other unnecessary assignments.
      
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      a5c4e309
  7. Oct 13, 2013
  8. Oct 10, 2013
  9. Jan 09, 2013
  10. Nov 20, 2012
  11. Nov 19, 2012
  12. Nov 01, 2012
  13. Oct 18, 2012
  14. Oct 07, 2012
  15. Sep 27, 2012
Loading