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>
Showing
- arch/parisc/include/asm/pgtable.h 0 additions, 3 deletionsarch/parisc/include/asm/pgtable.h
- arch/powerpc/include/asm/pgtable.h 0 additions, 3 deletionsarch/powerpc/include/asm/pgtable.h
- arch/s390/include/asm/pgtable.h 0 additions, 3 deletionsarch/s390/include/asm/pgtable.h
- arch/s390/mm/pageattr.c 1 addition, 0 deletionsarch/s390/mm/pageattr.c
- arch/x86/include/asm/pgtable.h 1 addition, 0 deletionsarch/x86/include/asm/pgtable.h
- arch/x86/include/asm/pgtable_types.h 0 additions, 3 deletionsarch/x86/include/asm/pgtable_types.h
- arch/x86/mm/pat/set_memory.c 1 addition, 0 deletionsarch/x86/mm/pat/set_memory.c
- include/linux/proc_fs.h 2 additions, 0 deletionsinclude/linux/proc_fs.h
Loading
Please register or sign in to comment