Commit 28f5a6cd authored by Rashika Kheria's avatar Rashika Kheria Committed by Alex Deucher

drivers: gpu: Mark functions as static in radeon_device.c

Mark functions radeon_doorbell_init() and radeon_doorbell_fini() as
static in drm/radeon/radeon_device.c because they are not used outside
this file.

This eliminates the following warning in drm/radeon/radeon_device.c:
drivers/gpu/drm/radeon/radeon_device.c:252:5: warning: no previous prototype for ‘radeon_doorbell_init’ [-Wmissing-prototypes]
drivers/gpu/drm/radeon/radeon_device.c:281:6: warning: no previous prototype for ‘radeon_doorbell_fini’ [-Wmissing-prototypes]
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2f43651c
...@@ -249,7 +249,7 @@ void radeon_scratch_free(struct radeon_device *rdev, uint32_t reg) ...@@ -249,7 +249,7 @@ void radeon_scratch_free(struct radeon_device *rdev, uint32_t reg)
* Init doorbell driver information (CIK) * Init doorbell driver information (CIK)
* Returns 0 on success, error on failure. * Returns 0 on success, error on failure.
*/ */
int radeon_doorbell_init(struct radeon_device *rdev) static int radeon_doorbell_init(struct radeon_device *rdev)
{ {
/* doorbell bar mapping */ /* doorbell bar mapping */
rdev->doorbell.base = pci_resource_start(rdev->pdev, 2); rdev->doorbell.base = pci_resource_start(rdev->pdev, 2);
...@@ -278,7 +278,7 @@ int radeon_doorbell_init(struct radeon_device *rdev) ...@@ -278,7 +278,7 @@ int radeon_doorbell_init(struct radeon_device *rdev)
* *
* Tear down doorbell driver information (CIK) * Tear down doorbell driver information (CIK)
*/ */
void radeon_doorbell_fini(struct radeon_device *rdev) static void radeon_doorbell_fini(struct radeon_device *rdev)
{ {
iounmap(rdev->doorbell.ptr); iounmap(rdev->doorbell.ptr);
rdev->doorbell.ptr = NULL; rdev->doorbell.ptr = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment