* [linux-next:master 5121/5128] drivers/nubus/proc.c:98:30: error: invalid application of 'sizeof' to incomplete type 'struct nubus_proc_pded'
@ 2021-12-03 16:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-03 16:09 UTC (permalink / raw)
To: Andrew Morton; +Cc: kbuild-all, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7afeac307a9561e3a93682c1e7eb22f918aa1187
commit: b80d0a018089b824672c63b30bad9298abefdaec [5121/5128] proc-remove-pde_data-completely-fix
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20211204/202112040005.V7gmllJN-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b80d0a018089b824672c63b30bad9298abefdaec
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b80d0a018089b824672c63b30bad9298abefdaec
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/nubus/proc.c: In function 'nubus_proc_alloc_pde_data':
>> drivers/nubus/proc.c:98:30: error: invalid application of 'sizeof' to incomplete type 'struct nubus_proc_pded'
98 | pded = kmalloc(sizeof(*pded), GFP_KERNEL);
| ^
>> drivers/nubus/proc.c:102:13: error: invalid use of undefined type 'struct nubus_proc_pded'
102 | pded->res_ptr = ptr;
| ^~
drivers/nubus/proc.c:103:13: error: invalid use of undefined type 'struct nubus_proc_pded'
103 | pded->res_size = size;
| ^~
>> drivers/nubus/proc.c:104:16: error: returning 'struct nubus_proc_pded *' from a function with incompatible return type 'struct nubus_proc_pde_data *' [-Werror=incompatible-pointer-types]
104 | return pded;
| ^~~~
cc1: some warnings being treated as errors
vim +98 drivers/nubus/proc.c
92
93 static struct nubus_proc_pde_data *
94 nubus_proc_alloc_pde_data(unsigned char *ptr, unsigned int size)
95 {
96 struct nubus_proc_pded *pded;
97
> 98 pded = kmalloc(sizeof(*pded), GFP_KERNEL);
99 if (!pded)
100 return NULL;
101
> 102 pded->res_ptr = ptr;
103 pded->res_size = size;
> 104 return pded;
105 }
106
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-03 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03 16:09 [linux-next:master 5121/5128] drivers/nubus/proc.c:98:30: error: invalid application of 'sizeof' to incomplete type 'struct nubus_proc_pded' 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