Content-Type: multipart/mixed; boundary="===============1081573072305463693==" MIME-Version: 1.0 From: Alex Elder To: kbuild-all@lists.01.org Subject: Re: [PATCH net-next v5 6/6] net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum header Date: Mon, 15 Mar 2021 15:56:49 -0500 Message-ID: In-Reply-To: <202103160320.Hh0H3lqn-lkp@intel.com> List-Id: --===============1081573072305463693== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 3/15/21 3:01 PM, kernel test robot wrote: > Hi Alex, > = > I love your patch! Yet something to improve: This is a little ridiculous. I'm going to have to review my process. I tested this code and built it in several environments. Unfortunately, the actual patch that I formatted and sent out does not match what's in my tree. I don't know what happened but I'm very sorry. I'll post version 6 shortly. -Alex > [auto build test ERROR on net-next/master] > = > url: https://github.com/0day-ci/linux/commits/Alex-Elder/net-qualcomm-= rmnet-stop-using-C-bit-fields/20210316-025323 > base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.gi= t 2117fce81f6b862aac0673abe8df0c60dca64bfa > config: sparc64-randconfig-m031-20210315 (attached as .config) > compiler: sparc64-linux-gcc (GCC) 9.3.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sb= in/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/0day-ci/linux/commit/34a8cce42717e61eeef72f= b1ec8ebd8dc1a4764c > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Alex-Elder/net-qualcomm-rmnet-s= top-using-C-bit-fields/20210316-025323 > git checkout 34a8cce42717e61eeef72fb1ec8ebd8dc1a4764c > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-9.3.0 make.cro= ss ARCH=3Dsparc64 > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c: In function 'rm= net_map_ipv4_ul_csum_header': >>> drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:204:13: error: 'st= ruct rmnet_map_ul_csum_header' has no member named 'csum_insert_offset'; di= d you mean 'csum_start_offset'? > 204 | ul_header->csum_insert_offset =3D skb->csum_offset; > | ^~~~~~~~~~~~~~~~~~ > | csum_start_offset >>> drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:205:11: error: 'st= ruct rmnet_map_ul_csum_header' has no member named 'csum_enabled' > 205 | ul_header->csum_enabled =3D 1; > | ^~ >>> drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:207:12: error: 'st= ruct rmnet_map_ul_csum_header' has no member named 'udp_ind' > 207 | ul_header->udp_ind =3D 1; > | ^~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:209:12: error: '= struct rmnet_map_ul_csum_header' has no member named 'udp_ind' > 209 | ul_header->udp_ind =3D 0; > | ^~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c: In function 'rm= net_map_ipv6_ul_csum_header': > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:244:13: error: '= struct rmnet_map_ul_csum_header' has no member named 'csum_insert_offset'; = did you mean 'csum_start_offset'? > 244 | ul_header->csum_insert_offset =3D skb->csum_offset; > | ^~~~~~~~~~~~~~~~~~ > | csum_start_offset > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:245:11: error: '= struct rmnet_map_ul_csum_header' has no member named 'csum_enabled' > 245 | ul_header->csum_enabled =3D 1; > | ^~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:248:12: error: '= struct rmnet_map_ul_csum_header' has no member named 'udp_ind' > 248 | ul_header->udp_ind =3D 1; > | ^~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:250:12: error: '= struct rmnet_map_ul_csum_header' has no member named 'udp_ind' > 250 | ul_header->udp_ind =3D 0; > | ^~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c: In function 'rm= net_map_checksum_uplink_packet': > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:423:13: error: '= struct rmnet_map_ul_csum_header' has no member named 'csum_insert_offset'; = did you mean 'csum_start_offset'? > 423 | ul_header->csum_insert_offset =3D 0; > | ^~~~~~~~~~~~~~~~~~ > | csum_start_offset > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:424:11: error: '= struct rmnet_map_ul_csum_header' has no member named 'csum_enabled' > 424 | ul_header->csum_enabled =3D 0; > | ^~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:425:11: error: '= struct rmnet_map_ul_csum_header' has no member named 'udp_ind' > 425 | ul_header->udp_ind =3D 0; > | ^~ > = > = > vim +204 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c > = > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 194 > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 195 static void > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 196 rmnet_map_= ipv4_ul_csum_header(void *iphdr, > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 197 s= truct rmnet_map_ul_csum_header *ul_header, > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 198 s= truct sk_buff *skb) > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 199 { > 8626cbb3cd11f6 Alex Elder 2021-03-15 200 __be16 *h= dr =3D (__be16 *)ul_header; > 8626cbb3cd11f6 Alex Elder 2021-03-15 201 struct ip= hdr *ip4h =3D iphdr; > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 202 > 8626cbb3cd11f6 Alex Elder 2021-03-15 203 ul_header= ->csum_start_offset =3D htons(skb_network_header_len(skb)); > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 @204 ul_header= ->csum_insert_offset =3D skb->csum_offset; > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 @205 ul_header= ->csum_enabled =3D 1; > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 206 if (ip4h-= >protocol =3D=3D IPPROTO_UDP) > a7cf3d24ee6081 Subash Abhinov Kasiviswanathan 2019-07-25 @207 ul_heade= r->udp_ind =3D 1; > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 208 else > a7cf3d24ee6081 Subash Abhinov Kasiviswanathan 2019-07-25 209 ul_heade= r->udp_ind =3D 0; > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 210 > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 211 /* Changi= ng remaining fields to network order */ > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 212 hdr++; > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 213 *hdr =3D = htons((__force u16)*hdr); > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 214 > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 215 skb->ip_s= ummed =3D CHECKSUM_NONE; > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 216 > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 217 rmnet_map= _complement_ipv4_txporthdr_csum_field(iphdr); > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 218 } > 5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 219 > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org >=20 --===============1081573072305463693==--