# git rev-parse -q --verify d88516748642e874cf9383367d4cda5f48262c97^{commit} d88516748642e874cf9383367d4cda5f48262c97 already have revision, skipping fetch # git checkout -q -f -B kisskb d88516748642e874cf9383367d4cda5f48262c97 # git clean -qxdf # < git log -1 # commit d88516748642e874cf9383367d4cda5f48262c97 # Author: Arnd Bergmann # Date: Thu Apr 30 23:30:54 2020 +0200 # # media: s5k5baf: avoid gcc-10 zero-length-bounds warning # # gcc-10 warns about accessing a zero-length struct member: # # drivers/media/i2c/s5k5baf.c: In function 's5k5baf_load_setfile': # drivers/media/i2c/s5k5baf.c:390:13: warning: array subscript 65535 is outside the bounds of an interior zero-length array 'struct [0]' [-Wzero-length-bounds] # 390 | if (f->seq[i].offset + d <= end) # | ~~~~~~^~~ # # This should really be a flexible-array member, but the structure # already has one. I experimentally confirmed that swapping the two # avoids the warning, as the 'data[]' array is not accessed like this. # # Fixes: 3ba225b506a2 ("treewide: Replace zero-length array with flexible-array member") # Fixes: 7d459937dc09 ("[media] Add driver for Samsung S5K5BAF camera sensor") # Signed-off-by: Arnd Bergmann # Signed-off-by: Gustavo A. R. Silva # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/i386-linux/bin/i386-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/i386-linux/bin/i386-linux-ld --version # < git log --format=%s --max-count=1 d88516748642e874cf9383367d4cda5f48262c97 # < make -s -j 10 ARCH=i386 O=/kisskb/build/gustavoars_i386-allnoconfig_i386-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/i386-linux/bin/i386-linux- allnoconfig # < make -s -j 10 ARCH=i386 O=/kisskb/build/gustavoars_i386-allnoconfig_i386-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/i386-linux/bin/i386-linux- help # make -s -j 10 ARCH=i386 O=/kisskb/build/gustavoars_i386-allnoconfig_i386-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/i386-linux/bin/i386-linux- olddefconfig # make -s -j 10 ARCH=i386 O=/kisskb/build/gustavoars_i386-allnoconfig_i386-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/i386-linux/bin/i386-linux- Completed OK # rm -rf /kisskb/build/gustavoars_i386-allnoconfig_i386-gcc4.9 # Build took: 0:00:34.501111