Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp488893rdb; Sat, 27 Jan 2024 16:16:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbtr132zkgckLoD4aVZzljl5btPAgAZyNazwauNM1ArXLnnUZ0p96sh/G0dxKabd40/eVP X-Received: by 2002:aa7:d4d4:0:b0:55b:7fd6:4daa with SMTP id t20-20020aa7d4d4000000b0055b7fd64daamr3320070edr.8.1706401002370; Sat, 27 Jan 2024 16:16:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706401002; cv=pass; d=google.com; s=arc-20160816; b=gn/9ZspoYxtVpv8jn6EifOrUk6d/nzwavylAxAsL3A7YKRRyWSe+iqpsVP4m8O12jP XvfosQic1WCgQQoyz4Ba3jWG2Eu8B6TbAxYvNzXvdnw4vYHrxYKbj2H13dykTokau2sh FBWtkRo3u5lE7yak2LIKVRAHwBW7MOxfPSW5LD7GmGcI1R6n8oB9R4yF1H4dY1cBwvlO 9/aSYI56oy0ule+F+ISjDg5BnEO+GGuxaVUppehNACiFJTutFhbvy4+PAt35BNJg+ecv 0bkNSWjNtgo+z318ccOl2UDVRQKReen54+OWe5WIWx+DxjrT1BtPFf6jcLqa22huAwLm zFmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0gpCkKIhBjAGZL4ISKX2FzNxI7lmQU6uczuMdrovd9Q=; fh=sDwtCEUWdOQXX19JoLCYPGakNG3Yrg7Ryi+8kx3yQEc=; b=Ttx42Lw4cV/NmIOZwXrAaI0Z1azlAp9xFXqFpU7tcrULOA4hDCC6zcwHJGtxFsUc1m JEbrL+F/kXui1mNljov1j8/Gc/7TPydPA0yV1fLNuJVlFndcIudbkdlDgNHMQvKjjW/G VpRkYgN/vu7ooTQpDEg1Er0LPM3GZwgqtJpnsQ//+UtpvH6SkNQBD6ATyBasFmzusFz0 tXl/IvIxmMIVytkBLVW58N4CzbK73uUyB9ZMIjEZ7Dwi5/OM7fbCx3VWjpaxkIONXSw9 tMi47j3sBKLwXlgOJ0ZA2ifhLKTMEEhaK/6oxWNhNgyo9dpy9/VOzpkAEDfyiHkKT5hD 7e9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MjKhlDxD; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-41475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m6-20020a056402430600b0055c153341f8si2274988edc.271.2024.01.27.16.16.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 16:16:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MjKhlDxD; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-41475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EC6641F233A3 for ; Sun, 28 Jan 2024 00:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 762743C38; Sun, 28 Jan 2024 00:16:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MjKhlDxD" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 CAB7A1373; Sun, 28 Jan 2024 00:16:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.134.136.31 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706400982; cv=none; b=GO3P4GCgG3zPZ8mlcqvO2BLU+5nEiFrZ713PnfYfz6JFGRKTzERVTNoe/SuXLM+HClidV+kPyfiY5k8KiacwfavreEGsKWscl1EbwR1O2kSFSAA0oRT/I3KPLA2fYAN0CEqtPP8yT3Z0M+qecdJbzL0v6WkZrYom1MNz1ggMAwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706400982; c=relaxed/simple; bh=N9deARxE/PkvhxThtTXkY59GJcYHM/nCT8jbvsYUZ/c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i6L0K71FGxOSzgQf3mxkF27hJsI6rMv1DIvui1zzyp+dwB8qnqrurvVeYLRpmE/4V9nM7umhOJH6U47N4f2sZAhXl3EvkoIQEg3bXg5vwjyUaEjipTYvhqd9E/2BvJpFaX5pJkfMTKDnr094IJZeKg6vwbQm+DJNbTJYGSD4Jj0= 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=MjKhlDxD; arc=none smtp.client-ip=134.134.136.31 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706400980; x=1737936980; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=N9deARxE/PkvhxThtTXkY59GJcYHM/nCT8jbvsYUZ/c=; b=MjKhlDxDcICdDsc+RQa7PTngtG2dDERNzL/Fon0dueQa3Cuga80hcBuC 2SyJH2GHP3vchVPX2F6R0VtHyvS4bfuLdwVZHMrVX1TgBkvm+gEtvOPpL sv3B6IkXkZU7yhxPl/tcN+3IWz/ZjZ+uALcXfOd/0qngksMs8CQ+XHjCw ch2SkO32cposqrf/gQSEI9fEMrlQGJPgbMz8wcSuguYcC6XExte6C+6D9 JBSuGhXxZdGZw5qgucZNsStn+Ch1QI3ROkGrUsexZl6WSSo6GwXc5/MGL u5zcAwjQwdUSqFai9Is5H6WpT1zlmnvwqy6ARH4oOmDG0cIbEZwru41zl Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="466994337" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="466994337" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2024 16:16:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="960544688" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="960544688" Received: from lkp-server01.sh.intel.com (HELO 370188f8dc87) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 27 Jan 2024 16:16:07 -0800 Received: from kbuild by 370188f8dc87 with local (Exim 4.96) (envelope-from ) id 1rTsqD-0002t4-1r; Sun, 28 Jan 2024 00:16:05 +0000 Date: Sun, 28 Jan 2024 08:15:22 +0800 From: kernel test robot To: "Peng Fan (OSS)" , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bai Ping , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Marco Felsch Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan Subject: Re: [PATCH v2 2/3] clocksource/drivers/imx-sysctr: drop use global variables Message-ID: <202401280840.br5xJEeO-lkp@intel.com> References: <20240125-imx-sysctr-v2-2-7332470cd7ae@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240125-imx-sysctr-v2-2-7332470cd7ae@nxp.com> Hi Peng, kernel test robot noticed the following build errors: [auto build test ERROR on 01af33cc9894b4489fb68fa35c40e9fe85df63dc] url: https://github.com/intel-lab-lkp/linux/commits/Peng-Fan-OSS/dt-bindings-timer-nxp-sysctr-timer-support-i-MX95/20240125-191500 base: 01af33cc9894b4489fb68fa35c40e9fe85df63dc patch link: https://lore.kernel.org/r/20240125-imx-sysctr-v2-2-7332470cd7ae%40nxp.com patch subject: [PATCH v2 2/3] clocksource/drivers/imx-sysctr: drop use global variables config: i386-buildonly-randconfig-001-20240128 (https://download.01.org/0day-ci/archive/20240128/202401280840.br5xJEeO-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401280840.br5xJEeO-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/202401280840.br5xJEeO-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/clocksource/timer-imx-sysctr.c:135:9: error: call to undeclared function 'kzalloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 135 | priv = kzalloc(sizeof(struct sysctr_private), GFP_KERNEL); | ^ drivers/clocksource/timer-imx-sysctr.c:135:9: note: did you mean 'vzalloc'? include/linux/vmalloc.h:141:14: note: 'vzalloc' declared here 141 | extern void *vzalloc(unsigned long size) __alloc_size(1); | ^ >> drivers/clocksource/timer-imx-sysctr.c:135:7: error: incompatible integer to pointer conversion assigning to 'struct sysctr_private *' from 'int' [-Wint-conversion] 135 | priv = kzalloc(sizeof(struct sysctr_private), GFP_KERNEL); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/clocksource/timer-imx-sysctr.c:141:3: error: call to undeclared function 'kfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 141 | kfree(priv); | ^ drivers/clocksource/timer-imx-sysctr.c:141:3: note: did you mean 'vfree'? include/linux/vmalloc.h:161:13: note: 'vfree' declared here 161 | extern void vfree(const void *addr); | ^ 3 errors generated. vim +/kzalloc +135 drivers/clocksource/timer-imx-sysctr.c 128 129 static int __init sysctr_timer_init(struct device_node *np) 130 { 131 struct sysctr_private *priv; 132 void __iomem *base; 133 int ret; 134 > 135 priv = kzalloc(sizeof(struct sysctr_private), GFP_KERNEL); 136 if (!priv) 137 return -ENOMEM; 138 139 ret = timer_of_init(np, &to_sysctr); 140 if (ret) { > 141 kfree(priv); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki