Skip to content

Commit

Permalink
drivers: base: Add prototype declaration to the header file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rashika Kheria authored and Greg Kroah-Hartman committed Dec 20, 2013
1 parent 880ae35 commit 41f1072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct memory_block {
};

int arch_get_memory_phys_device(unsigned long start_pfn);
unsigned long __weak memory_block_size_bytes(void);

/* These states are exposed to userspace as text strings in sysfs */
#define MEM_ONLINE (1<<0) /* exposed to userspace */
Expand Down

0 comments on commit 41f1072

Please sign in to comment.