Merge "Annotate LLNDK functions in non-vendor libraries" into main am: d0e8eab404

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2988249

Change-Id: I4519224a11c8a1e87a3744f7c34c10b5db442fa0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Hsin-Yi Chen 2024-03-05 11:43:52 +00:00 committed by Automerger Merge Worker
commit ec15e9247b

View file

@ -40,8 +40,10 @@ __BEGIN_DECLS
#else // __ANDROID_VENDOR__
// For non-vendor libraries, __INTRODUCED_IN_LLNDK must be ignored because it must not change
// symbols of NDK or the system side of the treble boundary.
#define __INTRODUCED_IN_LLNDK(vendor_api_level)
// symbols of NDK or the system side of the treble boundary. It leaves a no-op annotation for ABI
// analysis.
#define __INTRODUCED_IN_LLNDK(vendor_api_level) \
__attribute__((annotate("introduced_in_llndk=" #vendor_api_level)))
#endif // __ANDROID_VENDOR__