You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[Bluetooth]: Fix sparse warnings (__nocast type)
This patch fixes the sparse warnings "implicit cast to nocast type" for the priority or gfp_mask parameters of the memory allocations. Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3a5e903c09
commit
2eb25a6c34
@@ -135,7 +135,7 @@ struct bt_skb_cb {
|
||||
};
|
||||
#define bt_cb(skb) ((struct bt_skb_cb *)(skb->cb))
|
||||
|
||||
static inline struct sk_buff *bt_skb_alloc(unsigned int len, int how)
|
||||
static inline struct sk_buff *bt_skb_alloc(unsigned int len, unsigned int __nocast how)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ int rfcomm_send_rpn(struct rfcomm_session *s, int cr, u8 dlci,
|
||||
u8 xon_char, u8 xoff_char, u16 param_mask);
|
||||
|
||||
/* ---- RFCOMM DLCs (channels) ---- */
|
||||
struct rfcomm_dlc *rfcomm_dlc_alloc(int prio);
|
||||
struct rfcomm_dlc *rfcomm_dlc_alloc(unsigned int __nocast prio);
|
||||
void rfcomm_dlc_free(struct rfcomm_dlc *d);
|
||||
int rfcomm_dlc_open(struct rfcomm_dlc *d, bdaddr_t *src, bdaddr_t *dst, u8 channel);
|
||||
int rfcomm_dlc_close(struct rfcomm_dlc *d, int reason);
|
||||
|
||||
Reference in New Issue
Block a user