diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-05-16 21:57:29 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-05-17 09:24:49 +0200 |
commit | ef104443bffa004f631729dfc924f0b84abbd602 (patch) | |
tree | 16882eae50d998a53ce28063c947ba8fa1aa2337 /arch/x86/mm | |
parent | fs: pipe: reveal missing function protoypes (diff) | |
download | linux-ef104443bffa004f631729dfc924f0b84abbd602.tar.xz linux-ef104443bffa004f631729dfc924f0b84abbd602.zip |
procfs: consolidate arch_report_meminfo declaration
The arch_report_meminfo() function is provided by four architectures,
with a __weak fallback in procfs itself. On architectures that don't
have a custom version, the __weak version causes a warning because
of the missing prototype.
Remove the architecture specific prototypes and instead add one
in linux/proc_fs.h.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com> # for arch/x86
Acked-by: Helge Deller <deller@gmx.de> # parisc
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Message-Id: <20230516195834.551901-1-arnd@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/pat/set_memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index 7159cf787613..d1515756e369 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -9,6 +9,7 @@ #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/seq_file.h> +#include <linux/proc_fs.h> #include <linux/debugfs.h> #include <linux/pfn.h> #include <linux/percpu.h> |