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

drivers: gpu: Mark function as static in qxl_kms.c

Mark function qxl_device_init() as static in drm/qxl/qxl_kms.c because
it is not used outside this file.

This eliminates the following warning in drm/qxl/qxl_kms.c:
drivers/gpu/drm/qxl/qxl_kms.c:118:5: warning: no previous prototype for ‘qxl_device_init’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Rashika and committed by
Dave Airlie
0662e4c2 06a8c650

+1 -1
+1 -1
drivers/gpu/drm/qxl/qxl_kms.c
··· 115 115 qxl_garbage_collect(qdev); 116 116 } 117 117 118 - int qxl_device_init(struct qxl_device *qdev, 118 + static int qxl_device_init(struct qxl_device *qdev, 119 119 struct drm_device *ddev, 120 120 struct pci_dev *pdev, 121 121 unsigned long flags)