[Mesa-dev] [PATCH 4/5] gallium: annotate drm_driver_descriptor instance as const data
Emil Velikov
emil.l.velikov at gmail.com
Tue Oct 11 18:39:26 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
Already treated and handled as such.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/gallium/include/state_tracker/drm_driver.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h
index deccfb5..c80fb09 100644
--- a/src/gallium/include/state_tracker/drm_driver.h
+++ b/src/gallium/include/state_tracker/drm_driver.h
@@ -108,13 +108,13 @@ struct drm_driver_descriptor
const struct drm_conf_ret *(*configuration) (enum drm_conf conf);
};
-extern struct drm_driver_descriptor driver_descriptor;
+extern const struct drm_driver_descriptor driver_descriptor;
/**
* Instantiate a drm_driver_descriptor struct.
*/
#define DRM_DRIVER_DESCRIPTOR(driver_name_str, func, conf) \
-struct drm_driver_descriptor driver_descriptor = { \
+const struct drm_driver_descriptor driver_descriptor = { \
.driver_name = driver_name_str, \
.create_screen = func, \
.configuration = (conf), \
--
2.10.0
More information about the mesa-dev
mailing list