Skip to contentSkip to conversation

drm/amd/display: Remove incorrect macro guard

PATCH In review Alex Hung 3 participants 4 messages Mar 11, 2025 – Mar 12, 2025

Subsystems (3)
lore
Share & tools
lore

Alex Hung

author
#0 lore raw

PATCH 1/1 drm/amd/display: Remove incorrect macro guard

This macro guard "__cplusplus" is unnecessary and should not be there.

---
 drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -3
index 145961803a92..d621c42a237e 100644
@@ -17,9 +17,6 @@
 #define SPL_EXPAND(a, b)          SPL_EXPAND2(a, b)
 #define SPL_NAMESPACE(symbol)     SPL_EXPAND(SPL_PFX_, symbol)
 
-#ifdef __cplusplus
-extern "C" {
-#endif
 
 /* SPL interfaces */
 
Signature · 1 line
2.43.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Alex Hung

This macro guard "__cplusplus" is unnecessary and should not be there.

---
 drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -3
index 145961803a92..d621c42a237e 100644
@@ -17,9 +17,6 @@
 #define SPL_EXPAND(a, b)          SPL_EXPAND2(a, b)
 #define SPL_NAMESPACE(symbol)     SPL_EXPAND(SPL_PFX_, symbol)
 
-#ifdef __cplusplus
-extern "C" {
-#endif
 
 /* SPL interfaces */
 
Signature · 1 line
2.43.0
Signature · 1 line
Rodrigo Siqueira
maintainer
#2 lore raw
In reply to Alex Hung

Am 11.03.25 um 18:10 schrieb Alex Hung:

Quoted 12 lines

This macro guard "__cplusplus" is unnecessary and should not be there.

---
 drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -0
index 145961803a92..d621c42a237e 100644

drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h line 22

Quoted 6 lines
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -3
@@ -17,9 +17,6 @@
 #define SPL_EXPAND(a, b)          SPL_EXPAND2(a, b)
 #define SPL_NAMESPACE(symbol)     SPL_EXPAND(SPL_PFX_, symbol)
 
-#ifdef __cplusplus
-extern "C" {
-#endif

Just double checking: Is there a closing "#ifdef.. } #endif" at the end of the file?

If yes then please remove that as well, if not feel free to add Reviewed-by: Christian König <[email protected]>.

Regards,
Christian.

Quoted 3 lines
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -0
 /* SPL interfaces */
 
author
#3 lore raw
Quoted 16 lines · Christian König

Am 11.03.25 um 18:10 schrieb Alex Hung:

Quoted 15 lines

This macro guard "__cplusplus" is unnecessary and should not be there.

---
  drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h | 3 ---
  1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -0
index 145961803a92..d621c42a237e 100644
@@ -17,9 +17,6 @@
  #define SPL_EXPAND(a, b)          SPL_EXPAND2(a, b)
  #define SPL_NAMESPACE(symbol)     SPL_EXPAND(SPL_PFX_, symbol)
 
Quoted 7 lines

drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h line 22

Quoted 3 lines
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -3
-#ifdef __cplusplus
-extern "C" {
-#endif

Just double checking: Is there a closing "#ifdef.. } #endif" at the end of the file?

If yes then please remove that as well, if not feel free to add Reviewed-by: Christian König <[email protected]>.

There are no closing one at the end of the file. Thanks.

Quoted 8 lines

Regards,
Christian.

Quoted 3 lines
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h +0 -0
  /* SPL interfaces */