summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-09-08 14:41:26 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-10-02 13:25:44 +1000
commitc0d66b3b8ed56f57b79a1b36bb75d604e49d2d2d (patch)
treeae5b3deee410c6d1953e86c2452a48ea4462fb23 /lib
parent599dafb68e097eecd47d7a287efc92728ce28ca9 (diff)
downloadnouveau-c0d66b3b8ed56f57b79a1b36bb75d604e49d2d2d.tar.gz
fb/ram/gk104-: perform certain steps only when bios data differs
Awful, awful. But, on the GK106 I have, some upcoming patches show that this is actually necessary after all. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/core/list.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/core/list.h b/lib/core/list.h
index 8af5d144e..f273376ec 100644
--- a/lib/core/list.h
+++ b/lib/core/list.h
@@ -251,8 +251,9 @@ list_empty(struct list_head *head)
* @return A pointer to the data struct containing the list head.
*/
#ifndef container_of
-#define container_of(ptr, type, member) \
- (type *)((char *)(ptr) - (char *) &((type *)0)->member)
+#define container_of(ptr, type, member) ({ \
+ (type *)((char *)(ptr) - (char *) &((type *)0)->member); \
+})
#endif
/**