Skip to content

Commit f9366f4

Browse files
committed
include/linux/migrate.h: remove unneeded externs
As suggested by Matthew. Suggested-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 32cf666 commit f9366f4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/linux/migrate.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ extern const char *migrate_reason_names[MR_TYPES];
6262

6363
#ifdef CONFIG_MIGRATION
6464

65-
extern void putback_movable_pages(struct list_head *l);
65+
void putback_movable_pages(struct list_head *l);
6666
int migrate_folio_extra(struct address_space *mapping, struct folio *dst,
6767
struct folio *src, enum migrate_mode mode, int extra_count);
6868
int migrate_folio(struct address_space *mapping, struct folio *dst,
6969
struct folio *src, enum migrate_mode mode);
70-
extern int migrate_pages(struct list_head *l, new_page_t new, free_page_t free,
71-
unsigned long private, enum migrate_mode mode, int reason,
72-
unsigned int *ret_succeeded);
73-
extern struct page *alloc_migration_target(struct page *page, unsigned long private);
74-
extern bool isolate_movable_page(struct page *page, isolate_mode_t mode);
70+
int migrate_pages(struct list_head *l, new_page_t new, free_page_t free,
71+
unsigned long private, enum migrate_mode mode, int reason,
72+
unsigned int *ret_succeeded);
73+
struct page *alloc_migration_target(struct page *page, unsigned long private);
74+
bool isolate_movable_page(struct page *page, isolate_mode_t mode);
7575

7676
int migrate_huge_page_move_mapping(struct address_space *mapping,
7777
struct folio *dst, struct folio *src);
@@ -142,8 +142,8 @@ const struct movable_operations *page_movable_ops(struct page *page)
142142
}
143143

144144
#ifdef CONFIG_NUMA_BALANCING
145-
extern int migrate_misplaced_page(struct page *page,
146-
struct vm_area_struct *vma, int node);
145+
int migrate_misplaced_page(struct page *page, struct vm_area_struct *vma,
146+
int node);
147147
#else
148148
static inline int migrate_misplaced_page(struct page *page,
149149
struct vm_area_struct *vma, int node)

0 commit comments

Comments
 (0)