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

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
226226
227227 #endif /* CONFIG_COMPACTION */
228228
229−#if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA)
230229 struct node;
230+#if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA)
231231 extern int compaction_register_node(struct node *node);
232232 extern void compaction_unregister_node(struct node *node);
233233

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