diff mbox

[edk2,1/5] MdeModulePkg/PciHostBridgeDxe: fix Ia32 GCC44 build error

Message ID 1468570456-15031-2-git-send-email-lersek@redhat.com
State Accepted
Commit 5a0a803f01a991b9bd922ed974559b1d0e8d1067
Headers show

Commit Message

Laszlo Ersek July 15, 2016, 8:14 a.m. UTC
> cc1: warnings being treated as errors

> MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c:

>   In function 'GetProposedResources':

> MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c:1388:

>   error: integer constant is too large for 'long' type


Append a ULL suffix to the replacement text of PCI_RESOURCE_LESS that is
aligned with the style of the EFI_RESOURCE_SATISFIED and
EFI_RESOURCE_NOT_SATISFIED macros.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---
 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.8.3.1


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h
index f35222b634b7..8612c0c3251b 100644
--- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h
+++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h
@@ -17,7 +17,7 @@  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 #include <PiDxe.h>
 
-#define PCI_RESOURCE_LESS         0xFFFFFFFFFFFFFFFE
+#define PCI_RESOURCE_LESS         0xFFFFFFFFFFFFFFFEULL
 
 typedef enum {
   TypeIo    = 0,