[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vinson Lee <vlee@xxxxxxxxxxx>

This patch fixes this build error.

  CC	syscalls/socket.o
syscalls/socket.c:48:2: error: missing initializer for field ‘func’ of ‘const struct socket_ptr’ [-Werror=missing-field-initializers]
  [AF_ECONET] = {  }, // DEAD
  ^
syscalls/socket.c:22:9: note: ‘func’ declared here
  void (*func)(struct socket_triplet *st);
         ^

Signed-off-by: Vinson Lee <vlee@xxxxxxxxxxx>
---
 syscalls/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syscalls/socket.c b/syscalls/socket.c
index 8beaf8d..94feb66 100644
--- a/syscalls/socket.c
+++ b/syscalls/socket.c
@@ -45,7 +45,7 @@ static const struct socket_ptr socketptrs[] = {
 	[AF_NETLINK] = { .func = &netlink_rand_socket },
 	[AF_PACKET] = { .func = &packet_rand_socket },
 	[AF_ASH] = { .func = NULL },
-	[AF_ECONET] = {  },	// DEAD
+	[AF_ECONET] = { .func = NULL },	// DEAD
 	[AF_ATMSVC] = { .func = NULL },
 	[AF_RDS] = { .func = &rds_rand_socket },
 	[AF_SNA] = { .func = NULL },
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux