]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'flexible-array-transformations-UAPI-6.0-rc1' of git://git.kernel.org/pub...
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Aug 2022 02:50:47 +0000 (19:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Aug 2022 02:50:47 +0000 (19:50 -0700)
commite2d974178a9c67ac0fce54b96ff533b6c7be2739
tree0a490ab0b9a36d0c750d5c9437618db684c626be
parent6b3b2e55290163739f39a1caba20c10c620a166f
parent0409f747ec5e9cd9112cd70cec6de32ba439b283
Merge tag 'flexible-array-transformations-UAPI-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux

Pull uapi flexible array update from Gustavo Silva:
 "A treewide patch that replaces zero-length arrays with flexible-array
  members in UAPI. This has been baking in linux-next for 5 weeks now.

  '-fstrict-flex-arrays=3' is coming and we need to land these changes
  to prevent issues like these in the short future:

    fs/minix/dir.c:337:3: warning: 'strcpy' will always overflow; destination buffer has size 0, but the source string has length 2 (including NUL byte) [-Wfortify-source]
strcpy(de3->name, ".");
^

  Since these are all [0] to [] changes, the risk to UAPI is nearly
  zero. If this breaks anything, we can use a union with a new member
  name"

Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836
* tag 'flexible-array-transformations-UAPI-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
  treewide: uapi: Replace zero-length arrays with flexible-array members
arch/x86/include/uapi/asm/bootparam.h
include/uapi/linux/bpf.h
include/uapi/linux/dm-ioctl.h
include/uapi/linux/fanotify.h
include/uapi/linux/kvm.h
include/uapi/linux/perf_event.h
tools/arch/x86/include/uapi/asm/kvm.h
tools/include/uapi/drm/i915_drm.h
tools/include/uapi/linux/kvm.h