ANDROID: Add padding to kunit_resource struct

The kunit_resource struct will be part of the ABI surface when kunit
symbols are exported. This calls for adding padding to any structs which
will become part of the KMI.

Bug: 361584207
Change-Id: I08bd80412ab62c2d14d2e40c842f4a4202bb2fae
Signed-off-by: Sid Nayyar <sidnayyar@google.com>
This commit is contained in:
Sid Nayyar 2024-08-28 09:57:36 +00:00
parent 7c9ee87357
commit c4b2c04485

View File

@ -15,6 +15,7 @@
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/android_kabi.h>
struct kunit_resource;
@ -89,6 +90,8 @@ struct kunit_resource {
struct kref refcount;
struct list_head node;
bool should_kfree;
ANDROID_KABI_RESERVE(1);
};
/**