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 Add volatile to the se...
details: https://anonhg.NetBSD.org/src/rev/4914a2492047
branches: trunk
changeset: 992481:4914a2492047
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:43:35 2018 +0000
description:
Add volatile to the second argument of radeon_kfd_interrupt to appease
gcc
(previously warning about discarded qualifier. There's only one user.)
Author: coypu <coypu%sdf.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.c | 6 +++---
sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 2a594aca9616 -r 4914a2492047 sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.c Mon Aug 27 06:43:24 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.c Mon Aug 27 06:43:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeon_kfd.c,v 1.2 2018/08/27 04:58:36 riastradh Exp $ */
+/* $NetBSD: radeon_kfd.c,v 1.3 2018/08/27 06:43:35 riastradh Exp $ */
/*
* Copyright 2014 Advanced Micro Devices, Inc.
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_kfd.c,v 1.2 2018/08/27 04:58:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_kfd.c,v 1.3 2018/08/27 06:43:35 riastradh Exp $");
#include <linux/module.h>
#include <linux/fdtable.h>
@@ -210,7 +210,7 @@
}
}
-void radeon_kfd_interrupt(struct radeon_device *rdev, const void *ih_ring_entry)
+void radeon_kfd_interrupt(struct radeon_device *rdev, const volatile void *ih_ring_entry)
{
if (rdev->kfd)
kgd2kfd->interrupt(rdev->kfd, ih_ring_entry);
diff -r 2a594aca9616 -r 4914a2492047 sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.h
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.h Mon Aug 27 06:43:24 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_kfd.h Mon Aug 27 06:43:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeon_kfd.h,v 1.2 2018/08/27 04:58:36 riastradh Exp $ */
+/* $NetBSD: radeon_kfd.h,v 1.3 2018/08/27 06:43:35 riastradh Exp $ */
/*
* Copyright 2014 Advanced Micro Devices, Inc.
@@ -41,7 +41,7 @@
void radeon_kfd_suspend(struct radeon_device *rdev);
int radeon_kfd_resume(struct radeon_device *rdev);
void radeon_kfd_interrupt(struct radeon_device *rdev,
- const void *ih_ring_entry);
+ const volatile void *ih_ring_entry);
void radeon_kfd_device_probe(struct radeon_device *rdev);
void radeon_kfd_device_init(struct radeon_device *rdev);
void radeon_kfd_device_fini(struct radeon_device *rdev);
Home |
Main Index |
Thread Index |
Old Index