linux-stable/drivers
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
..
accessibility
acpi sound updates for 5.18 2022-03-23 15:11:12 -07:00
amba ARM: 9174/1: amba: Move EXPORT_SYMBOL() closer to definition 2022-02-28 13:59:18 +00:00
android
ata SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
atm Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-17 13:56:58 -07:00
auxdisplay auxdisplay: lcd2s: Use proper API to free the instance of charlcd object 2022-03-03 00:30:31 +01:00
base Merge branch 'akpm' (patches from Andrew) 2022-03-22 16:11:53 -07:00
bcma bcma: gpio: remove redundant re-assignment of chip->owner 2022-03-10 18:17:53 +02:00
block SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
bluetooth Bluetooth: ath3k: remove superfluous header files 2022-03-18 17:12:09 +01:00
bus - added support for QCN550x (ath79) 2022-03-25 09:35:19 -07:00
cdrom SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
char drm for 5.18-rc1 2022-03-24 16:19:43 -07:00
clk ARM driver updates for 5.18 2022-03-23 18:23:13 -07:00
clocksource asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
comedi
connector
counter counter: Stop using dev_get_drvdata() to get the counter device 2022-03-15 19:24:13 +01:00
cpufreq Merge branch 'pm-tools' 2022-03-18 18:46:15 +01:00
cpuidle ARM driver updates for 5.18 2022-03-23 18:23:13 -07:00
crypto VFIO updates for v5.18-rc1 2022-03-24 12:35:59 -07:00
cxl cxl/core/port: Fix NULL but dereferenced coccicheck error 2022-03-22 10:51:17 -07:00
dax dax for 5.18 2022-03-24 18:12:09 -07:00
dca
devfreq
dio
dma - added support for QCN550x (ath79) 2022-03-25 09:35:19 -07:00
dma-buf drm-misc-next for v5.18: 2022-02-25 05:50:18 +10:00
edac Merge branch 'edac-amd64' into edac-updates-for-v5.18 2022-03-21 10:34:57 +01:00
eisa
extcon
firewire
firmware drm for 5.18-rc1 2022-03-24 16:19:43 -07:00
fpga
fsi
gnss
gpio spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
gpu Kbuild -std=gnu11 updates for v5.18 2022-03-25 11:48:01 -07:00
greybus
hid asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
hsi
hv hyperv-next for 5.18 2022-03-24 12:30:37 -07:00
hwmon spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
hwspinlock
hwtracing flexible-array transformations for 5.18-rc1 2022-03-24 11:39:32 -07:00
i2c
i3c
idle cpuidle: intel_idle: Drop redundant backslash at line end 2022-03-17 14:32:59 +01:00
iio spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
infiniband SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
input media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
interconnect
iommu IOMMU Updates for Linux v5.18 2022-03-24 19:48:57 -07:00
ipack
irqchip asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
isdn mISDN: fix typo "frame to short" -> "frame too short" 2022-03-21 13:26:38 +00:00
leds
macintosh
mailbox
mcb
md SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
media drm for 5.18-rc1 2022-03-24 16:19:43 -07:00
memory ARM driver updates for 5.18 2022-03-23 18:23:13 -07:00
memstick
message scsi: message: fusion: Use GFP_KERNEL instead of GFP_ATOMIC in non-atomic context 2022-02-27 21:21:21 -05:00
mfd spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
misc powerpc updates for 5.18 2022-03-25 09:39:36 -07:00
mmc MMC core: 2022-03-23 14:39:51 -07:00
most
mtd spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
mux
net Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
nfc spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
ntb
nubus
nvdimm cxl for 5.18 2022-03-24 18:07:03 -07:00
nvme Folio changes for 5.18 2022-03-22 17:03:12 -07:00
nvmem
of cma: factor out minimum alignment requirement 2022-03-22 15:57:05 -07:00
opp
parisc
parport
pci powerpc updates for 5.18 2022-03-25 09:39:36 -07:00
pcmcia ARM: pxa: remove Intel Imote2 and Stargate 2 boards 2022-02-28 15:08:14 +01:00
perf RISC-V Patches for the 5.18 Merge Window, Part 1 2022-03-25 10:11:38 -07:00
phy phy: Remove duplicated include in phy-fsl-lynx-28g.c 2022-03-16 19:34:34 -07:00
pinctrl ARM: DT updates for 5.18 2022-03-23 18:37:22 -07:00
platform drm for 5.18-rc1 2022-03-24 16:19:43 -07:00
pnp PNP update for 5.18-rc1 2022-03-21 14:46:01 -07:00
power
powercap powercap: DTPM: Fix spelling mistake "initialze" -> "initialize" 2022-03-01 18:59:35 +01:00
pps
ps3
ptp ptp: ocp: use snprintf() in ptp_ocp_verify() 2022-03-18 21:42:09 -07:00
pwm
rapidio
ras
regulator regulator: Updates for v5.18 2022-03-21 18:27:05 -07:00
remoteproc Qualcomm driver updates for v5.18 2022-03-01 19:24:21 +01:00
reset
rpmsg
rtc
s390 s390 updates for the 5.18 merge window 2022-03-25 10:01:34 -07:00
sbus
scsi SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
sh
siox
slimbus
soc Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
soundwire ASoC: Intel: sof_sdw: fix quirks for 2022 HP Spectre x360 13" 2022-03-07 13:13:15 +00:00
spi spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
spmi
ssb
staging Kbuild -std=gnu11 updates for v5.18 2022-03-25 11:48:01 -07:00
target SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
tc
tee ARM driver updates for 5.18 2022-03-23 18:23:13 -07:00
thermal Merge branch 'thermal-hfi' 2022-03-18 19:00:26 +01:00
thunderbolt
tty Merge branch 'akpm' (patches from Andrew) 2022-03-22 16:11:53 -07:00
uio
usb SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
vdpa IOMMU Updates for Linux v5.18 2022-03-24 19:48:57 -07:00
vfio hisi_acc_vfio_pci: Use its own PCI reset_done error handler 2022-03-15 11:41:32 -06:00
vhost Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-17 13:56:58 -07:00
video drm for 5.18-rc1 2022-03-24 16:19:43 -07:00
virt virt: vmgenid: notify RNG of VM fork and supply generation ID 2022-03-12 18:00:56 -07:00
virtio mm: enforce pageblock_order < MAX_ORDER 2022-03-22 15:57:06 -07:00
visorbus
vlynq
vme
w1
watchdog MIPS: Remove TX39XX support 2022-03-01 10:07:22 +01:00
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-07 09:48:55 +01:00
zorro
Kconfig
Makefile