Buildresult: gustavoars/axs101_defconfig/arcompact built on Aug 28 2019, 12:44
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
OK
Date/Time:
Aug 28 2019, 12:44
Duration:
0:01:05.271054
Builder:
blade46
Revision:
perf/x86/intel/uncore: Use struct_size() in kzalloc_node() (
07a9d6cdcca83271b0ba04ec0d333cd9cd352a51)
Target:
gustavoars/axs101_defconfig/arcompact
Branch:
gustavoars
Compiler:
arcompact
(arc-buildroot-linux-uclibc-gcc (Buildroot 2015.08.1) 4.8.4 / GNU ld (GNU Binutils) 2.23.2)
Config:
axs101_defconfig
(
download
)
Log:
Download original
Possible warnings (3)
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] net/ipv4/tcp_input.c:4341:49: warning: array subscript is above array bounds [-Warray-bounds] net/xfrm/xfrm_policy.c:3494:15: warning: array subscript is above array bounds [-Warray-bounds]
Full Log
# git rev-parse -q --verify 07a9d6cdcca83271b0ba04ec0d333cd9cd352a51^{commit} 07a9d6cdcca83271b0ba04ec0d333cd9cd352a51 already have revision, skipping fetch # git checkout -q -f -B kisskb 07a9d6cdcca83271b0ba04ec0d333cd9cd352a51 # git clean -qxdf # < git log -1 # commit 07a9d6cdcca83271b0ba04ec0d333cd9cd352a51 # Author: Gustavo A. R. Silva <gustavo@embeddedor.com> # Date: Wed Aug 7 11:42:29 2019 -0500 # # perf/x86/intel/uncore: Use struct_size() in kzalloc_node() # # 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 intel_uncore_box { # ... # struct intel_uncore_extra_reg shared_regs[0]; # }; # # size = sizeof(struct intel_uncore_box) + count * sizeof(struct intel_uncore_extra_reg); # instance = kzalloc_node(size, GFP_KERNEL, node); # # Instead of leaving these open-coded and prone to type mistakes, we can # now use the new struct_size() helper: # # instance = kzalloc_node(struct_size(instance, shared_regs, count), GFP_KERNEL, # node); # # Notice that, in this case, variable size is not necessary, hence it # is removed. # # This code was detected with the help of Coccinelle. # # Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> # < /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 07a9d6cdcca83271b0ba04ec0d333cd9cd352a51 # < make -s -j 32 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 32 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 32 ARCH=arc O=/kisskb/build/gustavoars_axs101_defconfig_arcompact CROSS_COMPILE=/opt/cross/kisskb/arcompact-buildroot-2015.08.1/bin/arc-buildroot-linux-uclibc- <stdin>: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:05.271054
© Michael Ellerman 2006-2018.