History

include/linux/compaction.h: fix potential build error

Declaration of struct node is required regardless. On UMA systems, including compaction.h without preceding node.h shouldn't cause a build error.

Yu Zhao committed 7 years ago

Commit ace451e1 parent daf35381 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/compaction.h+1−1
@@ -226,8 +226,8 @@ static inline void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_i · 225 unmodified lines
226 226
227#endif /* CONFIG_COMPACTION */227#endif /* CONFIG_COMPACTION */
228 228
229#if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA)
230struct node;229struct node;
230#if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA)
231extern int compaction_register_node(struct node *node);231extern int compaction_register_node(struct node *node);
232extern void compaction_unregister_node(struct node *node);232extern void compaction_unregister_node(struct node *node);
233 233

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t