Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Drop volatile on the f...



details:   https://anonhg.NetBSD.org/src/rev/bba152a5f098
branches:  trunk
changeset: 364258:bba152a5f098
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:45:22 2018 +0000

description:
Drop volatile on the floor because keeping it is too much trouble.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/cik.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ccbcdab12264 -r bba152a5f098 sys/external/bsd/drm2/dist/drm/radeon/cik.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/cik.c       Mon Aug 27 06:45:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/cik.c       Mon Aug 27 06:45:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cik.c,v 1.7 2018/08/27 06:44:00 riastradh Exp $        */
+/*     $NetBSD: cik.c,v 1.8 2018/08/27 06:45:22 riastradh Exp $        */
 
 /*
  * Copyright 2012 Advanced Micro Devices, Inc.
@@ -24,7 +24,7 @@
  * Authors: Alex Deucher
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cik.c,v 1.7 2018/08/27 06:44:00 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cik.c,v 1.8 2018/08/27 06:45:22 riastradh Exp $");
 
 #include <linux/firmware.h>
 #include <linux/slab.h>
@@ -7946,7 +7946,7 @@
                ring_index = rptr / 4;
 
                radeon_kfd_interrupt(rdev,
-                               (const void *) &rdev->ih.ring[ring_index]);
+                   (const void *)__UNVOLATILE(&rdev->ih.ring[ring_index]));
 
                src_id =  le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff;
                src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff;



Home | Main Index | Thread Index | Old Index