https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f5658fd3b41f168578a49…
commit f5658fd3b41f168578a497846b556c914884f635
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Thu Mar 26 11:53:27 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Thu Mar 26 16:39:16 2020 +0100
[STORAHCI] Replace some __inline by FORCEINLINE
Functions were declared as __inline, then used, and then defined.
This leads to some linking errors with some compilers.
---
drivers/storage/port/storahci/storahci.c | 10 +++++-----
drivers/storage/port/storahci/storahci.h | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/storage/port/storahci/storahci.c
b/drivers/storage/port/storahci/storahci.c
index c674b2b7af4..ed94f1d3e87 100644
--- a/drivers/storage/port/storahci/storahci.c
+++ b/drivers/storage/port/storahci/storahci.c
@@ -2438,7 +2438,7 @@ AhciAdapterReset (
* @param Buffer
* @param BufferSize
*/
-__inline
+FORCEINLINE
VOID
AhciZeroMemory (
__out PCHAR Buffer,
@@ -2466,7 +2466,7 @@ AhciZeroMemory (
* @return
* return TRUE if provided port is valid (implemented) or not
*/
-__inline
+FORCEINLINE
BOOLEAN
IsPortValid (
__in PAHCI_ADAPTER_EXTENSION AdapterExtension,
@@ -2496,7 +2496,7 @@ IsPortValid (
* return TRUE if Srb is successfully added to Queue
*
*/
-__inline
+FORCEINLINE
BOOLEAN
AddQueue (
__inout PAHCI_QUEUE Queue,
@@ -2527,7 +2527,7 @@ AddQueue (
* return Srb
*
*/
-__inline
+FORCEINLINE
PVOID
RemoveQueue (
__inout PAHCI_QUEUE Queue
@@ -2590,7 +2590,7 @@ GetSrbExtension (
* return Logical Address of the block
*
*/
-__inline
+FORCEINLINE
ULONG64
AhciGetLba (
__in PCDB Cdb,
diff --git a/drivers/storage/port/storahci/storahci.h
b/drivers/storage/port/storahci/storahci.h
index 8c5277d04ca..fba3f2d4be5 100644
--- a/drivers/storage/port/storahci/storahci.h
+++ b/drivers/storage/port/storahci/storahci.h
@@ -581,14 +581,14 @@ AhciAdapterReset (
__in PAHCI_ADAPTER_EXTENSION AdapterExtension
);
-__inline
+FORCEINLINE
VOID
AhciZeroMemory (
__out PCHAR Buffer,
__in ULONG BufferSize
);
-__inline
+FORCEINLINE
BOOLEAN
IsPortValid (
__in PAHCI_ADAPTER_EXTENSION AdapterExtension,
@@ -632,14 +632,14 @@ UCHAR DeviceReportLuns (
__in PCDB Cdb
);
-__inline
+FORCEINLINE
BOOLEAN
AddQueue (
__inout PAHCI_QUEUE Queue,
__in PVOID Srb
);
-__inline
+FORCEINLINE
PVOID
RemoveQueue (
__inout PAHCI_QUEUE Queue
@@ -651,7 +651,7 @@ GetSrbExtension(
__in PSCSI_REQUEST_BLOCK Srb
);
-__inline
+FORCEINLINE
ULONG64
AhciGetLba (
__in PCDB Cdb,