# git rev-parse -q --verify 1c06a6bb5ac88320f5c36c4ac200b4b53f8b3c46^{commit} 1c06a6bb5ac88320f5c36c4ac200b4b53f8b3c46 already have revision, skipping fetch # git checkout -q -f -B kisskb 1c06a6bb5ac88320f5c36c4ac200b4b53f8b3c46 # git clean -qxdf # < git log -1 # commit 1c06a6bb5ac88320f5c36c4ac200b4b53f8b3c46 # Author: Gustavo A. R. Silva # Date: Mon Jun 10 16:00:38 2019 -0500 # # libnvdimm, region: Use struct_size() helper in kzalloc() # # One of the more common cases of allocation size calculations is finding # the size of a structure that has a zero-sized array at the end, along # with memory for some number of elements for that array. For example: # # struct nd_region { # ... # struct nd_mapping mapping[0]; # }; # # instance = kzalloc(sizeof(struct nd_region) + sizeof(struct nd_mapping) * # count, GFP_KERNEL); # # Instead of leaving these open-coded and prone to type mistakes, we can # now use the new struct_size() helper: # # instance = kzalloc(struct_size(instance, mapping, ndr_desc->num_mappings), # GFP_KERNEL); # # This code was detected with the help of Coccinelle. # # Signed-off-by: Gustavo A. R. Silva # < /opt/cross/kisskb/arcompact-buildroot-2015.08.1/bin/arc-buildroot-linux-uclibc-gcc --version # < /opt/cross/kisskb/arcompact-buildroot-2015.08.1/bin/arc-buildroot-linux-uclibc-ld --version # < git log --format=%s --max-count=1 1c06a6bb5ac88320f5c36c4ac200b4b53f8b3c46 # < make -s -j 24 ARCH=arc O=/kisskb/build/gustavoars_axs101_defconfig_arcompact CROSS_COMPILE=/opt/cross/kisskb/arcompact-buildroot-2015.08.1/bin/arc-buildroot-linux-uclibc- axs101_defconfig # Added to kconfig CONFIG_INITRAMFS_SOURCE="" # yes \n | make -s -j 24 ARCH=arc O=/kisskb/build/gustavoars_axs101_defconfig_arcompact CROSS_COMPILE=/opt/cross/kisskb/arcompact-buildroot-2015.08.1/bin/arc-buildroot-linux-uclibc- oldconfig yes: standard output: Broken pipe # make -s -j 24 ARCH=arc O=/kisskb/build/gustavoars_axs101_defconfig_arcompact CROSS_COMPILE=/opt/cross/kisskb/arcompact-buildroot-2015.08.1/bin/arc-buildroot-linux-uclibc- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/net/ipv4/tcp_input.c: In function 'tcp_data_queue': /kisskb/src/net/ipv4/tcp_input.c:4341:49: warning: array subscript is above array bounds [-Warray-bounds] tp->selective_acks[i-1] = tp->selective_acks[i]; ^ /kisskb/src/net/xfrm/xfrm_policy.c: In function '__xfrm_policy_check': /kisskb/src/net/xfrm/xfrm_policy.c:3494:15: warning: array subscript is above array bounds [-Warray-bounds] if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { ^ Completed OK # rm -rf /kisskb/build/gustavoars_axs101_defconfig_arcompact # Build took: 0:01:08.127631