linux/Documentation/translations/zh_CN
Linus Torvalds 50560ce6a0 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/
 -----BEGIN PGP SIGNATURE-----
 
 iQJJBAABCgAzFiEEbmPs18K1szRHjPqEPYsBB53g2wYFAmI9JqMVHG1hc2FoaXJv
 eUBrZXJuZWwub3JnAAoJED2LAQed4NsG3dkP/Ar7r8m4hc60kJE8JfXaxDpGOGka
 2yVm0EPfwV1lFGq440p4mqKc1iRTVLNMPsyaG/ZhriIp8PlSUjXLW290Sty6Z8Pd
 zcxwDg09ZXkMoDX+lc2Wr9F0wpswWJjqU/TzGLP5/qkVMe46KheXIQSPJAp8tVUt
 u2of/MTgTVMa4r7Iex/+NFWCPr4lTkWkSfzVN/Jd1r91UOyzy4E1VFRNlXIk/Fc9
 BFa67k0SHx/3FFElfwzFaejYUZjHjNzK3E1Zq8Q1vkWUxrzeEnzqTEiP7QaAi4Sa
 7MbqyqQvNoPw3uvKu5kwjDE+LHMEPTsmuaKVFpAc+qCpMtZCI6g9Q48pzQsWBMO2
 hZlEmYR9Zk0TpJp1flpOnNzoy7xPzNs0rcB3PaSOZyv+dTqtJ981IP+r4RNVlwje
 y3N9vq4RSAj/kAE/wi6FiPc/8vfbY71PbEXmg8556+kn3ne6aXl13ZrXIxz8w5jK
 bIgIFmrEPH7941KvFjoXhaFp/qv9hvLpWhQZu7CFRaj5V28qqUQ5TQFJREPePRtJ
 RFPEuOJqEGMxW/xbhcfrA1AO/y9Grxbe65e8Mph4YCfWpWaUww6vN01LC+k6UgDm
 Yq2u+wSFjWpRxOEPLWNsjnrZZgfdjk22O+TNOMs92X8/gXinmu3kZG5IUavahg7+
 J0SsIjIXhmLGKdDm
 =KMDk
 -----END PGP SIGNATURE-----

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
2022-03-25 11:48:01 -07:00
..
accounting docs/zh_CN: Update zh_CN/accounting/delay-accounting.rst 2022-01-27 11:37:44 -07:00
admin-guide docs/zh_CN: add damon reclaim translation 2022-03-11 13:42:40 -07:00
arm docs: Update DTB format references 2021-01-28 15:43:15 -07:00
arm64 Documentation: Chinese translation of Documentation/arm64/elf_hwcaps.rst 2020-11-30 10:36:45 -07:00
core-api docs/zh_CN: Add rbtree Chinese translation 2022-02-01 16:24:40 -07:00
cpu-freq cpufreq: Reintroduce ready() callback 2022-02-09 13:18:49 +05:30
dev-tools docs/zh_CN: update sparse translation 2021-11-29 15:01:27 -07:00
devicetree docs/zh_CN: add devicetree of_unittest translation 2022-03-09 16:31:12 -07:00
doc-guide docs: Update Sphinx requirements 2021-11-15 02:47:22 -07:00
filesystems docs/zh_CN: Modify the translator tag and fix the wrong word 2021-08-24 13:34:07 -06:00
iio docs/zh_CN: Modify the translator tag and fix the wrong word 2021-08-24 13:34:07 -06:00
infiniband docs/zh_CN: add infiniband user_verbs translation 2021-08-12 08:52:03 -06:00
kernel-hacking Documentation: in_irq() cleanup 2021-08-24 13:28:23 -06:00
maintainer docs: use the lore redirector everywhere 2021-10-12 13:58:19 -06:00
mips docs/zh_CN: Modify the translator tag and fix the wrong word 2021-08-24 13:34:07 -06:00
openrisc docs/zh_CN: Modify the translator tag and fix the wrong word 2021-08-24 13:34:07 -06:00
parisc docs/zh_CN: Modify the translator tag and fix the wrong word 2021-08-24 13:34:07 -06:00
PCI docs/zh_CN: add sysfs-pci trnaslation 2021-12-16 15:55:43 -07:00
peci docs/zh_CN: add peci subsystem translation 2022-03-09 16:21:18 -07:00
power docs/zh_CN: Add energy-model Chinese translation 2022-02-15 16:23:16 -07:00
process Kbuild: move to -std=gnu11 2022-03-13 17:31:37 +09:00
riscv docs/zh_CN: add riscv vm-layout translation 2022-03-09 16:21:18 -07:00
scheduler docs/zh_CN: Add sched-nice-design Chinese translation 2022-03-16 15:49:57 -06:00
sound PATCH Documentation translations:translate sound/hd-audio/controls to chinese 2021-03-08 16:54:05 -07:00
video4linux media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
virt docs/zh_CN: add virt acrn cpuid translation 2021-08-12 08:49:38 -06:00
vm Add Chinese translation for vm/ksm.rst 2022-03-11 13:35:05 -07:00
disclaimer-zh_CN.rst Docs/zh_CN: update Alex Shi new email address 2021-03-31 13:52:25 -06:00
gpio.txt docs: gpio: add sysfs interface to the admin-guide 2019-07-15 11:03:03 -03:00
index.rst docs/zh_CN: add devicetree index translation 2022-03-09 16:31:12 -07:00
io_ordering.txt docs: fix pointers to io-mapping.rst and io_ordering.rst files 2020-03-11 14:15:20 -06:00
IRQ.txt docs: add IRQ documentation at the core-api book 2020-05-15 12:00:56 -06:00
oops-tracing.txt docs: admin-guide: add kdump documentation into it 2019-07-15 11:03:01 -03:00