projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e74007
)
lib: Downgrade error for failing to determine swap interface to a warning
author
Chris Wilson
<chris@chris-wilson.co.uk>
Tue, 28 Feb 2012 09:29:11 +0000
(09:29 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/intel_drm.c
b/lib/intel_drm.c
index
36a24fa
..
c35bc81
100644
(file)
--- a/
lib/intel_drm.c
+++ b/
lib/intel_drm.c
@@
-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);