mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-02 20:29:20 +00: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:
parent
3a5e903c09
commit
2eb25a6c34
9 changed files with 10 additions and 9 deletions
|
@ -372,7 +372,7 @@ static struct proto l2cap_proto = {
|
|||
.obj_size = sizeof(struct l2cap_pinfo)
|
||||
};
|
||||
|
||||
static struct sock *l2cap_sock_alloc(struct socket *sock, int proto, int prio)
|
||||
static struct sock *l2cap_sock_alloc(struct socket *sock, int proto, unsigned int __nocast prio)
|
||||
{
|
||||
struct sock *sk;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue