From: kernel test robot <lkp@intel.com>
To: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [riteshharjani:kfence-fix-wip6 9/10] arch/powerpc/include/asm/kfence.h:41:13: error: expected parameter declarator
Date: Tue, 30 Jul 2024 07:02:31 +0800 [thread overview]
Message-ID: <202407300647.62hbTyOX-lkp@intel.com> (raw)
tree: https://github.com/riteshharjani/linux kfence-fix-wip6
head: 232bab42e9b7dd1051658608c6ee254ee53cf09e
commit: 72786c184ded2eb5805eb7fa17497ff9e85d6833 [9/10] kfence refactor
config: powerpc64-randconfig-002-20240730 (https://download.01.org/0day-ci/archive/20240730/202407300647.62hbTyOX-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project ccae7b461be339e717d02f99ac857cf0bc7d17fc)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240730/202407300647.62hbTyOX-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/202407300647.62hbTyOX-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/kfence/kfence_test.c:17:
In file included from include/linux/kfence.h:12:
In file included from include/linux/mm.h:2253:
include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
500 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
501 | item];
| ~~~~
include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
507 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
508 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
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_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
519 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
520 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
528 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
529 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from mm/kfence/kfence_test.c:26:
>> arch/powerpc/include/asm/kfence.h:41:13: error: expected parameter declarator
41 | early_param("kfence.sample_interval", parse_kfence_early_init);
| ^
>> arch/powerpc/include/asm/kfence.h:41:13: error: expected ')'
arch/powerpc/include/asm/kfence.h:41:12: note: to match this '('
41 | early_param("kfence.sample_interval", parse_kfence_early_init);
| ^
>> arch/powerpc/include/asm/kfence.h:41:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
41 | early_param("kfence.sample_interval", parse_kfence_early_init);
| ^
| int
>> arch/powerpc/include/asm/kfence.h:41:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
41 | early_param("kfence.sample_interval", parse_kfence_early_init);
| ^
| void
5 warnings and 4 errors generated.
vim +41 arch/powerpc/include/asm/kfence.h
32
33 static inline int parse_kfence_early_init(char *arg)
34 {
35 int val;
36
37 if (get_option(&arg, &val))
38 kfence_early_init = !!val;
39 return 0;
40 }
> 41 early_param("kfence.sample_interval", parse_kfence_early_init);
42 #endif
43
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-29 23:03 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=202407300647.62hbTyOX-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ritesh.list@gmail.com \
/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