Module Name:    src
Committed By:   riastradh
Date:           Mon Apr 20 15:38:13 UTC 2015

Modified Files:
        src/sys/external/bsd/drm/dist/bsd-core: drmP.h

Log Message:
Remove old drm's container_of.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/external/bsd/drm/dist/bsd-core/drmP.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm/dist/bsd-core/drmP.h
diff -u src/sys/external/bsd/drm/dist/bsd-core/drmP.h:1.23 src/sys/external/bsd/drm/dist/bsd-core/drmP.h:1.24
--- src/sys/external/bsd/drm/dist/bsd-core/drmP.h:1.23	Fri Jul  1 18:36:15 2011
+++ src/sys/external/bsd/drm/dist/bsd-core/drmP.h	Mon Apr 20 15:38:13 2015
@@ -267,10 +267,6 @@ typedef int			irqreturn_t;
 #define IRQ_NONE		0
 #endif
 
-#define container_of(ptr, type, member) ({			\
-	__typeof( ((type *)0)->member ) *__mptr = (ptr);	\
-	(type *)( (char *)__mptr - offsetof(type,member) );})
-
 enum {
 	DRM_IS_NOT_AGP,
 	DRM_IS_AGP,

Reply via email to