mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
module_param: make bool parameters really bool (net & drivers/net)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
(Thanks to Joe Perches for suggesting coccinelle for 0/1 -> true/false).
Cc: "David S. Miller" <[email protected]>
Cc: [email protected]
Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3db1cd5c05
commit
eb93992207
52 changed files with 64 additions and 63 deletions
|
|
@ -56,8 +56,8 @@
|
|||
|
||||
#define VERSION "1.3"
|
||||
|
||||
static int compress_src = 1;
|
||||
static int compress_dst = 1;
|
||||
static bool compress_src = true;
|
||||
static bool compress_dst = true;
|
||||
|
||||
static LIST_HEAD(bnep_session_list);
|
||||
static DECLARE_RWSEM(bnep_session_sem);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
#include <net/bluetooth/bluetooth.h>
|
||||
#include <net/bluetooth/hci_core.h>
|
||||
|
||||
static int enable_le;
|
||||
static bool enable_le;
|
||||
|
||||
/* Handle HCI Event packets */
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
#include <net/bluetooth/bluetooth.h>
|
||||
#include <net/bluetooth/hci_core.h>
|
||||
|
||||
static int enable_mgmt;
|
||||
static bool enable_mgmt;
|
||||
|
||||
/* ----- HCI socket interface ----- */
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
#include <net/bluetooth/l2cap.h>
|
||||
#include <net/bluetooth/smp.h>
|
||||
|
||||
int disable_ertm;
|
||||
bool disable_ertm;
|
||||
|
||||
static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN;
|
||||
static u8 l2cap_fixed_chan[8] = { L2CAP_FC_L2CAP, };
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@
|
|||
|
||||
#define VERSION "1.11"
|
||||
|
||||
static int disable_cfc;
|
||||
static int l2cap_ertm;
|
||||
static bool disable_cfc;
|
||||
static bool l2cap_ertm;
|
||||
static int channel_mtu = -1;
|
||||
static unsigned int l2cap_mtu = RFCOMM_MAX_L2CAP_MTU;
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
#include <net/bluetooth/hci_core.h>
|
||||
#include <net/bluetooth/sco.h>
|
||||
|
||||
static int disable_esco;
|
||||
static bool disable_esco;
|
||||
|
||||
static const struct proto_ops sco_sock_ops;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue