]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-damon-implement-a-debugfs-based-user-space-interface-fix-fix
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 23 Aug 2021 23:59:48 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:34 +0000 (09:34 +1000)
replace macro with static inline

Cc: SeongJae Park <sjpark@amazon.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/damon/dbgfs.c

index 5e2c9b5e7eaceb1967a66ff84b74bec7374d7b30..d2e0a547eb3f4fdfc401d16b45e47101241e9e99 100644 (file)
@@ -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)
 {