Revert "ANDROID: Add padding to kunit structures exposed on the KMI"

This reverts commit 5677cab2b2.

It causes build errors with upstream 'rust-fixes-6.15-merge' merge and
can be reconsidered later if needed.

Bug: 410759397
Change-Id: Iabbf41b7dd098b9b83d4cd940e4a3c714cb3e125
Cc: Sid Nayyar <sidnayyar@google.com>
Signed-off-by: Tudor Ambarus <tudordana@google.com>
This commit is contained in:
Tudor Ambarus authored and Treehugger Robot committed 2025-04-17 18:42:10 -07:00
1 parent 02260686f0
commit 1064be81d6
5 files changed
+1 -24

No files matched your search

+1 -6
View File
@@ -11,7 +11,6 @@
#include <linux/err.h>
#include <linux/printk.h>
#include <linux/android_kabi.h>
struct kunit;
struct string_stream;
@@ -37,8 +36,6 @@ enum kunit_assert_type {
struct kunit_loc {
int line;
const char *file;
ANDROID_KABI_RESERVE(1);
};
#define KUNIT_CURRENT_LOC { .file = __FILE__, .line = __LINE__ }
@@ -49,9 +46,7 @@ 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 {
ANDROID_KABI_RESERVE(1);
};
struct kunit_assert {};
typedef void (*assert_format_t)(const struct kunit_assert *assert,
const struct va_format *message,
-3
View File
@@ -15,7 +15,6 @@
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/android_kabi.h>
struct kunit_resource;
@@ -90,8 +89,6 @@ struct kunit_resource {
struct kref refcount;
struct list_head node;
bool should_kfree;
ANDROID_KABI_RESERVE(1);
};
/**
-3
View File
@@ -15,7 +15,6 @@
#include <linux/jump_label.h> /* For static branch */
#include <linux/sched.h>
#include <linux/android_kabi.h>
/* Static key if KUnit is running any tests. */
DECLARE_STATIC_KEY_FALSE(kunit_running);
@@ -24,8 +23,6 @@ DECLARE_STATIC_KEY_FALSE(kunit_running);
extern struct kunit_hooks_table {
__printf(3, 4) void (*fail_current_test)(const char*, int, const char*, ...);
void *(*get_static_stub_address)(struct kunit *test, void *real_fn_addr);
ANDROID_KABI_RESERVE(1);
} kunit_hooks;
/**
-9
View File
@@ -26,7 +26,6 @@
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/android_kabi.h>
#include <asm/rwonce.h>
#include <asm/sections.h>
@@ -84,8 +83,6 @@ enum kunit_speed {
/* Holds attributes for each test case and suite */
struct kunit_attributes {
enum kunit_speed speed;
ANDROID_KABI_RESERVE(1);
};
/**
@@ -136,8 +133,6 @@ struct kunit_case {
enum kunit_status status;
char *module_name;
struct string_stream *log;
ANDROID_KABI_RESERVE(1);
};
static inline char *kunit_status_to_ok_not_ok(enum kunit_status status)
@@ -260,8 +255,6 @@ struct kunit_suite {
struct string_stream *log;
int suite_init_err;
bool is_init;
ANDROID_KABI_RESERVE(1);
};
/* Stores an array of suites, end points one past the end */
@@ -311,8 +304,6 @@ struct kunit {
char status_comment[KUNIT_STATUS_COMMENT_SIZE];
/* Saves the last seen test. Useful to help with faults. */
struct kunit_loc last_seen;
ANDROID_KABI_RESERVE(1);
};
static inline void kunit_set_failure(struct kunit *test)
-3
View File
@@ -11,7 +11,6 @@
#define _KUNIT_TRY_CATCH_H
#include <linux/types.h>
#include <linux/android_kabi.h>
typedef void (*kunit_try_catch_func_t)(void *);
@@ -49,8 +48,6 @@ struct kunit_try_catch {
kunit_try_catch_func_t try;
kunit_try_catch_func_t catch;
void *context;
ANDROID_KABI_RESERVE(1);
};
void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context);