Re: [PATCH 02/16] drm/amdgpu: include protection for doobell.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Christian,

On 30/03/2023 13:05, Christian König wrote:
Am 29.03.23 um 17:47 schrieb Shashank Sharma:
From: Shashank Sharma <contactshashanksharma@xxxxxxxxx>

This patch adds double include protection for doorbell.h

Cc: Alex Deucher <alexander.deucher@xxxxxxx>
Cc: Christian Koenig <christian.koenig@xxxxxxx>
Signed-off-by: Shashank Sharma <shashank.sharma@xxxxxxx>

Reviewed-by: Christian König <christian.koenig@xxxxxxx>

I suggest to get this pushed to amd-staging-drm-next ASAP together with patch #1.

Christian.

Noted,

- Shashank

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h
index 12263986f889..6064943a1b53 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h
@@ -21,6 +21,9 @@
   *
   */
  +#ifndef AMDGPU_DOORBELL_H
+#define AMDGPU_DOORBELL_H
+
  /*
   * GPU doorbell structures, functions & helpers
   */
@@ -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
\ No newline at end of file




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux