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 const_container_of for...



details:   https://anonhg.NetBSD.org/src/rev/8562f10a1ddb
branches:  trunk
changeset: 992806:8562f10a1ddb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:51:27 2018 +0000

description:
const_container_of for const

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_ucode.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r b3170b20b432 -r 8562f10a1ddb sys/external/bsd/drm2/dist/drm/radeon/radeon_ucode.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_ucode.c      Mon Aug 27 07:51:16 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_ucode.c      Mon Aug 27 07:51:27 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_ucode.c,v 1.2 2018/08/27 04:58:36 riastradh Exp $       */
+/*     $NetBSD: radeon_ucode.c,v 1.3 2018/08/27 07:51:27 riastradh Exp $       */
 
 /*
  * Copyright 2014 Advanced Micro Devices, Inc.
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_ucode.c,v 1.2 2018/08/27 04:58:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_ucode.c,v 1.3 2018/08/27 07:51:27 riastradh Exp $");
 
 #include <linux/firmware.h>
 #include <linux/slab.h>
@@ -58,7 +58,7 @@
 
        if (version_major == 1) {
                const struct mc_firmware_header_v1_0 *mc_hdr =
-                       container_of(hdr, struct mc_firmware_header_v1_0, header);
+                       const_container_of(hdr, struct mc_firmware_header_v1_0, header);
 
                DRM_DEBUG("io_debug_size_bytes: %u\n",
                          le32_to_cpu(mc_hdr->io_debug_size_bytes));
@@ -79,7 +79,7 @@
 
        if (version_major == 1) {
                const struct smc_firmware_header_v1_0 *smc_hdr =
-                       container_of(hdr, struct smc_firmware_header_v1_0, header);
+                       const_container_of(hdr, struct smc_firmware_header_v1_0, header);
 
                DRM_DEBUG("ucode_start_addr: %u\n", le32_to_cpu(smc_hdr->ucode_start_addr));
        } else {
@@ -97,7 +97,7 @@
 
        if (version_major == 1) {
                const struct gfx_firmware_header_v1_0 *gfx_hdr =
-                       container_of(hdr, struct gfx_firmware_header_v1_0, header);
+                       const_container_of(hdr, struct gfx_firmware_header_v1_0, header);
 
                DRM_DEBUG("ucode_feature_version: %u\n",
                          le32_to_cpu(gfx_hdr->ucode_feature_version));
@@ -118,7 +118,7 @@
 
        if (version_major == 1) {
                const struct rlc_firmware_header_v1_0 *rlc_hdr =
-                       container_of(hdr, struct rlc_firmware_header_v1_0, header);
+                       const_container_of(hdr, struct rlc_firmware_header_v1_0, header);
 
                DRM_DEBUG("ucode_feature_version: %u\n",
                          le32_to_cpu(rlc_hdr->ucode_feature_version));
@@ -145,7 +145,7 @@
 
        if (version_major == 1) {
                const struct sdma_firmware_header_v1_0 *sdma_hdr =
-                       container_of(hdr, struct sdma_firmware_header_v1_0, header);
+                       const_container_of(hdr, struct sdma_firmware_header_v1_0, header);
 
                DRM_DEBUG("ucode_feature_version: %u\n",
                          le32_to_cpu(sdma_hdr->ucode_feature_version));



Home | Main Index | Thread Index | Old Index