Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit c4b2c04

Browse files
author
Sid Nayyar
committed
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 <[email protected]>
1 parent 7c9ee87 commit c4b2c04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/kunit/resource.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/list.h>
1616
#include <linux/slab.h>
1717
#include <linux/spinlock.h>
18+
#include <linux/android_kabi.h>
1819

1920
struct kunit_resource;
2021

@@ -89,6 +90,8 @@ struct kunit_resource {
8990
struct kref refcount;
9091
struct list_head node;
9192
bool should_kfree;
93+
94+
ANDROID_KABI_RESERVE(1);
9295
};
9396

9497
/**

0 commit comments

Comments
 (0)