[Spice-devel] [PATCH qxl-wddm-dod 6/8] Use inline attribute for VA and PA
Frediano Ziglio
fziglio at redhat.com
Mon Apr 10 15:31:01 UTC 2017
Don't use the old style _inline specifier.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
qxldod/QxlDod.cpp | 4 ++--
qxldod/QxlDod.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 28bc35c..acadd9f 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -3580,7 +3580,7 @@ void QxlDevice::DestroyPrimarySurface(void)
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
}
-_inline QXLPHYSICAL QxlDevice::PA(PVOID virt, UINT8)
+inline QXLPHYSICAL QxlDevice::PA(PVOID virt, UINT8)
{
PAGED_CODE();
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--> %s\n", __FUNCTION__));
@@ -3591,7 +3591,7 @@ _inline QXLPHYSICAL QxlDevice::PA(PVOID virt, UINT8)
return pSlot->high_bits | ((UINT8*)virt - pSlot->start_virt_addr);
}
-_inline UINT8 *QxlDevice::VA(QXLPHYSICAL paddr, UINT8)
+inline UINT8 *QxlDevice::VA(QXLPHYSICAL paddr, UINT8)
{
PAGED_CODE();
DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
diff --git a/qxldod/QxlDod.h b/qxldod/QxlDod.h
index d642323..6eef85d 100755
--- a/qxldod/QxlDod.h
+++ b/qxldod/QxlDod.h
@@ -577,8 +577,8 @@ private:
void SetupMemSlot(UINT8 Idx, UINT64 pastart, UINT64 paend, UINT8 *vastart, UINT8 *valast);
BOOL CreateEvents(void);
BOOL CreateRings(void);
- UINT8 *VA(QXLPHYSICAL paddr, UINT8 slot_id);
- QXLPHYSICAL PA(PVOID virt, UINT8 slot_id);
+ inline UINT8 *VA(QXLPHYSICAL paddr, UINT8 slot_id);
+ inline QXLPHYSICAL PA(PVOID virt, UINT8 slot_id);
void InitDeviceMemoryResources(void);
void InitMonitorConfig();
void InitMspace(UINT32 mspace_type, UINT8 *start, size_t capacity);
--
2.9.3
More information about the Spice-devel
mailing list