public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Abdul Lateef Attar via groups.io" <AbdulLateef.Attar=amd.com@groups.io>
To: <devel@edk2.groups.io>
Cc: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>,
	Paul Grimes <paul.grimes@amd.com>,
	Abner Chang <abner.chang@amd.com>
Subject: [edk2-devel] [edk2-platform 2/2] AmdPlatformPkg: Fix windows VC compilation warning
Date: Tue, 28 May 2024 08:58:02 +0530	[thread overview]
Message-ID: <dc16929bc48c5aabc7e6545e589934e9a69f1d53.1716866608.git.AbdulLateef.Attar@amd.com> (raw)
In-Reply-To: <cover.1716866608.git.AbdulLateef.Attar@amd.com>

Fix windows VC compilattion warning for AcpiCommon driver.

Cc: Paul Grimes <paul.grimes@amd.com>
Cc: Abner Chang <abner.chang@amd.com>
Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
---
 .../AMD/AmdPlatformPkg/Universal/Acpi/AcpiCommon/PciSsdt.c    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Platform/AMD/AmdPlatformPkg/Universal/Acpi/AcpiCommon/PciSsdt.c b/Platform/AMD/AmdPlatformPkg/Universal/Acpi/AcpiCommon/PciSsdt.c
index a9d3c83a5e..162e455c63 100644
--- a/Platform/AMD/AmdPlatformPkg/Universal/Acpi/AcpiCommon/PciSsdt.c
+++ b/Platform/AMD/AmdPlatformPkg/Universal/Acpi/AcpiCommon/PciSsdt.c
@@ -261,7 +261,7 @@ InternalInsertRootBridgeResources (
           if ((LocalBuffer->ResType == ACPI_ADDRESS_SPACE_TYPE_BUS) &&
               (LocalBuffer->AddrRangeMin == RootBridge->Object->BaseBusNumber))
           {
-            BaseBusNumber = LocalBuffer->AddrRangeMin;
+            BaseBusNumber = (UINTN)LocalBuffer->AddrRangeMin;
             break;
           }
         }
@@ -290,7 +290,7 @@ InternalInsertRootBridgeResources (
       break;
     } else if (LocalBuffer->Header.Header.Byte == ACPI_QWORD_ADDRESS_SPACE_DESCRIPTOR) {
       if (LocalBuffer->ResType == ACPI_ADDRESS_SPACE_TYPE_BUS) {
-        BaseBusNumber = LocalBuffer->AddrRangeMin;
+        BaseBusNumber = (UINTN)LocalBuffer->AddrRangeMin;
         Status        = AmlCodeGenRdWordBusNumber (
                           FALSE,
                           TRUE,
-- 
2.34.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119289): https://edk2.groups.io/g/devel/message/119289
Mute This Topic: https://groups.io/mt/106342983/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2024-05-28  3:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28  3:28 [edk2-devel] [edk2-platform 0/2] AmdPlatformPkg: Fix the build failure Abdul Lateef Attar via groups.io
2024-05-28  3:28 ` [edk2-devel] [edk2-platform 1/2] AmdPlatformPkg: Corrects file path of LogoDxe driver Abdul Lateef Attar via groups.io
2024-05-28  3:28 ` Abdul Lateef Attar via groups.io [this message]
2024-05-28  3:59 ` [edk2-devel] [edk2-platform 0/2] AmdPlatformPkg: Fix the build failure Chang, Abner via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dc16929bc48c5aabc7e6545e589934e9a69f1d53.1716866608.git.AbdulLateef.Attar@amd.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox