Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <heminhong@kylinos.cn>
Link: https://lore.kernel.org/r/20231110055031.57360-1-heminhong@kylinos.cn
Signed-off-by: Maxime Ripard <mripard@kernel.org>

authored by

heminhong and committed by
Maxime Ripard
b1dba0b1 5f8dec20

-7
-7
drivers/gpu/drm/qxl/qxl_drv.h
··· 119 119 120 120 #define to_qxl_crtc(x) container_of(x, struct qxl_crtc, base) 121 121 #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) 123 122 124 123 struct qxl_mman { 125 124 struct ttm_device bdev; ··· 255 256 256 257 #define to_qxl(dev) container_of(dev, struct qxl_device, ddev) 257 258 258 - int qxl_debugfs_fence_init(struct qxl_device *rdev); 259 - 260 259 int qxl_device_init(struct qxl_device *qdev, struct pci_dev *pdev); 261 260 void qxl_device_fini(struct qxl_device *qdev); 262 261 ··· 340 343 struct qxl_drm_image **image_ptr, 341 344 int height, int stride); 342 345 void qxl_image_free_objects(struct qxl_device *qdev, struct qxl_drm_image *dimage); 343 - 344 - void qxl_update_screen(struct qxl_device *qxl); 345 346 346 347 /* qxl io operations (qxl_cmd.c) */ 347 348 ··· 440 445 441 446 int qxl_bo_check_id(struct qxl_device *qdev, struct qxl_bo *bo); 442 447 443 - struct qxl_drv_surface * 444 - qxl_surface_lookup(struct drm_device *dev, int surface_id); 445 448 void qxl_surface_evict(struct qxl_device *qdev, struct qxl_bo *surf, bool freeing); 446 449 447 450 /* qxl_ioctl.c */