tree:
https://github.com/jpirko/linux_mlxsw combined_queue
head: bee88ab297e1c5bf099935a8885efc515365fbd9
commit: 1a9b86c9fd9536b5c0dfbf7b4acbb7f61c820b74 rxrpc: use udp tunnel APIs instead of
open code in rxrpc_open_socket
date: 17 hours ago
config: powerpc64-randconfig-r005-20210209 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/jpirko/linux_mlxsw/commit/1a9b86c9fd9536b5c0dfbf7b4acb...
git remote add jpirko-mlxsw
https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw combined_queue
git checkout 1a9b86c9fd9536b5c0dfbf7b4acbb7f61c820b74
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
net/rxrpc/local_object.c: In function 'rxrpc_open_socket':
> net/rxrpc/local_object.c:124:12: error: 'struct
udp_port_cfg' has no member named 'local_ip6'; did you mean
'local_ip'?
124 | udp_conf.local_ip6 =
srx->transport.sin6.sin6_addr;
| ^~~~~~~~~
| local_ip
vim +124 net/rxrpc/local_object.c
103
104 /*
105 * create the local socket
106 * - must be called with rxrpc_local_mutex locked
107 */
108 static int rxrpc_open_socket(struct rxrpc_local *local, struct net *net)
109 {
110 struct udp_tunnel_sock_cfg tuncfg = {NULL};
111 struct sockaddr_rxrpc *srx = &local->srx;
112 struct udp_port_cfg udp_conf = {0};
113 struct sock *usk;
114 int ret;
115
116 _enter("%p{%d,%d}",
117 local, srx->transport_type, srx->transport.family);
118
119 udp_conf.family = srx->transport.family;
120 if (udp_conf.family == AF_INET) {
121 udp_conf.local_ip = srx->transport.sin.sin_addr;
122 udp_conf.local_udp_port = srx->transport.sin.sin_port;
123 } else {
124 udp_conf.local_ip6 = srx->transport.sin6.sin6_addr;
125 udp_conf.local_udp_port = srx->transport.sin6.sin6_port;
126 }
127 ret = udp_sock_create(net, &udp_conf, &local->socket);
128 if (ret < 0) {
129 _leave(" = %d [socket]", ret);
130 return ret;
131 }
132
133 tuncfg.encap_type = UDP_ENCAP_RXRPC;
134 tuncfg.encap_rcv = rxrpc_input_packet;
135 tuncfg.sk_user_data = local;
136 setup_udp_tunnel_sock(net, local->socket, &tuncfg);
137
138 /* set the socket up */
139 usk = local->socket->sk;
140 usk->sk_error_report = rxrpc_error_report;
141
142 switch (srx->transport.family) {
143 case AF_INET6:
144 /* we want to receive ICMPv6 errors */
145 ip6_sock_set_recverr(usk);
146
147 /* Fall through and set IPv4 options too otherwise we don't get
148 * errors from IPv4 packets sent through the IPv6 socket.
149 */
150 fallthrough;
151 case AF_INET:
152 /* we want to receive ICMP errors */
153 ip_sock_set_recverr(usk);
154
155 /* we want to set the don't fragment bit */
156 ip_sock_set_mtu_discover(usk, IP_PMTUDISC_DO);
157
158 /* We want receive timestamps. */
159 sock_enable_timestamps(usk);
160 break;
161
162 default:
163 BUG();
164 }
165
166 _leave(" = 0");
167 return 0;
168 }
169
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org