Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
29ee3991
Commit
29ee3991
authored
Jan 24, 2011
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915: Silence a few -Wunused-but-set-variable
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
bdd92c9a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem.c
+0
-3
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_display.c
+1
-2
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.c
+4
-0
No files found.
drivers/gpu/drm/i915/i915_gem.c
View file @
29ee3991
...
...
@@ -1121,7 +1121,6 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
struct
drm_i915_private
*
dev_priv
=
dev
->
dev_private
;
struct
drm_i915_gem_mmap
*
args
=
data
;
struct
drm_gem_object
*
obj
;
loff_t
offset
;
unsigned
long
addr
;
if
(
!
(
dev
->
driver
->
driver_features
&
DRIVER_GEM
))
...
...
@@ -1136,8 +1135,6 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
return
-
E2BIG
;
}
offset
=
args
->
offset
;
down_write
(
&
current
->
mm
->
mmap_sem
);
addr
=
do_mmap
(
obj
->
filp
,
0
,
args
->
size
,
PROT_READ
|
PROT_WRITE
,
MAP_SHARED
,
...
...
drivers/gpu/drm/i915/intel_display.c
View file @
29ee3991
...
...
@@ -4346,7 +4346,7 @@ static void intel_update_watermarks(struct drm_device *dev)
struct
drm_i915_private
*
dev_priv
=
dev
->
dev_private
;
struct
drm_crtc
*
crtc
;
int
sr_hdisplay
=
0
;
unsigned
long
planea_clock
=
0
,
planeb_clock
=
0
,
sr_clock
=
0
;
unsigned
long
planea_clock
=
0
,
planeb_clock
=
0
;
int
enabled
=
0
,
pixel_size
=
0
;
int
sr_htotal
=
0
;
...
...
@@ -4368,7 +4368,6 @@ static void intel_update_watermarks(struct drm_device *dev)
planeb_clock
=
crtc
->
mode
.
clock
;
}
sr_hdisplay
=
crtc
->
mode
.
hdisplay
;
sr_clock
=
crtc
->
mode
.
clock
;
sr_htotal
=
crtc
->
mode
.
htotal
;
if
(
crtc
->
fb
)
pixel_size
=
crtc
->
fb
->
bits_per_pixel
/
8
;
...
...
drivers/gpu/drm/i915/intel_ringbuffer.c
View file @
29ee3991
...
...
@@ -893,6 +893,10 @@ void intel_cleanup_ring_buffer(struct intel_ring_buffer *ring)
/* Disable the ring buffer. The ring must be idle at this point */
dev_priv
=
ring
->
dev
->
dev_private
;
ret
=
intel_wait_ring_buffer
(
ring
,
ring
->
size
-
8
);
if
(
ret
)
DRM_ERROR
(
"failed to quiesce %s whilst cleaning up: %d
\n
"
,
ring
->
name
,
ret
);
I915_WRITE_CTL
(
ring
,
0
);
drm_core_ioremapfree
(
&
ring
->
map
,
ring
->
dev
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment