All of lore.kernel.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: SeongJae Park <sj@kernel.org>,
	llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [sj:damon/next 52/104] mm/memory.c:6046:3: error: call to undeclared function 'damon_report_access'; ISO C99 and later do not support implicit function declarations
Date: Sat, 19 Jul 2025 10:06:38 -0700	[thread overview]
Message-ID: <20250719170638.64999-1-sj@kernel.org> (raw)
In-Reply-To: <202507192010.91NbXIjJ-lkp@intel.com>

Hello,

On Sat, 19 Jul 2025 21:05:04 +0800 kernel test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
> head:   587ffe894dbc4bdb791e375c50e446a32fba081a
> commit: cd52442f08196fc17179dc9a95b097df531203b7 [52/104] mm/memory: report fault information to DAMON
> config: i386-buildonly-randconfig-001-20250719 (https://download.01.org/0day-ci/archive/20250719/202507192010.91NbXIjJ-lkp@intel.com/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507192010.91NbXIjJ-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202507192010.91NbXIjJ-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
> >> mm/memory.c:6046:3: error: call to undeclared function 'damon_report_access'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>     6046 |                 damon_report_access(&access_report);
>          |                 ^
>    mm/memory.c:6176:5: error: call to undeclared function 'damon_report_access'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>     6176 |                                 damon_report_access(&access_report);
>          |                                 ^
>    2 errors generated.

Thank you for this report!  I just pushed below fix as
http://git.kernel.org/sj/c/5559267d916c.


Thanks,
SJ

===== >8 =====
Author: SeongJae Park <sj@kernel.org>
Date:   Sat Jul 19 09:58:13 2025 -0700

    mm/damon: implement static inline fake damon_report_access for !CONFIG_DAMON

    Reported-by: kernel test robot <lkp@intel.com>
    Closes: https://lore.kernel.org/oe-kbuild-all/202507192010.91NbXIjJ-lkp@intel.com/
    Signed-off-by: SeongJae Park <sj@kernel.org>

diff --git a/include/linux/damon.h b/include/linux/damon.h
index 8f6d370754c7..96f9d8c6fe0c 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -977,6 +977,13 @@ void damon_report_access(struct damon_access_report *report);
 int damon_set_region_biggest_system_ram_default(struct damon_target *t,
                                unsigned long *start, unsigned long *end);

+#else  /* CONFIG_DAMON */
+
+static inline void damon_report_access(struct damon_access_report *report)
+{
+       return;
+}
+
 #endif /* CONFIG_DAMON */

 #endif /* _DAMON_H */

      reply	other threads:[~2025-07-19 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-19 13:05 [sj:damon/next 52/104] mm/memory.c:6046:3: error: call to undeclared function 'damon_report_access'; ISO C99 and later do not support implicit function declarations kernel test robot
2025-07-19 17:06 ` SeongJae Park [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250719170638.64999-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.