Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1923394rdb; Thu, 7 Dec 2023 12:34:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFq8MqTeyOTwqnDouLqn6XLfWdubTFKMQ17W+FdS2WQWKFALNYhE7T7maODJflJLrflX/Hu X-Received: by 2002:a05:6a00:4386:b0:6ce:8b50:5e3c with SMTP id bt6-20020a056a00438600b006ce8b505e3cmr2888843pfb.43.1701981272313; Thu, 07 Dec 2023 12:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701981271; cv=none; d=google.com; s=arc-20160816; b=FMTQFsLWZUTxQjKqPjmHb1koelbNtlhh2M4stUvCYuIMPHrBJTtGXDBzRGusymkXDu 6GRmKqWx2HBBTOzbQNoHFPQ38s9waZE1lygzftYRRnvF9nG2aDJAHUSIPUIiJwIZ1MUO sR5WZHlYaRi9jifq3lz8P96OSkQK+dezteA174R/+1wzpHx+kyqquWE/lNHyrQRd8wBj 2c7jmMPHQsVYgeISQcglxZ5xZvCBzgoTaBhSa636vRRT9Ud1SRy+At8pKvVRgiAXJeDQ +5bfRG5lMshjWrpdD0zihGo9slBOXfcoixR+NFmf1abIfz++JBQRd9UBSkSnEZB4aGH+ WtDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OOHEJJuyWFFiO0saMvRx4kqeHIkbXVLz8Jq6+yYEUBw=; fh=aph7LwsClckv3/XL93ihxwZFOeGpl58hs/hgOT99UkY=; b=UrM/AzbAjdi8OP22BJaMs+Gb8B0Z2frRiVhsPDhkk8zjRHCMjQfraUwptIMl7MY9hN xKoyyWacXhHBeZEaAwNQZWg2Dkt6W1jzWTI2Ov+Dz+EoaH2j5o02n2OFnw+jBYtNHubF YXaXWjXC1ilzlf9gL+PRbY99+35b07JLb7PK5vkA/ZuNOKSBHX9VdrlVtb2+xHGuRz9K 3CaXjanyBIJz7J5hhLIPyjjD4G1FFXWDBxsUCj9gA1neO/pjq5XpN8RmgGwFQdRfRTC+ i5dX0UblsSBqfR+4tCAfH21IlWlWyOBBXPGsgQHNTz7O/KxgKuPHOlsT9gmgOQFy7U96 dIew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZAUFdFDD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h5-20020a62b405000000b00690f9e835d8si268776pfn.132.2023.12.07.12.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 12:34:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZAUFdFDD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 27C3E814970D; Thu, 7 Dec 2023 12:34:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjLGUeI (ORCPT + 99 others); Thu, 7 Dec 2023 15:34:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235268AbjLGUdy (ORCPT ); Thu, 7 Dec 2023 15:33:54 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE8691729; Thu, 7 Dec 2023 12:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701981240; x=1733517240; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Yk/XjFPP0TyY2rmSziFlqUoYMzog5XHqMmKkMmF1jRY=; b=ZAUFdFDDTl9Beib7kcXOelzj5C1USU+3oX3z2bKjzvbzBJvEizkmq914 WqcmfRTCqLGwhSKAWPkL/FH5DyEvkMMtSVhMEBVm4gUBLd4vJt4NkJPf0 dObds3p+9/aiuM/TWB6DO1y1hBx16Yj40kQdRYiSEbrZ3V8J0gD72/hKf eYSVRRGKtbco2aHhiO9n9ax6eJ8lEBlOc8QfFlhJqYkjjtyhAPp/bu+Xa IfZCPMo1PHc990VfJSXoqrDCRUJYR5Z0VhcwimQgaVn3W7eyBIqDHZQCs 4Th8v3FWOyFqZdu+g20HRuD1fTxjG3u7ZtNgEWZVKFCbFWDghHCY7Oe/o Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="1410476" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="1410476" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 12:33:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="771876774" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="771876774" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 07 Dec 2023 12:33:53 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rBL4B-000Cnd-1b; Thu, 07 Dec 2023 20:33:51 +0000 Date: Fri, 8 Dec 2023 04:33:29 +0800 From: kernel test robot To: Chen Wang , aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, richardcochran@gmail.com, robh+dt@kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com, samuel.holland@sifive.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Chen Wang Subject: Re: [PATCH v5 3/4] clk: sophgo: Add SG2042 clock generator driver Message-ID: <202312080419.Yfn8RQbT-lkp@intel.com> References: <975f9995584dfa8af751e96a1f4d2c7991551a35.1701938395.git.unicorn_wang@outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <975f9995584dfa8af751e96a1f4d2c7991551a35.1701938395.git.unicorn_wang@outlook.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 12:34:28 -0800 (PST) Hi Chen, kernel test robot noticed the following build warnings: [auto build test WARNING on b85ea95d086471afb4ad062012a4d73cd328fa86] url: https://github.com/intel-lab-lkp/linux/commits/Chen-Wang/dt-bindings-soc-sophgo-Add-Sophgo-system-control-module/20231207-165948 base: b85ea95d086471afb4ad062012a4d73cd328fa86 patch link: https://lore.kernel.org/r/975f9995584dfa8af751e96a1f4d2c7991551a35.1701938395.git.unicorn_wang%40outlook.com patch subject: [PATCH v5 3/4] clk: sophgo: Add SG2042 clock generator driver config: arm-randconfig-003-20231208 (https://download.01.org/0day-ci/archive/20231208/202312080419.Yfn8RQbT-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231208/202312080419.Yfn8RQbT-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/202312080419.Yfn8RQbT-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/clk/sophgo/clk-sophgo-sg2042.c:1273:13: error: implicit declaration of function 'kzalloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration] clk_data = kzalloc(struct_size(clk_data, onecell_data.hws, num_clks), GFP_KERNEL); ^ drivers/clk/sophgo/clk-sophgo-sg2042.c:1273:13: note: did you mean 'vzalloc'? include/linux/vmalloc.h:141:14: note: 'vzalloc' declared here extern void *vzalloc(unsigned long size) __alloc_size(1); ^ >> drivers/clk/sophgo/clk-sophgo-sg2042.c:1273:11: warning: incompatible integer to pointer conversion assigning to 'struct sg2042_clk_data *' from 'int' [-Wint-conversion] clk_data = kzalloc(struct_size(clk_data, onecell_data.hws, num_clks), GFP_KERNEL); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/sophgo/clk-sophgo-sg2042.c:1293:2: error: implicit declaration of function 'kfree' is invalid in C99 [-Werror,-Wimplicit-function-declaration] kfree(clk_data); ^ drivers/clk/sophgo/clk-sophgo-sg2042.c:1349:2: error: implicit declaration of function 'kfree' is invalid in C99 [-Werror,-Wimplicit-function-declaration] kfree(clk_data); ^ 1 warning and 3 errors generated. vim +1273 drivers/clk/sophgo/clk-sophgo-sg2042.c 1256 1257 static int __init sg2042_clk_init_clk_data( 1258 struct device_node *node, 1259 int num_clks, 1260 struct sg2042_clk_data **pp_clk_data) 1261 { 1262 int ret = 0; 1263 struct sg2042_clk_data *clk_data = NULL; 1264 struct device_node *np_syscon; 1265 1266 np_syscon = of_parse_phandle(node, "sophgo,system-ctrl", 0); 1267 if (!np_syscon) { 1268 pr_err("failed to get system-ctrl node\n"); 1269 ret = -EINVAL; 1270 goto error_out; 1271 } 1272 > 1273 clk_data = kzalloc(struct_size(clk_data, onecell_data.hws, num_clks), GFP_KERNEL); 1274 if (!clk_data) { 1275 ret = -ENOMEM; 1276 goto error_out; 1277 } 1278 1279 clk_data->regmap_syscon = device_node_to_regmap(np_syscon); 1280 if (IS_ERR_OR_NULL(clk_data->regmap_syscon)) { 1281 pr_err("cannot get regmap_syscon %ld\n", PTR_ERR(clk_data->regmap_syscon)); 1282 ret = -ENODEV; 1283 goto cleanup; 1284 } 1285 clk_data->iobase_syscon = of_iomap(np_syscon, 0); 1286 clk_data->iobase = of_iomap(node, 0); 1287 clk_data->onecell_data.num = num_clks; 1288 1289 *pp_clk_data = clk_data; 1290 return ret; 1291 1292 cleanup: 1293 kfree(clk_data); 1294 1295 error_out: 1296 return ret; 1297 } 1298 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki