Commit bfc6b1ca authored by Colin Ian King's avatar Colin Ian King Committed by Linus Torvalds

mm/swapfile.c: make pointer swap_avail_heads static

The pointer swap_avail_heads is local to the source and does not need to
be in global scope, so make it static.

Cleans up sparse warning:

  mm/swapfile.c:88:19: warning: symbol 'swap_avail_heads' was not declared. Should it be static?

Link: http://lkml.kernel.org/r/20180206215836.12366-1-colin.king@canonical.comSigned-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatar"Huang, Ying" <ying.huang@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4eaf431f
...@@ -85,7 +85,7 @@ PLIST_HEAD(swap_active_head); ...@@ -85,7 +85,7 @@ PLIST_HEAD(swap_active_head);
* is held and the locking order requires swap_lock to be taken * is held and the locking order requires swap_lock to be taken
* before any swap_info_struct->lock. * before any swap_info_struct->lock.
*/ */
struct plist_head *swap_avail_heads; static struct plist_head *swap_avail_heads;
static DEFINE_SPINLOCK(swap_avail_lock); static DEFINE_SPINLOCK(swap_avail_lock);
struct swap_info_struct *swap_info[MAX_SWAPFILES]; struct swap_info_struct *swap_info[MAX_SWAPFILES];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment