Skip to content

Commit 2897871

Browse files
anderssondavem330
authored andcommitted
net: qrtr: Move constants to header file
The constants are used by both the name server and clients, so clarify their value and move them to the uapi header. Signed-off-by: Bjorn Andersson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ae85bfa commit 2897871

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/uapi/linux/qrtr.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include <linux/socket.h>
55
#include <linux/types.h>
66

7+
#define QRTR_NODE_BCAST 0xffffffffu
8+
#define QRTR_PORT_CTRL 0xfffffffeu
9+
710
struct sockaddr_qrtr {
811
__kernel_sa_family_t sq_family;
912
__u32 sq_node;

net/qrtr/qrtr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ struct qrtr_hdr {
6161
} __packed;
6262

6363
#define QRTR_HDR_SIZE sizeof(struct qrtr_hdr)
64-
#define QRTR_NODE_BCAST ((unsigned int)-1)
65-
#define QRTR_PORT_CTRL ((unsigned int)-2)
6664

6765
struct qrtr_sock {
6866
/* WARNING: sk must be the first member */

0 commit comments

Comments
 (0)