svn commit: r258553 - head/sys/dev/drm2
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Mon Nov 25 15:01:59 UTC 2013
Author: dumbbell
Date: Mon Nov 25 15:01:59 2013
New Revision: 258553
URL: http://svnweb.freebsd.org/changeset/base/258553
Log:
drm: Fix build with gcc, broken with r258549
The code was easier to read without __DECONST and clang didn't report
any error. I thought the cast was enough...
MFC after: 3 days
X-MFC-With: r258549
Modified:
head/sys/dev/drm2/drm_linux_list_sort.c
Modified: head/sys/dev/drm2/drm_linux_list_sort.c
==============================================================================
--- head/sys/dev/drm2/drm_linux_list_sort.c Mon Nov 25 13:30:06 2013 (r258552)
+++ head/sys/dev/drm2/drm_linux_list_sort.c Mon Nov 25 15:01:59 2013 (r258553)
@@ -42,8 +42,8 @@ drm_le_cmp(void *priv, const void *d1, c
struct drm_list_sort_thunk *thunk;
thunk = priv;
- le1 = *(struct list_head **)d1;
- le2 = *(struct list_head **)d2;
+ le1 = *(__DECONST(struct list_head **, d1));
+ le2 = *(__DECONST(struct list_head **, d2));
return ((thunk->cmp)(thunk->priv, le1, le2));
}
More information about the svn-src-all
mailing list