ANDROID: Add padding to kunit structures exposed on the KMI

This is ensure that these are picked up for the next Android release.

Bug: 361584207
Change-Id: I4c7e3ed0a70e096c79d0dae8b660b6f5889e5343
Signed-off-by: Sid Nayyar <sidnayyar@google.com>
This commit is contained in:
Sid Nayyar
2024-08-29 15:23:18 +00:00
committed by Treehugger Robot
parent 2cdc3da728
commit 5677cab2b2
5 changed files with 24 additions and 1 deletions
+6 -1
View File
@@ -11,6 +11,7 @@
#include <linux/err.h>
#include <linux/printk.h>
#include <linux/android_kabi.h>
struct kunit;
struct string_stream;
@@ -36,6 +37,8 @@ enum kunit_assert_type {
struct kunit_loc {
int line;
const char *file;
ANDROID_KABI_RESERVE(1);
};
#define KUNIT_CURRENT_LOC { .file = __FILE__, .line = __LINE__ }
@@ -46,7 +49,9 @@ struct kunit_loc {
* Represents a failed expectation/assertion. Contains all the data necessary to
* format a string to a user reporting the failure.
*/
struct kunit_assert {};
struct kunit_assert {
ANDROID_KABI_RESERVE(1);
};
typedef void (*assert_format_t)(const struct kunit_assert *assert,
const struct va_format *message,