From: kernel test robot <lkp@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 5121/5128] drivers/nubus/proc.c:98:30: error: invalid application of 'sizeof' to incomplete type 'struct nubus_proc_pded'
Date: Sat, 4 Dec 2021 00:09:32 +0800 [thread overview]
Message-ID: <202112040005.V7gmllJN-lkp@intel.com> (raw)
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
reply other threads:[~2021-12-03 16:14 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=202112040005.V7gmllJN-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
/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