Index: /trunk/src/VBox/Devices/Audio/DevHDA.cpp
===================================================================
--- /trunk/src/VBox/Devices/Audio/DevHDA.cpp	(revision 87799)
+++ /trunk/src/VBox/Devices/Audio/DevHDA.cpp	(revision 87800)
@@ -890,5 +890,5 @@
 }
 
-#endif /* IN_RING3 */
+#else /* IN_RING0 */
 
 /**
@@ -1012,4 +1012,6 @@
     return rc;
 }
+
+#endif /* IN_RING3 */
 
 /* Register access handlers. */
Index: /trunk/src/VBox/Devices/Audio/HDACodec.cpp
===================================================================
--- /trunk/src/VBox/Devices/Audio/HDACodec.cpp	(revision 87799)
+++ /trunk/src/VBox/Devices/Audio/HDACodec.cpp	(revision 87800)
@@ -2344,4 +2344,6 @@
 }
 
+#ifdef IN_RING0
+
 static DECLCALLBACK(int) codecR0Lookup(PHDACODEC pThis, PHDACODECR0 pThisCC, uint32_t cmd, uint64_t *puResp)
 {
@@ -2387,4 +2389,6 @@
     return VERR_NOT_FOUND;
 }
+
+#endif /* IN_RING0 */
 
 /*
