public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [riteshharjani:kfence-fix-wip6 9/10] arch/powerpc/include/asm/kfence.h:41:13: error: expected parameter declarator
@ 2024-07-29 23:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-29 23:02 UTC (permalink / raw)
  To: Ritesh Harjani (IBM); +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-29 23:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-29 23:02 [riteshharjani:kfence-fix-wip6 9/10] arch/powerpc/include/asm/kfence.h:41:13: error: expected parameter declarator kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox