include/linux/stddef.h:8:14: error: called object is not a function or function pointer
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6c2cb8b8b843d216ab549b678a0d8831c43153e0 commit: d0b72c88671b3c46342bbebc9b90280890436c98 [11187/12559] clk: mmp: allow COMPILE_TEST builds config: m68k-randconfig-r2308-20260930 (https://download.01.org/0day-ci/archive/20261001/[email protected]/config) compiler: m68k-linux-gcc (GCC) 8.5.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261001/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:5,
from include/linux/of.h:14,
from include/linux/clk-provider.h:10,
from drivers/clk/mmp/clk-audio.c:8:
drivers/clk/mmp/clk-audio.c: In function 'mmp2_audio_clk_suspend':
>> include/linux/stddef.h:8:14: error: called object is not a function or function pointer
#define NULL ((void *)0)
^
include/linux/pm_clock.h:77:24: note: in expansion of macro 'NULL'
#define pm_clk_suspend NULL
^~~~
drivers/clk/mmp/clk-audio.c:405:2: note: in expansion of macro 'pm_clk_suspend'
pm_clk_suspend(dev);
^~~~~~~~~~~~~~
drivers/clk/mmp/clk-audio.c: In function 'mmp2_audio_clk_resume':
>> include/linux/stddef.h:8:14: error: called object is not a function or function pointer
#define NULL ((void *)0)
^
include/linux/pm_clock.h:78:23: note: in expansion of macro 'NULL'
#define pm_clk_resume NULL
^~~~
drivers/clk/mmp/clk-audio.c:414:2: note: in expansion of macro 'pm_clk_resume'
pm_clk_resume(dev);
^~~~~~~~~~~~~vim +8 include/linux/stddef.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 6 ^1da177e4c3f41 Linus Torvalds 2005-04-16 7 #undef NULL ^1da177e4c3f41 Linus Torvalds 2005-04-16 @8 #define NULL ((void *)0)
6e218287432472 Richard Knutsson 2006-09-30 9
:::::: The code at line 8 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <[email protected]> :::::: CC: Linus Torvalds <[email protected]>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Rosen,
Quoted 33 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6c2cb8b8b843d216ab549b678a0d8831c43153e0 commit: d0b72c88671b3c46342bbebc9b90280890436c98 [11187/12559] clk: mmp: allow COMPILE_TEST builds config: m68k-randconfig-r2308-20260930 (https://download.01.org/0day-ci/archive/20261001/[email protected]/config) compiler: m68k-linux-gcc (GCC) 8.5.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261001/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
In file included from
include/uapi/linux/posix_types.h:5,from include/uapi/linux/types.h:14, from include/linux/types.h:5, from include/linux/of.h:14, from include/linux/clk-provider.h:10, from drivers/clk/mmp/clk-audio.c:8:
drivers/clk/mmp/clk-audio.c: In function 'mmp2_audio_clk_suspend':Quoted 1 line
Quoted 1 line
include/linux/stddef.h:8:14: error: called object is not a function or function pointer#define NULL ((void *)0) ^ include/linux/pm_clock.h:77:24: note: in expansion of macro 'NULL' #define pm_clk_suspend NULL ^~~~ drivers/clk/mmp/clk-audio.c:405:2: note: in expansion of macro 'pm_clk_suspend' pm_clk_suspend(dev); ^~~~~~~~~~~~~~
drivers/clk/mmp/clk-audio.c: In function 'mmp2_audio_clk_resume':Quoted 1 line
Quoted 1 line
include/linux/stddef.h:8:14: error: called object is not a function or function pointer
Quoted 8 lines
#define NULL ((void *)0)
^
include/linux/pm_clock.h:78:23: note: in expansion of macro 'NULL'
#define pm_clk_resume NULL
^~~~
drivers/clk/mmp/clk-audio.c:414:2: note: in expansion of macro 'pm_clk_resume'
pm_clk_resume(dev);
^~~~~~~~~~~~~This isn't directly a bug with your patch, however it is newly introduced now that the driver can be compiled with COMPILE_TEST. Would you have time to fix this up as well?
Brian
Quoted 46 lines · Brian Masney
Hi Rosen,
Quoted 33 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6c2cb8b8b843d216ab549b678a0d8831c43153e0 commit: d0b72c88671b3c46342bbebc9b90280890436c98 [11187/12559] clk: mmp: allow COMPILE_TEST builds config: m68k-randconfig-r2308-20260930 (https://download.01.org/0day-ci/archive/20261001/[email protected]/config) compiler: m68k-linux-gcc (GCC) 8.5.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261001/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
In file included from
include/uapi/linux/posix_types.h:5,from include/uapi/linux/types.h:14, from include/linux/types.h:5, from include/linux/of.h:14, from include/linux/clk-provider.h:10, from drivers/clk/mmp/clk-audio.c:8:
drivers/clk/mmp/clk-audio.c: In function 'mmp2_audio_clk_suspend':Quoted 1 line
Quoted 1 line
include/linux/stddef.h:8:14: error: called object is not a function or function pointer#define NULL ((void *)0) ^ include/linux/pm_clock.h:77:24: note: in expansion of macro 'NULL' #define pm_clk_suspend NULL ^~~~ drivers/clk/mmp/clk-audio.c:405:2: note: in expansion of macro 'pm_clk_suspend' pm_clk_suspend(dev); ^~~~~~~~~~~~~~
drivers/clk/mmp/clk-audio.c: In function 'mmp2_audio_clk_resume':Quoted 1 line
Quoted 1 line
include/linux/stddef.h:8:14: error: called object is not a function or function pointerQuoted 8 lines
#define NULL ((void *)0) ^ include/linux/pm_clock.h:78:23: note: in expansion of macro 'NULL' #define pm_clk_resume NULL ^~~~ drivers/clk/mmp/clk-audio.c:414:2: note: in expansion of macro 'pm_clk_resume' pm_clk_resume(dev); ^~~~~~~~~~~~~
Quoted 3 lines
This isn't directly a bug with your patch, however it is newly introduced now that the driver can be compiled with
COMPILE_TEST. Would you have time to fix this up as well?
Yeah.
Quoted 3 lines
Brian