lib: Downgrade error for failing to determine swap interface to a warning
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Feb 2012 09:29:11 +0000 (09:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Feb 2012 09:29:11 +0000 (09:29 +0000)
If we can't detect how much swap is available, presume none.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
lib/intel_drm.c

index 36a24fa..c35bc81 100644 (file)
@@ -104,7 +104,8 @@ intel_get_total_ram_mb(void)
 
        retval = (uint64_t) pagesize * npages;
 #else
-#error "Unknown how to get RAM size for this OS"
+#warning "Unknown how to get RAM size for this OS"
+       return 0;
 #endif
 
        return retval / (1024*1024);