projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57de50a
)
drm/bochs: make structure bochs_bo_driver static
author
Colin Ian King
<colin.king@canonical.com>
Wed, 7 Feb 2018 11:13:53 +0000
(11:13 +0000)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 19 Feb 2018 09:43:44 +0000
(10:43 +0100)
The structure bochs_bo_driver is local to the source and does not need to
be in global scope, so make it static.
Cleans up sparse warning:
drivers/gpu/drm/bochs/bochs_mm.c:197:22: warning: symbol 'bochs_bo_driver'
was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180207111353.30261-1-colin.king@canonical.com
drivers/gpu/drm/bochs/bochs_mm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bochs/bochs_mm.c
b/drivers/gpu/drm/bochs/bochs_mm.c
index
704e879
..
b1d5aee
100644
(file)
--- a/
drivers/gpu/drm/bochs/bochs_mm.c
+++ b/
drivers/gpu/drm/bochs/bochs_mm.c
@@
-194,7
+194,7
@@
static struct ttm_tt *bochs_ttm_tt_create(struct ttm_bo_device *bdev,
return tt;
}
-struct ttm_bo_driver bochs_bo_driver = {
+st
atic st
ruct ttm_bo_driver bochs_bo_driver = {
.ttm_tt_create = bochs_ttm_tt_create,
.ttm_tt_populate = ttm_pool_populate,
.ttm_tt_unpopulate = ttm_pool_unpopulate,