Skip to content

Commit f2c5101

Browse files
Werkovakpm00
authored andcommitted
memcg: cleanup with !CONFIG_MEMCG_V1
Extern declarations have no definitions with !CONFIG_MEMCG_V1 and no users, drop them altogether. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Michal Koutný <[email protected]> Acked-by: Shakeel Butt <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: Chen Ridong <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Muchun Song <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Zefan Li <[email protected]> Cc: Waiman Long <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent fd00be9 commit f2c5101

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mm/memcontrol-v1.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ static inline bool memcg1_charge_skmem(struct mem_cgroup *memcg, unsigned int nr
154154
gfp_t gfp_mask) { return true; }
155155
static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) {}
156156

157-
extern struct cftype memsw_files[];
158-
extern struct cftype mem_cgroup_legacy_files[];
159157
#endif /* CONFIG_MEMCG_V1 */
160158

161159
#endif /* __MM_MEMCONTROL_V1_H */

0 commit comments

Comments
 (0)