Skip to content

Commit b1dba0b

Browse files
heminhongmripard
authored andcommitted
drm/qxl: remove unused declaration
Some functions are never used by the driver, removing the functions declaration, it can be reducing program size, and improving code readability and maintainability. Signed-off-by: heminhong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent 5f8dec2 commit b1dba0b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/gpu/drm/qxl/qxl_drv.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ struct qxl_output {
119119

120120
#define to_qxl_crtc(x) container_of(x, struct qxl_crtc, base)
121121
#define drm_connector_to_qxl_output(x) container_of(x, struct qxl_output, base)
122-
#define drm_encoder_to_qxl_output(x) container_of(x, struct qxl_output, enc)
123122

124123
struct qxl_mman {
125124
struct ttm_device bdev;
@@ -256,8 +255,6 @@ struct qxl_device {
256255

257256
#define to_qxl(dev) container_of(dev, struct qxl_device, ddev)
258257

259-
int qxl_debugfs_fence_init(struct qxl_device *rdev);
260-
261258
int qxl_device_init(struct qxl_device *qdev, struct pci_dev *pdev);
262259
void qxl_device_fini(struct qxl_device *qdev);
263260

@@ -344,8 +341,6 @@ qxl_image_alloc_objects(struct qxl_device *qdev,
344341
int height, int stride);
345342
void qxl_image_free_objects(struct qxl_device *qdev, struct qxl_drm_image *dimage);
346343

347-
void qxl_update_screen(struct qxl_device *qxl);
348-
349344
/* qxl io operations (qxl_cmd.c) */
350345

351346
void qxl_io_create_primary(struct qxl_device *qdev,
@@ -445,8 +440,6 @@ int qxl_hw_surface_dealloc(struct qxl_device *qdev,
445440

446441
int qxl_bo_check_id(struct qxl_device *qdev, struct qxl_bo *bo);
447442

448-
struct qxl_drv_surface *
449-
qxl_surface_lookup(struct drm_device *dev, int surface_id);
450443
void qxl_surface_evict(struct qxl_device *qdev, struct qxl_bo *surf, bool freeing);
451444

452445
/* qxl_ioctl.c */

0 commit comments

Comments
 (0)