History

mm/damon: remove some unneeded function definitions in damon.h

In damon.h some func definitions about VA & PA can only be used in its own file, so there no need to define in the header file, and the header file will look cleaner. If other files later need these functions, the prototypes can be added to damon.h at that time. [sj@kernel.org: remove unnecessary function prototype position changes] Link: https://lkml.kernel.org/r/20211118114827.20052-1-sj@kernel.org

Xin Hao committed 4 years ago

Commit cdeed001 parent d720bbb3 files · +16 −34Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/damon.h+0−21
@@ -461,34 +461,13 @@ int damon_stop(struct damon_ctx **ctxs, int nr_ctxs); · 460 unmodified lines
461461 #endif /* CONFIG_DAMON */
462462
463463 #ifdef CONFIG_DAMON_VADDR
464−
465−/* Monitoring primitives for virtual memory address spaces */
466−void damon_va_init(struct damon_ctx *ctx);
467−void damon_va_update(struct damon_ctx *ctx);
468−void damon_va_prepare_access_checks(struct damon_ctx *ctx);
469−unsigned int damon_va_check_accesses(struct damon_ctx *ctx);
470464 bool damon_va_target_valid(void *t);
471−void damon_va_cleanup(struct damon_ctx *ctx);
472−int damon_va_apply_scheme(struct damon_ctx *context, struct damon_target *t,
473− struct damon_region *r, struct damos *scheme);
474−int damon_va_scheme_score(struct damon_ctx *context, struct damon_target *t,
475− struct damon_region *r, struct damos *scheme);
476465 void damon_va_set_primitives(struct damon_ctx *ctx);
477−
478466 #endif /* CONFIG_DAMON_VADDR */
479467
480468 #ifdef CONFIG_DAMON_PADDR
481−
482−/* Monitoring primitives for the physical memory address space */
483−void damon_pa_prepare_access_checks(struct damon_ctx *ctx);
484−unsigned int damon_pa_check_accesses(struct damon_ctx *ctx);
485469 bool damon_pa_target_valid(void *t);
486−int damon_pa_apply_scheme(struct damon_ctx *context, struct damon_target *t,
487− struct damon_region *r, struct damos *scheme);
488−int damon_pa_scheme_score(struct damon_ctx *context, struct damon_target *t,
489− struct damon_region *r, struct damos *scheme);
490470 void damon_pa_set_primitives(struct damon_ctx *ctx);
491−
492471 #endif /* CONFIG_DAMON_PADDR */
493472
494473 #endif /* _DAMON_H */

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