From 70ecb564fd9f9acee231631757ce17c19c66d610 Mon Sep 17 00:00:00 2001 From: Soren Brinkmann Date: Thu, 14 Jan 2016 10:02:33 -0800 Subject: Migrate __warn_deprecated -> __deprecated Use the new __deprecated macro from the generic cdefs header and remove the deprecated __warn_deprecated. Signed-off-by: Soren Brinkmann --- include/plat/common/common_def.h | 7 ------- include/plat/common/platform.h | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'include/plat/common') diff --git a/include/plat/common/common_def.h b/include/plat/common/common_def.h index 744c22eb..916720c5 100644 --- a/include/plat/common/common_def.h +++ b/include/plat/common/common_def.h @@ -70,13 +70,6 @@ #define MAKE_ULL(x) x #endif -/* - * Macros to wrap declarations of deprecated APIs within Trusted Firmware. - * The callers of these APIs will continue to compile with a warning as long - * as the build flag ERROR_DEPRECATED is zero. - */ -#define __warn_deprecated __attribute__ ((deprecated)) - #define BL2_IMAGE_DESC { \ .image_id = BL2_IMAGE_ID, \ .image_info.h.version = VERSION_1, \ diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h index 687c2212..f37a80f3 100644 --- a/include/plat/common/platform.h +++ b/include/plat/common/platform.h @@ -273,7 +273,7 @@ unsigned int plat_get_aff_state(unsigned int, unsigned long); * haven't migrated to the new platform API to compile on platforms which * have the compatibility layer disabled. */ -unsigned int platform_get_core_pos(unsigned long mpidr) __warn_deprecated; +unsigned int platform_get_core_pos(unsigned long mpidr) __deprecated; #endif /* __ENABLE_PLAT_COMPAT__ */ #endif /* __PLATFORM_H__ */ -- cgit v1.2.3