# git rev-parse -q --verify 70e3c7b9b4b4e2062a18bfcc229b7adb4c4b3986^{commit} 70e3c7b9b4b4e2062a18bfcc229b7adb4c4b3986 already have revision, skipping fetch # git checkout -q -f -B kisskb 70e3c7b9b4b4e2062a18bfcc229b7adb4c4b3986 # git clean -qxdf # < git log -1 # commit 70e3c7b9b4b4e2062a18bfcc229b7adb4c4b3986 # Author: Gustavo A. R. Silva # Date: Wed Aug 28 12:31:15 2019 -0500 # # dm ioctl: Use struct_size() helper # # 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 dm_target_deps { # ... # __u64 dev[0]; /* out */ # }; # # Make use of the struct_size() helper instead of an open-coded version # in order to avoid any potential type mistakes. # # So, replace the following form: # # sizeof(*deps) + (sizeof(*deps->dev) * count) # # with: # # struct_size(deps, dev, count) # # This code was detected with the help of Coccinelle. # # Signed-off-by: Gustavo A. R. Silva # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux-ld --version # < git log --format=%s --max-count=1 70e3c7b9b4b4e2062a18bfcc229b7adb4c4b3986 # < make -s -j 120 ARCH=nds32 O=/kisskb/build/gustavoars_nds32-allmodconfig_nds32le CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- allmodconfig # make -s -j 120 ARCH=nds32 O=/kisskb/build/gustavoars_nds32-allmodconfig_nds32le CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/drivers/input/joystick/analog.c:160:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. ^~~~~~~ /kisskb/src/drivers/net/hamradio/baycom_epp.c: In function 'transmit': /kisskb/src/drivers/net/hamradio/baycom_epp.c:491:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (i) { ^ /kisskb/src/drivers/net/hamradio/baycom_epp.c:504:3: note: here default: /* fall through */ ^~~~~~~ WARNING: EXPORT symbol "clear_page" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "copy_page" [vmlinux] version generation failed, symbol will not be versioned. WARNING: "copy_page" [drivers/md/dm-integrity.ko] has no CRC! WARNING: "clear_page" [drivers/md/dm-integrity.ko] has no CRC! WARNING: "clear_page" [drivers/md/raid456.ko] has no CRC! WARNING: "clear_page" [drivers/scsi/sd_mod.ko] has no CRC! WARNING: "copy_page" [drivers/block/drbd/drbd.ko] has no CRC! WARNING: "copy_page" [drivers/gpu/drm/ttm/ttm.ko] has no CRC! WARNING: "clear_page" [drivers/gpu/drm/ttm/ttm.ko] has no CRC! WARNING: "clear_page" [fs/gfs2/gfs2.ko] has no CRC! WARNING: "copy_page" [fs/btrfs/btrfs.ko] has no CRC! WARNING: "clear_page" [fs/btrfs/btrfs.ko] has no CRC! WARNING: "clear_page" [fs/ocfs2/dlm/ocfs2_dlm.ko] has no CRC! WARNING: "copy_page" [fs/cachefiles/cachefiles.ko] has no CRC! WARNING: "copy_page" [fs/nilfs2/nilfs2.ko] has no CRC! WARNING: "copy_page" [fs/fuse/fuse.ko] has no CRC! WARNING: "clear_page" [fs/fuse/fuse.ko] has no CRC! WARNING: "clear_page" [fs/ntfs/ntfs.ko] has no CRC! Completed OK # rm -rf /kisskb/build/gustavoars_nds32-allmodconfig_nds32le # Build took: 0:06:18.671329