From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABC01C433F5 for ; Fri, 3 Dec 2021 16:14:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 032FE6B0073; Fri, 3 Dec 2021 11:14:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EFD7D6B0074; Fri, 3 Dec 2021 11:14:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D9D4A6B0075; Fri, 3 Dec 2021 11:14:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0239.hostedemail.com [216.40.44.239]) by kanga.kvack.org (Postfix) with ESMTP id C60BA6B0073 for ; Fri, 3 Dec 2021 11:14:03 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 7D005180FE0EA for ; Fri, 3 Dec 2021 16:13:53 +0000 (UTC) X-FDA: 78876979146.08.8BAC343 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf09.hostedemail.com (Postfix) with ESMTP id 69AC73000104 for ; Fri, 3 Dec 2021 16:13:53 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10186"; a="297800666" X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="297800666" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2021 08:10:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="460085126" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 03 Dec 2021 08:10:15 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mtB8Y-000HlJ-Ev; Fri, 03 Dec 2021 16:10:14 +0000 Date: Sat, 4 Dec 2021 00:09:32 +0800 From: kernel test robot To: Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 5121/5128] drivers/nubus/proc.c:98:30: error: invalid application of 'sizeof' to incomplete type 'struct nubus_proc_pded' Message-ID: <202112040005.V7gmllJN-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: imf09.hostedemail.com; dkim=none; spf=none (imf09.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=intel.com (policy=none) X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 69AC73000104 X-Stat-Signature: kdbjenrcbe338ynf7zomhh6e8qwp9k46 X-HE-Tag: 1638548033-495115 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 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