linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 195/196] mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void ...
@ 2025-04-16  7:21 kernel test robot
  2025-04-16 16:26 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-04-16  7:21 UTC (permalink / raw)
  To: Vitaly Wool
  Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Igor Belousov

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   13ef12753ee527caca620af5ab72ef6249c20622
commit: 40d54ac31c6e801d94f2563158650b69c15fbf82 [195/196] mm: add zblock allocator
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250416/202504161517.KYEDQav9-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250416/202504161517.KYEDQav9-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/202504161517.KYEDQav9-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void *, size_t, gfp_t, unsigned long *)' (aka 'int (void *, unsigned int, unsigned int, unsigned long *)') [-Wincompatible-function-pointer-types]
     369 |         .malloc =               zblock_zpool_malloc,
         |                                 ^~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +369 mm/zblock.c

   363	
   364	static struct zpool_driver zblock_zpool_driver = {
   365		.type =			"zblock",
   366		.owner =		THIS_MODULE,
   367		.create =		zblock_zpool_create,
   368		.destroy =		zblock_zpool_destroy,
 > 369		.malloc =		zblock_zpool_malloc,
   370		.free =			zblock_zpool_free,
   371		.obj_read_begin =	zblock_zpool_read_begin,
   372		.obj_read_end =		zblock_zpool_read_end,
   373		.obj_write =		zblock_zpool_obj_write,
   374		.total_pages =		zblock_zpool_total_pages,
   375	};
   376	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [akpm-mm:mm-new 195/196] mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void ...
  2025-04-16  7:21 [akpm-mm:mm-new 195/196] mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void kernel test robot
@ 2025-04-16 16:26 ` Andrew Morton
  2025-04-16 22:23   ` Igor Belousov
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2025-04-16 16:26 UTC (permalink / raw)
  To: kernel test robot
  Cc: Vitaly Wool, llvm, oe-kbuild-all, Linux Memory Management List,
	Igor Belousov

On Wed, 16 Apr 2025 15:21:24 +0800 kernel test robot <lkp@intel.com> wrote:

> 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/202504161517.KYEDQav9-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
> >> mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void *, size_t, gfp_t, unsigned long *)' (aka 'int (void *, unsigned int, unsigned int, unsigned long *)') [-Wincompatible-function-pointer-types]
>      369 |         .malloc =               zblock_zpool_malloc,
>          |                                 ^~~~~~~~~~~~~~~~~~~
>    1 error generated.

https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-add-zblock-allocator-fix.patch
was supposed to fix this?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [akpm-mm:mm-new 195/196] mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void ...
  2025-04-16 16:26 ` Andrew Morton
@ 2025-04-16 22:23   ` Igor Belousov
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Belousov @ 2025-04-16 22:23 UTC (permalink / raw)
  To: Andrew Morton
  Cc: kernel test robot, Vitaly Wool, llvm, oe-kbuild-all,
	Linux Memory Management List

Hello Andrew,

2025-04-16 20:26 wrote Andrew Morton:
> On Wed, 16 Apr 2025 15:21:24 +0800 kernel test robot <lkp@intel.com> 
> wrote:
> 
>> 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/202504161517.KYEDQav9-lkp@intel.com/
>> 
>> All errors (new ones prefixed by >>):
>> 
>> >> mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void *, size_t, gfp_t, unsigned long *)' (aka 'int (void *, unsigned int, unsigned int, unsigned long *)') [-Wincompatible-function-pointer-types]
>>      369 |         .malloc =               zblock_zpool_malloc,
>>          |                                 ^~~~~~~~~~~~~~~~~~~
>>    1 error generated.
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-add-zblock-allocator-fix.patch
> was supposed to fix this?

I can provide a new version of the patch.

Thanks,
Igor


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-16 22:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-16  7:21 [akpm-mm:mm-new 195/196] mm/zblock.c:369:13: error: incompatible function pointer types initializing 'int (*)(void *, size_t, gfp_t, unsigned long *, const int)' (aka 'int (*)(void *, unsigned int, unsigned int, unsigned long *, const int)') with an expression of type 'int (void kernel test robot
2025-04-16 16:26 ` Andrew Morton
2025-04-16 22:23   ` Igor Belousov

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