summaryrefslogtreecommitdiff
path: root/OvmfPkg/Library/VirtioLib
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-12 18:54:52 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-12 18:54:52 +0000
commit9de0355b1ad7c8afaaf1dc0545438c9a6659d869 (patch)
tree9f4c4ec63715ec3c9fccd48329d93139fd8bd227 /OvmfPkg/Library/VirtioLib
parente371e7e545b266ce4ae8ff76da6c98616214599f (diff)
downloadedk2-platforms-9de0355b1ad7c8afaaf1dc0545438c9a6659d869.tar.xz
OvmfPkg: MSVC build fixes for VirtioLib and VirtioBlkDxe
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mike Lee <leemiketw@gmail.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13845 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/Library/VirtioLib')
-rw-r--r--OvmfPkg/Library/VirtioLib/VirtioLib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/OvmfPkg/Library/VirtioLib/VirtioLib.c b/OvmfPkg/Library/VirtioLib/VirtioLib.c
index 6ed977cd10..8398c9db4c 100644
--- a/OvmfPkg/Library/VirtioLib/VirtioLib.c
+++ b/OvmfPkg/Library/VirtioLib/VirtioLib.c
@@ -44,8 +44,8 @@
@return Status code returned by PciIo->Io.Write().
**/
-EFIAPI
EFI_STATUS
+EFIAPI
VirtioWrite (
IN EFI_PCI_IO_PROTOCOL *PciIo,
IN UINTN FieldOffset,
@@ -76,6 +76,7 @@ VirtioWrite (
default:
ASSERT (FALSE);
+ return EFI_INVALID_PARAMETER;
}
return PciIo->Io.Write (
@@ -111,8 +112,8 @@ VirtioWrite (
@return Status code returned by PciIo->Io.Read().
**/
-EFIAPI
EFI_STATUS
+EFIAPI
VirtioRead (
IN EFI_PCI_IO_PROTOCOL *PciIo,
IN UINTN FieldOffset,
@@ -146,6 +147,7 @@ VirtioRead (
default:
ASSERT (FALSE);
+ return EFI_INVALID_PARAMETER;
}
return PciIo->Io.Read (