Skip to contentSkip to conversation

drivers:gpu:drm:selftests: cleanup __FUNCTION__ usage

PATCH New Dwaipayan Ray 1 participant 1 message Jul 11, 2021

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

PATCH 1/1 drivers:gpu:drm:selftests: cleanup __FUNCTION__ usage

__FUNCTION__ exists only for backwards compatibility reasons with old gcc versions. Replace it with __func__.

---
 drivers/gpu/drm/selftests/test-drm_modeset_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/selftests/test-drm_modeset_common.h +1 -1
index cfb51d8da2bc..a4e9d9bacc89 100644
@@ -9,7 +9,7 @@
 #define FAIL(test, msg, ...) \
 	do { \
 		if (test) { \
-			pr_err("%s/%u: " msg, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
+			pr_err("%s/%u: " msg, __func__, __LINE__, ##__VA_ARGS__); \
 			return -EINVAL; \
 		} \
 	} while (0)
Signature · 1 line
2.28.0