From b3044aa54c441809f72ef2d6b3963b51f7689aee Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 24 Aug 2021 09:59:48 +1000 Subject: [PATCH] mm-damon-implement-a-debugfs-based-user-space-interface-fix-fix replace macro with static inline Cc: SeongJae Park Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- mm/damon/dbgfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/damon/dbgfs.c b/mm/damon/dbgfs.c index 5e2c9b5e7eac..d2e0a547eb3f 100644 --- a/mm/damon/dbgfs.c +++ b/mm/damon/dbgfs.c @@ -97,8 +97,10 @@ out: return ret; } -#define targetid_is_pid(ctx) \ - (ctx->primitive.target_valid == damon_va_target_valid) +static inline bool targetid_is_pid(const struct damon_ctx *ctx) +{ + return ctx->primitive.target_valid == damon_va_target_valid; +} static ssize_t sprint_target_ids(struct damon_ctx *ctx, char *buf, ssize_t len) { -- 2.50.1