summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bochs
diff options
context:
space:
mode:
authorColin Ian King2018-02-07 12:13:53 +0100
committerDaniel Vetter2018-02-19 10:43:44 +0100
commitf42bd94628b12789ade8cafa87262ef4baad3742 (patch)
treea52ad559bb2e9fb54485f4d06b6266dd8b49ffd3 /drivers/gpu/drm/bochs
parentdrm/rockchip: Respect page offset for PRIME mmap calls (diff)
downloadkernel-qcow2-linux-f42bd94628b12789ade8cafa87262ef4baad3742.tar.gz
kernel-qcow2-linux-f42bd94628b12789ade8cafa87262ef4baad3742.tar.xz
kernel-qcow2-linux-f42bd94628b12789ade8cafa87262ef4baad3742.zip
drm/bochs: make structure bochs_bo_driver static
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
Diffstat (limited to 'drivers/gpu/drm/bochs')
-rw-r--r--drivers/gpu/drm/bochs/bochs_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c
index 704e879711e4..b1d5aee46316 100644
--- 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 = {
+static struct 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,