Re: [PATCH v2 08/11] PCI/IDE: Add IDE establishment helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux