Merge tag 'kbuild-gnu11-v5.18' of...
Merge tag 'kbuild-gnu11-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild Pull Kbuild update for C11 language base from Masahiro Yamada: "Kbuild -std=gnu11 updates for v5.18 Linus pointed out the benefits of C99 some years ago, especially variable declarations in loops [1]. At that time, we were not ready for the migration due to old compilers. Recently, Jakob Koschel reported a bug in list_for_each_entry(), which leaks the invalid pointer out of the loop [2]. In the discussion, we agreed that the time had come. Now that GCC 5.1 is the minimum compiler version, there is nothing to prevent us from going to -std=gnu99, or even straight to -std=gnu11. Discussions for a better list iterator implementation are ongoing, but this patch set must land first" [1] https://lore.kernel.org/all/CAHk-=wgr12JkKmRd21qh-se-_Gs69kbPgR9x4C+Es-yJV2GLkA@mail.gmail.com/ [2] https://lore.kernel.org/lkml/86C4CE7D-6D93-456B-AA82-F8ADEACA40B7@gmail.com/ * tag 'kbuild-gnu11-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: Kbuild: use -std=gnu11 for KBUILD_USERCFLAGS Kbuild: move to -std=gnu11 Kbuild: use -Wdeclaration-after-statement Kbuild: add -Wno-shift-negative-value where -Wextra is used
No related branches found
No related tags found
Showing
- Documentation/process/programming-language.rst 3 additions, 3 deletionsDocumentation/process/programming-language.rst
- Documentation/translations/it_IT/process/programming-language.rst 2 additions, 2 deletions...ation/translations/it_IT/process/programming-language.rst
- Documentation/translations/zh_CN/process/programming-language.rst 1 addition, 2 deletions...ation/translations/zh_CN/process/programming-language.rst
- Documentation/translations/zh_TW/process/programming-language.rst 1 addition, 2 deletions...ation/translations/zh_TW/process/programming-language.rst
- Makefile 4 additions, 3 deletionsMakefile
- arch/arm64/kernel/vdso32/Makefile 2 additions, 1 deletionarch/arm64/kernel/vdso32/Makefile
- drivers/gpu/drm/i915/Makefile 1 addition, 0 deletionsdrivers/gpu/drm/i915/Makefile
- drivers/staging/greybus/tools/Makefile 2 additions, 1 deletiondrivers/staging/greybus/tools/Makefile
- fs/btrfs/Makefile 1 addition, 0 deletionsfs/btrfs/Makefile
- scripts/Makefile.extrawarn 1 addition, 0 deletionsscripts/Makefile.extrawarn
- scripts/mod/modpost.c 3 additions, 1 deletionscripts/mod/modpost.c
Loading
Please register or sign in to comment