Skip to contentSkip to conversation

mm, swap: Remove unused function prototype

PATCH Applied Huang, Ying 2 participants 2 messages Apr 5, 2017 – May 10, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm, swap: Remove unused function prototype

From: Huang Ying <[email protected]>

This is a code cleanup patch, no functionality changes. There are 2 unused function prototype in swap.h, they are removed.

---
 include/linux/swap.h | 3 ---
 1 file changed, 3 deletions(-)
include/linux/swap.h +0 -3
index 486494e6b2fc..ba5882419a7d 100644
@@ -411,9 +411,6 @@ struct backing_dev_info;
 extern int init_swap_address_space(unsigned int type, unsigned long nr_pages);
 extern void exit_swap_address_space(unsigned int type);
 
-extern int get_swap_slots(int n, swp_entry_t *slots);
-extern void swapcache_free_batch(swp_entry_t *entries, int n);
-
 #else /* CONFIG_SWAP */
 
 #define swap_address_space(entry)		(NULL)
Signature · 7 lines
2.11.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Ying

From: Huang Ying <[email protected]>

This is a code cleanup patch, no functionality changes. There are 2 unused function prototype in swap.h, they are removed.

---
include/linux/swap.h | 3 ---

1 file changed, 3 deletions(-)
include/linux/swap.h +0 -3
index 486494e6b2fc..ba5882419a7d 100644
@@ -411,9 +411,6 @@ struct backing_dev_info;
 extern int init_swap_address_space(unsigned int type, unsigned long nr_pages);
 extern void exit_swap_address_space(unsigned int type);
 
-extern int get_swap_slots(int n, swp_entry_t *slots);
-extern void swapcache_free_batch(swp_entry_t *entries, int n);
-
 #else /* CONFIG_SWAP */
 
 #define swap_address_space(entry)		(NULL)
Signature · 1 line
2.11.0
Signature · 2 lines
Wei Yang
Help you, Help me