@@ -400,8 +400,6 @@ void qxl_crtc_set_from_monitors_config(struct qxl_device *qdev);
void qxl_alloc_client_monitors_config(struct qxl_device *qdev, unsigned count);
/* qxl_gem.c */
-int qxl_gem_init(struct qxl_device *qdev);
-void qxl_gem_fini(struct qxl_device *qdev);
int qxl_gem_object_create(struct qxl_device *qdev, int size,
int alignment, int initial_domain,
bool discardable, bool kernel,
@@ -104,14 +104,3 @@ void qxl_gem_object_close(struct drm_gem_object *obj,
struct drm_file *file_priv)
{
}
-
-int qxl_gem_init(struct qxl_device *qdev)
-{
- INIT_LIST_HEAD(&qdev->gem.objects);
- return 0;
-}
-
-void qxl_gem_fini(struct qxl_device *qdev)
-{
- qxl_bo_force_delete(qdev);
-}
Removes some functions that are not used anywhere: qxl_gem_fini() qxl_gem_init() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> --- drivers/gpu/drm/qxl/qxl_drv.h | 2 -- drivers/gpu/drm/qxl/qxl_gem.c | 11 ----------- 2 files changed, 13 deletions(-)