Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2013 15:01:59 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r258553 - head/sys/dev/drm2
Message-ID:  <201311251501.rAPF1xqS085815@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311251501.rAPF1xqS085815>