From: kernel test robot <lkp@intel.com>
To: SeongJae Park <sj@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [sj:damon/next 32/33] mm/damon/acma.c:62:14: error: use of undeclared identifier 'max_mem'
Date: Tue, 14 May 2024 17:50:44 +0800 [thread overview]
Message-ID: <202405141712.IN8VzCy4-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
head: 8babfaa14bfc8f45e2c3d093952ab737fd0db1d5
commit: 9c0c2a5550718fd72b4384589be3b4c470a85502 [32/33] mm/damon/acma: implement scale up feature
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20240514/202405141712.IN8VzCy4-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project b910bebc300dafb30569cecc3017b446ea8eafa0)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240514/202405141712.IN8VzCy4-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/202405141712.IN8VzCy4-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/damon/acma.c:16:
In file included from include/linux/damon.h:11:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/hexagon/include/asm/io.h:328:
include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
548 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
561 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from mm/damon/acma.c:16:
In file included from include/linux/damon.h:11:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/hexagon/include/asm/io.h:328:
include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
574 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from mm/damon/acma.c:16:
In file included from include/linux/damon.h:11:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/hexagon/include/asm/io.h:328:
include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
585 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
595 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
605 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
In file included from mm/damon/acma.c:16:
In file included from include/linux/damon.h:11:
In file included from include/linux/memcontrol.h:21:
In file included from include/linux/mm.h:2253:
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
mm/damon/acma.c:55:14: error: use of undeclared identifier 'min_mem'
55 | module_param(min_mem, ulong, 0600);
| ^
mm/damon/acma.c:55:14: error: use of undeclared identifier 'min_mem'
>> mm/damon/acma.c:62:14: error: use of undeclared identifier 'max_mem'
62 | module_param(max_mem, ulong, 0600);
| ^
>> mm/damon/acma.c:62:14: error: use of undeclared identifier 'max_mem'
mm/damon/acma.c:190:22: error: too few arguments to function call, expected 6, have 5
182 | return damon_new_scheme(
| ~~~~~~~~~~~~~~~~
183 | pattern,
184 | action,
185 | /* work for every second */
186 | 1000000,
187 | /* under the quota. */
188 | "a,
189 | /* (De)activate this according to the watermarks. */
190 | &damon_acma_wmarks);
| ^
include/linux/damon.h:770:15: note: 'damon_new_scheme' declared here
770 | struct damos *damon_new_scheme(struct damos_access_pattern *pattern,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
771 | enum damos_action action,
| ~~~~~~~~~~~~~~~~~~~~~~~~~
772 | unsigned long apply_interval_us,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
773 | struct damos_quota *quota,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
774 | struct damos_watermarks *wmarks,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
775 | int target_nid);
| ~~~~~~~~~~~~~~
mm/damon/acma.c:205:3: error: must use 'enum' tag to refer to type 'damos_quota_goal_metric'
205 | damos_quota_goal_metric goal_metric)
| ^
| enum
mm/damon/acma.c:209:2: error: use of undeclared identifier 'goal'
209 | goal = damos_new_quota_goal(goal_metric, quota_mem_pressure_us);
| ^
mm/damon/acma.c:210:7: error: use of undeclared identifier 'goal'
210 | if (!goal)
| ^
mm/damon/acma.c:212:39: error: use of undeclared identifier 'goal'
212 | damos_add_quota_goal(&scheme->quota, goal);
| ^
mm/damon/acma.c:245:52: error: use of undeclared identifier 'KB'
245 | start_limit = monitor_region_start + min_mem_kb * KB;
| ^
mm/damon/acma.c:248:45: error: use of undeclared identifier 'MB'
248 | for (end = end_limit; end >= start_limit + SCALE_WINDOW;
| ^
mm/damon/acma.c:220:29: note: expanded from macro 'SCALE_WINDOW'
220 | #define SCALE_WINDOW (128 * MB)
| ^
mm/damon/acma.c:249:11: error: use of undeclared identifier 'MB'
249 | end -= SCALE_WINDOW) {
| ^
mm/damon/acma.c:220:29: note: expanded from macro 'SCALE_WINDOW'
220 | #define SCALE_WINDOW (128 * MB)
| ^
mm/damon/acma.c:250:7: error: call to undeclared function 'damon_alloced_bytes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
250 | if (damon_alloced_bytes(end, end - SCALE_WINDOW)
| ^
mm/damon/acma.c:250:38: error: use of undeclared identifier 'MB'
250 | if (damon_alloced_bytes(end, end - SCALE_WINDOW)
| ^
mm/damon/acma.c:220:29: note: expanded from macro 'SCALE_WINDOW'
220 | #define SCALE_WINDOW (128 * MB)
| ^
mm/damon/acma.c:251:8: error: use of undeclared identifier 'MB'
251 | != SCALE_WINDOW)
| ^
mm/damon/acma.c:220:29: note: expanded from macro 'SCALE_WINDOW'
220 | #define SCALE_WINDOW (128 * MB)
| ^
mm/damon/acma.c:254:52: error: use of undeclared identifier 'MB'
254 | filter->addr_range.start = max(start_limit, end - SCALE_WINDOW);
| ^
mm/damon/acma.c:220:29: note: expanded from macro 'SCALE_WINDOW'
220 | #define SCALE_WINDOW (128 * MB)
| ^
mm/damon/acma.c:276:41: error: use of undeclared identifier 'KB'
276 | end_limit = start_limit + max_mem_kb * KB;
| ^
mm/damon/acma.c:279:49: error: use of undeclared identifier 'MB'
279 | for (start = start_limit; start <= end_limit - SCALE_WINDOW;
| ^
mm/damon/acma.c:220:29: note: expanded from macro 'SCALE_WINDOW'
220 | #define SCALE_WINDOW (128 * MB)
| ^
mm/damon/acma.c:280:13: error: use of undeclared identifier 'MB'
280 | start += SCALE_WINDOW) {
| ^
mm/damon/acma.c:220:29: note: expanded from macro 'SCALE_WINDOW'
220 | #define SCALE_WINDOW (128 * MB)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
vim +/max_mem +62 mm/damon/acma.c
56
57 /*
58 * Maximum amount of memory to be guaranteed to the system. In other words,
59 * the upper limit of the scaling.
60 */
61 static unsigned long max_mem_kb __read_mostly;
> 62 module_param(max_mem, ulong, 0600);
63
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-14 9:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202405141712.IN8VzCy4-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sj@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).