Skip to contentSkip to conversation

drm/amdgpu: Fix macro name _AMDGPU_TRACE_H_ in preprocessor if condition

PATCH Applied Chenyang Li 5 participants 6 messages Dec 26, 2020 – Jan 4, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Fix macro name _AMDGPU_TRACE_H_ in preprocessor if condition

Add an underscore in amdgpu_trace.h line 24 "_AMDGPU_TRACE_H".

Fixes d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +1 -1
index ee9480d14cbc..86cfb3d55477 100644
@@ -21,7 +21,7 @@
  *
  */
 
-#if !defined(_AMDGPU_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
+#if !defined(_AMDGPU_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
 #define _AMDGPU_TRACE_H_
 
 #include <linux/stringify.h>
Signature · 6 lines
2.29.2

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

Dear 李晨阳,

Am 26.12.20 um 09:56 schrieb Chenyang Li:

Quoted 13 lines

Add an underscore in amdgpu_trace.h line 24 "_AMDGPU_TRACE_H".

Fixes d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +0 -0
index ee9480d14cbc..86cfb3d55477 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h line 27

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +1 -1
@@ -21,7 +21,7 @@
   *
   */
 
-#if !defined(_AMDGPU_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
+#if !defined(_AMDGPU_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
  #define _AMDGPU_TRACE_H_
 
  #include <linux/stringify.h>

Kind regards,

Paul

PS: Next time, for patch iterations, you should include the version in the tag: PATCH v2. The switch -v (--reroll-count) helps with that:

git format-patch -1 -v 2
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#2 lore raw

Am 26.12.20 um 14:16 schrieb Paul Menzel:

Quoted 7 lines

Dear 李晨阳,

Am 26.12.20 um 09:56 schrieb Chenyang Li:

Quoted 3 lines

Add an underscore in amdgpu_trace.h line 24 "_AMDGPU_TRACE_H".

Fixes d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")

Well this Fixes tag is superfluous/misleading and should probably be removed.

Why was that added?

Christian.

Quoted 25 lines
Quoted 10 lines

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +0 -0
index ee9480d14cbc..86cfb3d55477 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h line 26

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +1 -0
@@ -21,7 +21,7 @@
    *
    */
   -#if !defined(_AMDGPU_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
+#if !defined(_AMDGPU_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
   #define _AMDGPU_TRACE_H_
     #include <linux/stringify.h>

Kind regards,

Paul

Quoted 7 lines

PS: Next time, for patch iterations, you should include the version in the tag: PATCH v2. The switch -v (--reroll-count) helps with that:

    git format-patch -1 -v 2
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#3 lore raw

Dear Christian,

Am 27.12.20 um 10:38 schrieb Christian König:

Quoted 8 lines

Am 26.12.20 um 14:16 schrieb Paul Menzel:

Quoted 4 lines

Am 26.12.20 um 09:56 schrieb Chenyang Li:

Quoted 3 lines

Add an underscore in amdgpu_trace.h line 24 "_AMDGPU_TRACE_H".

Fixes d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")

Well this Fixes tag is superfluous/misleading and should probably be removed.

Why is it misleading?

Quoted 1 line

Why was that added?

I asked for that, because that is the commit introducing the issue, and with that tag it’s more likely to picked for the stable series.

[…]

Kind regards,

Paul
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

maintainer
#4 lore raw

Am 27.12.20 um 11:53 schrieb Paul Menzel:

Quoted 6 lines

Dear Christian,

Am 27.12.20 um 10:38 schrieb Christian König:

Quoted 1 line

Am 26.12.20 um 14:16 schrieb Paul Menzel:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Am 26.12.20 um 09:56 schrieb Chenyang Li:

Quoted 3 lines

Add an underscore in amdgpu_trace.h line 24 "_AMDGPU_TRACE_H".

Fixes d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")

Well this Fixes tag is superfluous/misleading and should probably be removed.

Why is it misleading?

The purpose of a Fixes tag is to distinct into which stable sources a patch should be added.

E.g. if somebody maintains a backport which has the originally buggy patch then he can figure out that he needs this one as well.

But since this problem is there for as long as the driver existed that is pretty much superfluous and confusing.

Quoted 4 lines
Quoted 2 lines

Why was that added?

I asked for that, because that is the commit introducing the issue, and with that tag it’s  more likely to picked for the stable series.

Ah, yes that is a rather good idea. But we should probably use a "CC: [email protected]" tag instead since this patch can be added pretty much everywhere.

Thanks,
Christian.

Quoted 7 lines

[…]

Kind regards,

Paul

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Applied
#5 lore raw
In reply to Chenyang Li

Applied. Thanks!

Alex

Quoted 25 lines · Chenyang Li

Add an underscore in amdgpu_trace.h line 24 "_AMDGPU_TRACE_H".

Fixes d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +1 -2
index ee9480d14cbc..86cfb3d55477 100644
@@ -21,7 +21,7 @@
  *
  */
 
-#if !defined(_AMDGPU_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
+#if !defined(_AMDGPU_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
 #define _AMDGPU_TRACE_H_
 
 #include <linux/stringify.h>
--

2.29.2

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx