Skip to content

Commit

Permalink
drm/i915/ringbuffer: Mark the initialisation structs as constant.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Sep 21, 2010
1 parent 881f47b commit e070868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ void intel_fill_struct(struct drm_device *dev,
intel_ring_advance(dev, ring);
}

static struct intel_ring_buffer render_ring = {
static const struct intel_ring_buffer render_ring = {
.name = "render ring",
.id = RING_RENDER,
.regs = {
Expand Down Expand Up @@ -830,7 +830,7 @@ static struct intel_ring_buffer render_ring = {

/* ring buffer for bit-stream decoder */

static struct intel_ring_buffer bsd_ring = {
static const struct intel_ring_buffer bsd_ring = {
.name = "bsd ring",
.id = RING_BSD,
.regs = {
Expand Down Expand Up @@ -948,7 +948,7 @@ gen6_bsd_ring_dispatch_gem_execbuffer(struct drm_device *dev,
}

/* ring buffer for Video Codec for Gen6+ */
static struct intel_ring_buffer gen6_bsd_ring = {
static const struct intel_ring_buffer gen6_bsd_ring = {
.name = "gen6 bsd ring",
.id = RING_BSD,
.regs = {
Expand Down

0 comments on commit e070868

Please sign in to comment.