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 29/33] mm/damon/acma.c:154:22: error: too few arguments to function call, expected 6, have 5
Date: Mon, 13 May 2024 23:16:45 +0800 [thread overview]
Message-ID: <202405132331.x5eUBFEP-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
head: 8babfaa14bfc8f45e2c3d093952ab737fd0db1d5
commit: 1465b25a340a8aa09800ddcf3d4aef185ea6c84c [29/33] mm/damon: add the initial part of access/contiguity-aware memory auto-scaling module
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20240513/202405132331.x5eUBFEP-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/20240513/202405132331.x5eUBFEP-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/202405132331.x5eUBFEP-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/damon/acma.c:19:
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:19:
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:19:
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:19:
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:154:22: error: too few arguments to function call, expected 6, have 5
146 | return damon_new_scheme(
| ~~~~~~~~~~~~~~~~
147 | pattern,
148 | action,
149 | /* work for every second */
150 | 1000000,
151 | /* under the quota. */
152 | "a,
153 | /* (De)activate this according to the watermarks. */
154 | &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:169:3: error: must use 'enum' tag to refer to type 'damos_quota_goal_metric'
169 | damos_quota_goal_metric goal_metric)
| ^
| enum
>> mm/damon/acma.c:173:2: error: use of undeclared identifier 'goal'
173 | goal = damos_new_quota_goal(goal_metric, quota_mem_pressure_us);
| ^
mm/damon/acma.c:174:7: error: use of undeclared identifier 'goal'
174 | if (!goal)
| ^
mm/damon/acma.c:176:39: error: use of undeclared identifier 'goal'
176 | damos_add_quota_goal(&scheme->quota, goal);
| ^
mm/damon/acma.c:206:27: warning: unused variable 'goal' [-Wunused-variable]
206 | struct damos_quota_goal *goal;
| ^~~~
mm/damon/acma.c:303:8: error: use of undeclared identifier 'DAMOS_LRU_RECLAIM'; did you mean 'DAMOS_LRU_DEPRIO'?
303 | case DAMOS_LRU_RECLAIM:
| ^~~~~~~~~~~~~~~~~
| DAMOS_LRU_DEPRIO
include/linux/damon.h:131:2: note: 'DAMOS_LRU_DEPRIO' declared here
131 | DAMOS_LRU_DEPRIO,
| ^
mm/damon/acma.c:314:1: error: function definition is not allowed here
314 | {
| ^
mm/damon/acma.c:319:1: error: function definition is not allowed here
319 | {
| ^
mm/damon/acma.c:335:13: error: use of undeclared identifier 'damon_acma_init'
335 | module_init(damon_acma_init);
| ^
mm/damon/acma.c:335:30: error: expected '}'
335 | module_init(damon_acma_init);
| ^
mm/damon/acma.c:297:1: note: to match this '{'
297 | {
| ^
8 warnings and 10 errors generated.
vim +154 mm/damon/acma.c
140
141 static struct damos *damon_acma_new_scheme(
142 struct damos_access_pattern *pattern, enum damos_action action)
143 {
144 struct damos_quota quota = damon_acma_quota;
145
146 return damon_new_scheme(
147 pattern,
148 action,
149 /* work for every second */
150 1000000,
151 /* under the quota. */
152 "a,
153 /* (De)activate this according to the watermarks. */
> 154 &damon_acma_wmarks);
155 }
156
157 static void damon_acma_copy_quota_status(struct damos_quota *dst,
158 struct damos_quota *src)
159 {
160 dst->total_charged_sz = src->total_charged_sz;
161 dst->total_charged_ns = src->total_charged_ns;
162 dst->charged_sz = src->charged_sz;
163 dst->charged_from = src->charged_from;
164 dst->charge_target_from = src->charge_target_from;
165 dst->charge_addr_from = src->charge_addr_from;
166 }
167
168 static int damon_acma_set_scheme_quota(struct damos *scheme, struct damos *old,
> 169 damos_quota_goal_metric goal_metric)
170 {
171 if (old)
172 damon_acma_copy_quota_status(&scheme->quota, &old->quota);
> 173 goal = damos_new_quota_goal(goal_metric, quota_mem_pressure_us);
174 if (!goal)
175 return -ENOMEM;
176 damos_add_quota_goal(&scheme->quota, goal);
177 return 0;
178 }
179
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-13 15:18 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=202405132331.x5eUBFEP-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).