Suzuki K Poulose wrote: [..] > My (relatively old) compiler complains about this: > > drivers/pci/ide.c: In function ‘to_settings’: > drivers/pci/ide.c:322:3: error: a label can only be part of a statement > and a declaration is not a statement > 322 | struct pci_dev *rp = pcie_find_root_port(ide->pdev); > | ^~~~~~ > > $ gcc -v > ... > Target: aarch64-none-linux-gnu > ... > gcc version 10.3.1 20210621 (GNU Toolchain for the A-profile > Architecture 10.3-2021.07 (arm-10.29)) > > Works fine on a later version of the GCC (version 12.2) > > The following hunk fixes the build for me. Looks good to me, I have folded this in.