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/amd/amdgpu amdgpu: Sprinkle _...



details:   https://anonhg.NetBSD.org/src/rev/8f5a5403ad0c
branches:  trunk
changeset: 1029165:8f5a5403ad0c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Dec 24 11:19:55 2021 +0000

description:
amdgpu: Sprinkle __diagused.

diffstat:

 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r af7ddc2e1b6e -r 8f5a5403ad0c sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c   Fri Dec 24 05:13:39 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c   Fri Dec 24 11:19:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_gart.c,v 1.7 2021/12/19 12:21:29 riastradh Exp $        */
+/*     $NetBSD: amdgpu_gart.c,v 1.8 2021/12/24 11:19:55 riastradh Exp $        */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_gart.c,v 1.7 2021/12/19 12:21:29 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_gart.c,v 1.8 2021/12/24 11:19:55 riastradh Exp $");
 
 #include <linux/pci.h>
 #include <linux/vmalloc.h>
@@ -301,7 +301,7 @@
        const unsigned gpu_per_cpu = AMDGPU_GPU_PAGES_IN_CPU_PAGE;
        const unsigned gpu_npages = (npages * gpu_per_cpu);
        const uint64_t gpu_pgstart = (gpu_start / AMDGPU_GPU_PAGE_SIZE);
-       const uint64_t pgstart = (gpu_pgstart / gpu_per_cpu);
+       const uint64_t pgstart __diagused = (gpu_pgstart / gpu_per_cpu);
        uint64_t pgno, gpu_pgno;
        uint32_t flags = AMDGPU_PTE_SYSTEM;
 
@@ -479,7 +479,7 @@
        const unsigned gpu_per_cpu = AMDGPU_GPU_PAGES_IN_CPU_PAGE;
        const unsigned gpu_npages = (npages * gpu_per_cpu);
        const uint64_t gpu_pgstart = (gpu_start / AMDGPU_GPU_PAGE_SIZE);
-       const uint64_t pgstart = (gpu_pgstart / gpu_per_cpu);
+       const uint64_t pgstart __diagused = (gpu_pgstart / gpu_per_cpu);
        uint64_t pgno, gpu_pgno;
 
        KASSERT(pgstart == (gpu_start / PAGE_SIZE));



Home | Main Index | Thread Index | Old Index