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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3B22C47DDF for ; Sun, 28 Jan 2024 00:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cA0t0B/rveYPIvULytL5cVskXXaCG4HSYQ4CmI5V6lw=; b=oBjmrHbZgo4oCk OEc79kpYgm9/djFWBDcT3W1TPfrktzi57lMEvJkpQiyeA+VV1VK6tq/Rwn7kCkwySu9VNav03zp2U xV+FvIMQ3nCPfcw2krtbieFA8WJwlPwahH+Rn+W+8NGCWFJJtC06+LrBip9TBx4TnRQ5wpl2MHqQY 5bEdKRXnFBW6G9WFEbOQGS/DgIAliyjTH8QH5m6Ju3gm1ZcZnEWTlcbupxLVNLQm7LBuMVXHE5TrT /x+2soJd9zolvyzZTXI+p7WQ/dNI1IFrKHpaaJmhyWjVwJTxGGrVDarXLX59Q61DDfAquMPWnDWYj T5s8YpIF49vfdRQlcc2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTsqf-00000008ShP-3SHF; Sun, 28 Jan 2024 00:16:33 +0000 Received: from mgamail.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTsqW-00000008SeZ-2PJi for linux-arm-kernel@lists.infradead.org; Sun, 28 Jan 2024 00:16:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706400984; x=1737936984; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=N9deARxE/PkvhxThtTXkY59GJcYHM/nCT8jbvsYUZ/c=; b=NeYKyHQR0ccD46gPC3Yw6M8eWEOcixTTIYfKou+ORib0uxctNiTRaXaK wXrl6scy8mjz/AC7ZM2PU9N/zBNphfvgVPU/QTpjo2CAAxReITkxIqqBZ h2tRcp8IuS10lc2qqyn3q7w6O/2BXw+K/nvKjYj+wfcnL0CtHy9XYGeTA YQOCW4v0mlvvtCnukQ3UPU6IIltj4SVp3bs7mhvnKcq+d7dow72xojjDz z6d8QrtaoFVwKTZMtTA7PjnfiZTF+ru0lj3VAVdzz4OPBKX3BmkrNfy4v +xYOUyzbJtGfQZDJNapi9dHwvmbADOwlg/TuNDk5nmb6Yb4t561hciytu w==; X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="466994336" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="466994336" 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240125-imx-sysctr-v2-2-7332470cd7ae@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240127_161624_717458_0626FB0A X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel