summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
diff options
context:
space:
mode:
authorMarvin Häuser <mhaeuser@posteo.de>2023-03-22 00:02:38 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-01 23:11:44 +0000
commit583f1aba8b97695ebba8a9f03de0883e6d2dcd1f (patch)
treee7838c5e5cbdc7385bba43193bd3b8ae42744bd9 /MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
parent67a6f414aa0e2a9cac965fcc6d83b6cbd6e893c0 (diff)
downloadedk2-583f1aba8b97695ebba8a9f03de0883e6d2dcd1f.tar.gz
edk2-583f1aba8b97695ebba8a9f03de0883e6d2dcd1f.tar.bz2
edk2-583f1aba8b97695ebba8a9f03de0883e6d2dcd1f.zip
MdeModulePkg: Rename IS_ALIGNED macros to avoid name collisions
This patch is a preparation for the patches that follow. The subsequent patches will introduce and integrate new alignment-related macros, which collide with existing definitions in MdeModulePkg. Temporarily rename them to avoid build failure, till they can be substituted with the new, shared definitions. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Marvin Häuser <mhaeuser@posteo.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c')
-rw-r--r--MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c b/MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
index 7b97887c5d..d93fa78c81 100644
--- a/MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
+++ b/MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
@@ -2126,7 +2126,7 @@ TrustTransferAtaDevice (
// ATA PassThru PPI.
//
if ((AtaPassThru->Mode->IoAlign > 1) &&
- !IS_ALIGNED (Buffer, AtaPassThru->Mode->IoAlign))
+ !ADDRESS_IS_ALIGNED_ (Buffer, AtaPassThru->Mode->IoAlign))
{
NewBuffer = AllocateAlignedPages (
EFI_SIZE_TO_PAGES (TransferLength),