# git rev-parse -q --verify 8f7682192c880fd243b336562007e5202e75d87b^{commit} 8f7682192c880fd243b336562007e5202e75d87b already have revision, skipping fetch # git checkout -q -f -B kisskb 8f7682192c880fd243b336562007e5202e75d87b # git clean -qxdf # < git log -1 # commit 8f7682192c880fd243b336562007e5202e75d87b # 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 8f7682192c880fd243b336562007e5202e75d87b # < make -s -j 48 ARCH=microblaze O=/kisskb/build/gustavoars_nommu_defconfig_microblaze CROSS_COMPILE=/opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux- nommu_defconfig # make -s -j 48 ARCH=microblaze O=/kisskb/build/gustavoars_nommu_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_nommu_defconfig_microblaze # Build took: 0:00:45.687161