Re: [PATCH -next] PCI: tegra: Fix build warnings when CONFIG_PCIEASPM is not set

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

 



On 20/05/2021 14:42, Wei Yongjun wrote:
> Fix build warning when CONFIG_PCIEASPM is not set:
> 
> drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning:
>  'event_cntr_data_offset' defined but not used [-Wunused-const-variable=]
>   259 | static const u32 event_cntr_data_offset[] = {
>       |                  ^~~~~~~~~~~~~~~~~~~~~~
> drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning:
>  'event_cntr_ctrl_offset' defined but not used [-Wunused-const-variable=]
>   250 | static const u32 event_cntr_ctrl_offset[] = {
>       |                  ^~~~~~~~~~~~~~~~~~~~~~
> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning:
>  'pcie_gen_freq' defined but not used [-Wunused-const-variable=]
>   243 | static const unsigned int pcie_gen_freq[] = {
>       |                           ^~~~~~~~~~~~~
> 
> Fix it by only define then when CONFIG_PCIEASPM is set.
> 
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>


Thanks but this has already been reported and there is a fix available [0].

Jon

[0]
https://patchwork.ozlabs.org/project/linux-tegra/patch/20210520090123.11814-1-jonathanh@xxxxxxxxxx/

-- 
nvpublic



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux