# 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/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux-gcc --version # < /opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux-ld --version # < git log --format=%s --max-count=1 70e3c7b9b4b4e2062a18bfcc229b7adb4c4b3986 # < make -s -j 120 ARCH=microblaze O=/kisskb/build/gustavoars_mmu_defconfig_microblaze CROSS_COMPILE=/opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux- mmu_defconfig # make -s -j 120 ARCH=microblaze O=/kisskb/build/gustavoars_mmu_defconfig_microblaze CROSS_COMPILE=/opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux- Kernel: arch/microblaze/boot/linux.bin is ready (#1) Completed OK # rm -rf /kisskb/build/gustavoars_mmu_defconfig_microblaze # Build took: 0:00:29.945508