* + init-fix-build-warnings-about-exporth.patch added to mm-hotfixes-unstable branch
@ 2025-06-09 2:31 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-06-09 2:31 UTC (permalink / raw)
To: mm-commits, viro, masahiroy, jack, brauner, chenhuacai, akpm
The patch titled
Subject: init: fix build warnings about export.h
has been added to the -mm mm-hotfixes-unstable branch. Its filename is
init-fix-build-warnings-about-exporth.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/init-fix-build-warnings-about-exporth.patch
This patch will later appear in the mm-hotfixes-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Huacai Chen <chenhuacai@loongson.cn>
Subject: init: fix build warnings about export.h
Date: Sun, 8 Jun 2025 22:12:35 +0800
After commit a934a57a42f64a4 ("scripts/misc-check: check missing #include
<linux/export.h> when W=1") and 7d95680d64ac8e836c ("scripts/misc-check:
check unnecessary #include <linux/export.h> when W=1"), we get some build
warnings with W=1:
init/main.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
init/initramfs.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
So fix these build warnings for the init code.
Link: https://lkml.kernel.org/r/20250608141235.155206-1-chenhuacai@loongson.cn
Fixes: a934a57a42f64a4 ("scripts/misc-check: check missing #include <linux/export.h> when W=1")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
init/initramfs.c | 1 +
init/main.c | 1 +
2 files changed, 2 insertions(+)
--- a/init/initramfs.c~init-fix-build-warnings-about-exporth
+++ a/init/initramfs.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/init.h>
#include <linux/async.h>
+#include <linux/export.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/types.h>
--- a/init/main.c~init-fix-build-warnings-about-exporth
+++ a/init/main.c
@@ -13,6 +13,7 @@
#define DEBUG /* Enable initcall_debug */
#include <linux/types.h>
+#include <linux/export.h>
#include <linux/extable.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
_
Patches currently in -mm which might be from chenhuacai@loongson.cn are
init-fix-build-warnings-about-exporth.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-09 2:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-09 2:31 + init-fix-build-warnings-about-exporth.patch added to mm-hotfixes-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.