The SM namespace is within the Service namespace, so this was forward declaring a type that didn't exist.
@@ -15,7 +15,7 @@ namespace Kernel {
class SharedMemory;
}
-namespace SM {
+namespace Service::SM {
class ServiceManager;