Message ID | 20250305130955.24658-2-ddiss@suse.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | initramfs_test: flag kunit_case __refdata to suppress warning | expand |
On Thu, 06 Mar 2025 00:09:56 +1100, David Disseldorp wrote: > We already have a comment regarding why .data -> .init references are > present for initramfs_test_cases[]. This allows us to suppress the > modpost warning. > > Folded, thanks! --- Applied to the vfs-6.15.initramfs branch of the vfs/vfs.git tree. Patches in the vfs-6.15.initramfs branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs-6.15.initramfs [1/1] initramfs_test: flag kunit_case __refdata to suppress warning (no commit info)
diff --git a/init/initramfs_test.c b/init/initramfs_test.c index 6231fe0125831..696fff583ee42 100644 --- a/init/initramfs_test.c +++ b/init/initramfs_test.c @@ -387,7 +387,7 @@ static void __init initramfs_test_many(struct kunit *test) * The kunit_case/_suite struct cannot be marked as __initdata as this will be * used in debugfs to retrieve results after test has run. */ -static struct kunit_case initramfs_test_cases[] = { +static struct kunit_case __refdata initramfs_test_cases[] = { KUNIT_CASE(initramfs_test_extract), KUNIT_CASE(initramfs_test_fname_overrun), KUNIT_CASE(initramfs_test_data),
We already have a comment regarding why .data -> .init references are present for initramfs_test_cases[]. This allows us to suppress the modpost warning. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202503050109.t5Ab93hX-lkp@intel.com/ Suggested-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David Disseldorp <ddiss@suse.de> --- @Christian: feel free to squash this in with commit b6736cfccb582 ("initramfs_test: kunit tests for initramfs unpacking") in your vfs-6.15.initramfs branch if you like (and remove "These tests introduce new modpost warnings..." from the commit msg). init/initramfs_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)