mctp: unify sockaddr_mctp types
authorJeremy Kerr <jk@codeconstruct.com.au>
Mon, 18 Oct 2021 03:29:34 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2021 12:47:09 +0000 (13:47 +0100)
commitb416beb25d9317499c823aea1522eefd8d72ea36
treec030ece1868997d8456871b61a047cacfa485ea3
parentb2cddb44bddc1a9c5949a978bb454bba863264db
mctp: unify sockaddr_mctp types

Use the more precise __kernel_sa_family_t for smctp_family, to match
struct sockaddr.

Also, use an unsigned int for the network member; negative networks
don't make much sense. We're already using unsigned for mctp_dev and
mctp_skb_cb, but need to change mctp_sock to suit.

Fixes: 60fc63981693 ("mctp: Add sockaddr_mctp to uapi")
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Acked-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/mctp.rst
include/net/mctp.h
include/uapi/linux/mctp.h