Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: base: Add prototype declaration to the header file

Add prototype declaration of function memory_block_size_bytes() to
the header file include/linux/memory.h.

This eliminates the following warning in memory.c:
drivers/base/memory.c:87:1: warning: no previous prototype for ‘memory_block_size_bytes’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rashika Kheria and committed by
Greg Kroah-Hartman
41f10726 880ae359

+1
+1
include/linux/memory.h
··· 35 35 }; 36 36 37 37 int arch_get_memory_phys_device(unsigned long start_pfn); 38 + unsigned long __weak memory_block_size_bytes(void); 38 39 39 40 /* These states are exposed to userspace as text strings in sysfs */ 40 41 #define MEM_ONLINE (1<<0) /* exposed to userspace */