From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 309982C9D for ; Fri, 28 Jan 2022 12:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643373684; x=1674909684; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ztdVh+NZZ18Z6P1Aq48jKG/tZtlC6UcWlAOA5hHHMBE=; b=lQzt5wS2m1NcpuzrINZiBOzLwrR3TYvH6EJUmvWKkfPMrZxQVkAtT4GY k8lUjawd2nyXCruKS4DqQIlcTuUrdc8hi716WkcMtt6RP+R4VyjIcSso1 ImMCQf9P2kIeR8HukNMKDG1raacUBUvzTGY+6rLirC2WKh8AGg3bpYdfM Dv4xTsoYGNzEuUW0LblC8R+QQsAVcFwNnDrrLQ/uuVoWvYWwV0MhWGz/u 6ylvaXQYODSf4IvdqrziqX3ykmLna5KG+JZFZ2kSokTXXCHYtikR/oADM VjLgb/33teq9yVnftDVY4ui/2Z0Ky0oDbyhTVZmljQ5g2qtN9gkei5Yk3 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10240"; a="227783724" X-IronPort-AV: E=Sophos;i="5.88,323,1635231600"; d="scan'208";a="227783724" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 04:41:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,323,1635231600"; d="scan'208";a="536118366" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 28 Jan 2022 04:41:20 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nDQZ6-000Nrp-32; Fri, 28 Jan 2022 12:41:20 +0000 Date: Fri, 28 Jan 2022 20:40:51 +0800 From: kernel test robot To: cgel.zte@gmail.com, davem@davemloft.net Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Minghao Chi , Zeal Robot Subject: Re: [PATCH] net/802: use struct_size over open coded arithmetic Message-ID: <202201282017.0TQvVTtf-lkp@intel.com> References: <20220128080541.1211668-1-chi.minghao@zte.com.cn> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128080541.1211668-1-chi.minghao@zte.com.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on net/master horms-ipvs/master linus/master v5.17-rc1 next-20220128] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/cgel-zte-gmail-com/net-802-use-struct_size-over-open-coded-arithmetic/20220128-160925 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 72d044e4bfa6bd9096536e2e1c62aecfe1a525e4 config: riscv-randconfig-r042-20220124 (https://download.01.org/0day-ci/archive/20220128/202201282017.0TQvVTtf-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45ee44b1f32ffdbc995e6fec806271b4b3ba4) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/9b64e5078d3d779fc56432d43129479f63996c74 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review cgel-zte-gmail-com/net-802-use-struct_size-over-open-coded-arithmetic/20220128-160925 git checkout 9b64e5078d3d779fc56432d43129479f63996c74 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/net/wireless/ath/wcn36xx/ net/802/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> net/802/garp.c:187:17: error: member reference type 'struct garp_attr' is not a pointer; did you mean to use '.'? attr = kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:18: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~^ >> net/802/garp.c:187:17: error: indirection requires pointer operand ('unsigned char[]' invalid) attr = kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:14: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ^~~~~~~~~~~~ >> net/802/garp.c:187:17: error: member reference type 'struct garp_attr' is not a pointer; did you mean to use '.'? attr = kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:59: note: expanded from macro '__must_be_array' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ include/linux/compiler_types.h:287:63: note: expanded from macro '__same_type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/garp.c:187:17: error: member reference type 'struct garp_attr' is not a pointer; did you mean to use '.'? attr = kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:65: note: expanded from macro '__must_be_array' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ include/linux/compiler_types.h:287:74: note: expanded from macro '__same_type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/garp.c:187:17: error: indirection requires pointer operand ('struct garp_attr' invalid) attr = kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:195:14: note: expanded from macro 'struct_size' sizeof(*(p))) ^~~~ 5 errors generated. -- >> net/802/mrp.c:276:17: error: member reference type 'struct mrp_attr' is not a pointer; did you mean to use '.'? attr = kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:18: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~^ >> net/802/mrp.c:276:17: error: indirection requires pointer operand ('unsigned char[]' invalid) attr = kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:14: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ^~~~~~~~~~~~ >> net/802/mrp.c:276:17: error: member reference type 'struct mrp_attr' is not a pointer; did you mean to use '.'? attr = kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:59: note: expanded from macro '__must_be_array' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ include/linux/compiler_types.h:287:63: note: expanded from macro '__same_type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/mrp.c:276:17: error: member reference type 'struct mrp_attr' is not a pointer; did you mean to use '.'? attr = kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:65: note: expanded from macro '__must_be_array' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ include/linux/compiler_types.h:287:74: note: expanded from macro '__same_type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/mrp.c:276:17: error: indirection requires pointer operand ('struct mrp_attr' invalid) attr = kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:195:14: note: expanded from macro 'struct_size' sizeof(*(p))) ^~~~ 5 errors generated. vim +187 net/802/garp.c 166 167 static struct garp_attr *garp_attr_create(struct garp_applicant *app, 168 const void *data, u8 len, u8 type) 169 { 170 struct rb_node *parent = NULL, **p = &app->gid.rb_node; 171 struct garp_attr *attr; 172 int d; 173 174 while (*p) { 175 parent = *p; 176 attr = rb_entry(parent, struct garp_attr, node); 177 d = garp_attr_cmp(attr, data, len, type); 178 if (d > 0) 179 p = &parent->rb_left; 180 else if (d < 0) 181 p = &parent->rb_right; 182 else { 183 /* The attribute already exists; re-use it. */ 184 return attr; 185 } 186 } > 187 attr = kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); 188 if (!attr) 189 return attr; 190 attr->state = GARP_APPLICANT_VO; 191 attr->type = type; 192 attr->dlen = len; 193 memcpy(attr->data, data, len); 194 195 rb_link_node(&attr->node, parent, p); 196 rb_insert_color(&attr->node, &app->gid); 197 return attr; 198 } 199 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4503970385931227888==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH] net/802: use struct_size over open coded arithmetic Date: Fri, 28 Jan 2022 20:40:51 +0800 Message-ID: <202201282017.0TQvVTtf-lkp@intel.com> In-Reply-To: <20220128080541.1211668-1-chi.minghao@zte.com.cn> List-Id: --===============4503970385931227888== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on net/master horms-ipvs/master linus/master v5.17-r= c1 next-20220128] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/cgel-zte-gmail-com/net-802= -use-struct_size-over-open-coded-arithmetic/20220128-160925 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git = 72d044e4bfa6bd9096536e2e1c62aecfe1a525e4 config: riscv-randconfig-r042-20220124 (https://download.01.org/0day-ci/arc= hive/20220128/202201282017.0TQvVTtf-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45e= e44b1f32ffdbc995e6fec806271b4b3ba4) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/9b64e5078d3d779fc56432d43= 129479f63996c74 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review cgel-zte-gmail-com/net-802-use-str= uct_size-over-open-coded-arithmetic/20220128-160925 git checkout 9b64e5078d3d779fc56432d43129479f63996c74 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Driscv SHELL=3D/bin/bash drivers/net/wireless/ath/wcn= 36xx/ net/802/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> net/802/garp.c:187:17: error: member reference type 'struct garp_attr' i= s not a pointer; did you mean to use '.'? attr =3D kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:18: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~^ >> net/802/garp.c:187:17: error: indirection requires pointer operand ('uns= igned char[]' invalid) attr =3D kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:14: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ^~~~~~~~~~~~ >> net/802/garp.c:187:17: error: member reference type 'struct garp_attr' i= s not a pointer; did you mean to use '.'? attr =3D kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:59: note: expanded from macro '__must_be_ar= ray' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[= 0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~= ~~~~ include/linux/compiler_types.h:287:63: note: expanded from macro '__same= _type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof= (b)) ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON= _ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/garp.c:187:17: error: member reference type 'struct garp_attr' i= s not a pointer; did you mean to use '.'? attr =3D kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:65: note: expanded from macro '__must_be_ar= ray' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[= 0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~= ~~~~ include/linux/compiler_types.h:287:74: note: expanded from macro '__same= _type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof= (b)) = ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON= _ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/garp.c:187:17: error: indirection requires pointer operand ('str= uct garp_attr' invalid) attr =3D kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:195:14: note: expanded from macro 'struct_size' sizeof(*(p))) ^~~~ 5 errors generated. -- >> net/802/mrp.c:276:17: error: member reference type 'struct mrp_attr' is = not a pointer; did you mean to use '.'? attr =3D kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:18: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~^ >> net/802/mrp.c:276:17: error: indirection requires pointer operand ('unsi= gned char[]' invalid) attr =3D kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:14: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ^~~~~~~~~~~~ >> net/802/mrp.c:276:17: error: member reference type 'struct mrp_attr' is = not a pointer; did you mean to use '.'? attr =3D kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:59: note: expanded from macro '__must_be_ar= ray' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[= 0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~= ~~~~ include/linux/compiler_types.h:287:63: note: expanded from macro '__same= _type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof= (b)) ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON= _ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/mrp.c:276:17: error: member reference type 'struct mrp_attr' is = not a pointer; did you mean to use '.'? attr =3D kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:194:49: note: expanded from macro 'struct_size' sizeof(*(p)->member) + __must_be_array((p)->member),\ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ include/linux/compiler.h:258:65: note: expanded from macro '__must_be_ar= ray' #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[= 0])) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~= ~~~~ include/linux/compiler_types.h:287:74: note: expanded from macro '__same= _type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof= (b)) = ^ include/linux/build_bug.h:16:62: note: expanded from macro 'BUILD_BUG_ON= _ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> net/802/mrp.c:276:17: error: indirection requires pointer operand ('stru= ct mrp_attr' invalid) attr =3D kmalloc(struct_size(*attr, value, len), GFP_ATOMIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/overflow.h:195:14: note: expanded from macro 'struct_size' sizeof(*(p))) ^~~~ 5 errors generated. vim +187 net/802/garp.c 166 = 167 static struct garp_attr *garp_attr_create(struct garp_applicant *app, 168 const void *data, u8 len, u8 type) 169 { 170 struct rb_node *parent =3D NULL, **p =3D &app->gid.rb_node; 171 struct garp_attr *attr; 172 int d; 173 = 174 while (*p) { 175 parent =3D *p; 176 attr =3D rb_entry(parent, struct garp_attr, node); 177 d =3D garp_attr_cmp(attr, data, len, type); 178 if (d > 0) 179 p =3D &parent->rb_left; 180 else if (d < 0) 181 p =3D &parent->rb_right; 182 else { 183 /* The attribute already exists; re-use it. */ 184 return attr; 185 } 186 } > 187 attr =3D kmalloc(struct_size(*attr, data, len), GFP_ATOMIC); 188 if (!attr) 189 return attr; 190 attr->state =3D GARP_APPLICANT_VO; 191 attr->type =3D type; 192 attr->dlen =3D len; 193 memcpy(attr->data, data, len); 194 = 195 rb_link_node(&attr->node, parent, p); 196 rb_insert_color(&attr->node, &app->gid); 197 return attr; 198 } 199 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4503970385931227888==--