From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9ABB0221FAC; Wed, 7 May 2025 07:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746604741; cv=none; b=JE7Hl9hkec0zBLc76e3G9hPvNGle2HQyvRacqwsoxHhPtRIvP62EfJYyj9/URupKhGYeN0I0s5K9keGaBu74iAPS3dv6y2USlT1ITaxjFIZZdDj8sWO3dVBSlcOWQSaNgF2C4qnhlm0uWpvahq8ui+VrD8RZkZi8IPlfhwnU3E0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746604741; c=relaxed/simple; bh=fLHCh/gSuXYbU1aAft/Unq8sl8yvQ7IS32/uXEPUDik=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UM0hxpKDRSVqP3Uqsdpp97S7Lr844CqgwM2wSHh8fq8/nfJgEqLnFs+8MiajZe7JoWC84univr6lPGx7ziR3YghZWqQbYCQtz4XMhS2y9i0IoSiikhjqmwfrArK9y0DYQqy8TFrdSy6IEe89h6l++1UBQyy0N8vglvNHgjxxF54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FcVRxlId; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FcVRxlId" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1746604740; x=1778140740; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fLHCh/gSuXYbU1aAft/Unq8sl8yvQ7IS32/uXEPUDik=; b=FcVRxlId3kv9AS8IocCimoleNoUgFnjgyj/ddFPdKtX2Ayjw9FyuCnKX ypAAQWDsxSv4DANEiqts26bNE+H4dtv/OJiFH5YNe1tiveJFvi5t1bccX 5EhPMwVmkPwU7tLuB9JSb2miVje+m8etOGzo/W2Roxx9C6gDNPp4toHNx mtMQUy05MUuKNyKMLvwz4OSLck1XZC3itfV17RwPTAaY+rsbXL47J0aFw K5R++YxowyXjy2kbWBrlQDpIeH1aRNcEBjh6tH8p352LoQNJsRo5JK8Zu DgaOTjSnN8Pz2cAEUKtxxjTjycBknUL8tJnHIfi0KfKO39SQK+Dop1vLk g==; X-CSE-ConnectionGUID: v1bcI65JSwWbdHu624KJIw== X-CSE-MsgGUID: 9LEdz8FPTJ+RZPr5nnXF3w== X-IronPort-AV: E=McAfee;i="6700,10204,11425"; a="51969511" X-IronPort-AV: E=Sophos;i="6.15,268,1739865600"; d="scan'208";a="51969511" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2025 00:58:59 -0700 X-CSE-ConnectionGUID: ga+p13QHS5el7YdWSvKUrg== X-CSE-MsgGUID: qBpMRESJSWalcyo/GjjFrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,268,1739865600"; d="scan'208";a="159175156" Received: from lkp-server01.sh.intel.com (HELO 1992f890471c) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 07 May 2025 00:58:58 -0700 Received: from kbuild by 1992f890471c with local (Exim 4.96) (envelope-from ) id 1uCZg6-0007Mv-1x; Wed, 07 May 2025 07:58:54 +0000 Date: Wed, 7 May 2025 15:58:38 +0800 From: kernel test robot To: Rujra Bhatt , dpenkler@gmail.com, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Cc: oe-kbuild-all@lists.linux.dev, braker.noob.kernel@gmail.com Subject: Re: [FIRST-PATCH] staging : gpib : agilent_82350b : agilent_82350b.c : fixes checks on the file Message-ID: <202505071554.BLzezIJT-lkp@intel.com> References: Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Rujra, kernel test robot noticed the following build errors: [auto build test ERROR on staging/staging-testing] [also build test ERROR on staging/staging-next staging/staging-linus linus/master v6.15-rc5 next-20250506] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Rujra-Bhatt/staging-gpib-agilent_82350b-agilent_82350b-c-fixes-checks-on-the-file/20250416-205032 base: staging/staging-testing patch link: https://lore.kernel.org/r/Z_-nR5Vt2A5kvbro%40brak3rDesk patch subject: [FIRST-PATCH] staging : gpib : agilent_82350b : agilent_82350b.c : fixes checks on the file config: x86_64-randconfig-002-20250424 (https://download.01.org/0day-ci/archive/20250507/202505071554.BLzezIJT-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071554.BLzezIJT-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202505071554.BLzezIJT-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/percpu.h:5, from include/linux/radix-tree.h:16, from include/linux/idr.h:15, from include/linux/kernfs.h:12, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/energy_model.h:7, from include/linux/device.h:16, from drivers/staging/gpib/include/gpib_types.h:18, from drivers/staging/gpib/include/gpibP.h:12, from drivers/staging/gpib/agilent_82350b/agilent_82350b.h:7, from drivers/staging/gpib/agilent_82350b/agilent_82350b.c:11: drivers/staging/gpib/agilent_82350b/agilent_82350b.c: In function 'agilent_82350b_allocate_private': >> drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:53: error: expected '{' before '*' token 482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); | ^ include/linux/alloc_tag.h:227:16: note: in definition of macro 'alloc_hooks_tag' 227 | typeof(_do_alloc) _res; \ | ^~~~~~~~~ include/linux/slab.h:1041:49: note: in expansion of macro 'alloc_hooks' 1041 | #define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:31: note: in expansion of macro 'kzalloc' 482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); | ^~~~~~~ >> drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:53: error: expected '{' before '*' token 482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); | ^ include/linux/alloc_tag.h:231:24: note: in definition of macro 'alloc_hooks_tag' 231 | _res = _do_alloc; \ | ^~~~~~~~~ include/linux/slab.h:1041:49: note: in expansion of macro 'alloc_hooks' 1041 | #define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:31: note: in expansion of macro 'kzalloc' 482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); | ^~~~~~~ >> drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:53: error: expected '{' before '*' token 482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); | ^ include/linux/alloc_tag.h:234:24: note: in definition of macro 'alloc_hooks_tag' 234 | _res = _do_alloc; \ | ^~~~~~~~~ include/linux/slab.h:1041:49: note: in expansion of macro 'alloc_hooks' 1041 | #define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:31: note: in expansion of macro 'kzalloc' 482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); | ^~~~~~~ drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:29: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); | ^ vim +482 drivers/staging/gpib/agilent_82350b/agilent_82350b.c 479 480 static int agilent_82350b_allocate_private(struct gpib_board *board) 481 { > 482 board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL); 483 if (!board->private_data) 484 return -ENOMEM; 485 return 0; 486 } 487 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki