mm/damon: convert macro functions to static inline functions
[linux-block.git] / mm / damon / vaddr.c
index 78ff2bcb66eb3c7455bcc3ecebfbce26d89c4aca..68d9e4134816dec76a69f13f73783473b7c2c911 100644 (file)
  * 't->id' should be the pointer to the relevant 'struct pid' having reference
  * count.  Caller must put the returned task, unless it is NULL.
  */
-#define damon_get_task_struct(t) \
-       (get_pid_task((struct pid *)t->id, PIDTYPE_PID))
+static inline struct task_struct *damon_get_task_struct(struct damon_target *t)
+{
+       return get_pid_task((struct pid *)t->id, PIDTYPE_PID);
+}
 
 /*
  * Get the mm_struct of the given target