Skip to content

Commit ff742e0

Browse files
contactshashanksharmaalexdeucher
authored andcommitted
drm/amdgpu: include protection for doorbell.h
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>
1 parent 0512e9f commit ff742e0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
*
2222
*/
2323

24+
#ifndef AMDGPU_DOORBELL_H
25+
#define AMDGPU_DOORBELL_H
26+
2427
/*
2528
* GPU doorbell structures, functions & helpers
2629
*/
@@ -308,3 +311,4 @@ void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v);
308311
#define RDOORBELL64(index) amdgpu_mm_rdoorbell64(adev, (index))
309312
#define WDOORBELL64(index, v) amdgpu_mm_wdoorbell64(adev, (index), (v))
310313

314+
#endif

0 commit comments

Comments
 (0)