Skip to content

Commit

Permalink
drm/amdgpu: include protection for doorbell.h
Browse files Browse the repository at this point in the history
This patch adds double include protection for doorbell.h

Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian Koenig <christian.koenig@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Shashank Sharma authored and Alex Deucher committed Apr 13, 2023
1 parent 0512e9f commit ff742e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
*
*/

#ifndef AMDGPU_DOORBELL_H
#define AMDGPU_DOORBELL_H

/*
* GPU doorbell structures, functions & helpers
*/
Expand Down Expand Up @@ -308,3 +311,4 @@ void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v);
#define RDOORBELL64(index) amdgpu_mm_rdoorbell64(adev, (index))
#define WDOORBELL64(index, v) amdgpu_mm_wdoorbell64(adev, (index), (v))

#endif

0 comments on commit ff742e0

Please sign in to comment.