mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
drivers/fsl_pci_init: Fix compile warning
fsl_pci_init.c: In function 'fsl_pci_setup_inbound_windows': fsl_pci_init.c:122: warning: comparison is always true due to limited range of data type The check only makes sense if we are CONFIG_PHYS_64BIT Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
13d36ec849
commit
4c253fdb2a
1 changed files with 2 additions and 0 deletions
|
@ -119,9 +119,11 @@ int fsl_pci_setup_inbound_windows(struct pci_region *r)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PHYS_64BIT
|
||||
if (sz && (((u64)gd->ram_size) < (1ull << 32)))
|
||||
printf("Was not able to map all of memory via "
|
||||
"inbound windows -- %lld remaining\n", sz);
|
||||
#endif
|
||||
|
||||
return r - rgn_base;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue