# 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/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 1c06a6bb5ac88320f5c36c4ac200b4b53f8b3c46 # < 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.585787