Received: by 10.192.165.148 with SMTP id m20csp75306imm; Thu, 3 May 2018 15:12:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpOdlz8yLXmlVdt8jFHHkgxWlxmQKct60rWj2EZUWsNTLvjSkrL44jxhP3MkTXfli0zhyNM X-Received: by 2002:a63:445:: with SMTP id 66-v6mr20952351pge.323.1525385536836; Thu, 03 May 2018 15:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525385536; cv=none; d=google.com; s=arc-20160816; b=CLWk9R5Ac7KkhSTEyVyiqVaBU8iuok7yPUaDAyiEwR+hAFcBWhGAuhgZ/uCYG38T69 SLlvE/YW7EO0WOT8dH3vubV33ZkiCnxfOaOAPPGJe+BisyeilQ70j5+Dx3lqVbCB1VJM B/rfrDaL9kItS2A+UGhhHGGrHmc7VZ5lEmicfsz/Pbvp4XSFTmoEeku+g22vEF7xFb97 U+Uq2j42DqMHbP/CBn3RutEJW7ZHh82s/iR72UraXJrXBOsm+aZiCtjEUQlB3Ft2JRbt OE1YGzv2GmmBa9mwXxoisWh0smu/R5M+vP3NZUG6DZJd+iRdggcDsA4a3vSrTCVGOvo/ QdBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=rjC3hqs6KDb8GUpN4k8YrHJ+r9RwrHq8Ugbr+fc0h2Q=; b=gmTcdgaqPIBigZlQp3QTdX5lenmLOWoroDm8SDWxf5HXhfYHekYJ2F9xwFfVxPtd1U aME5bubyVVZ8kgJ6l7vH14nNj7CgnfMuRgaxMSg7K7DnHxU6SttTRXIWcFdUBcS5lUAE UAgml1IpPCIyh9HOHvEk+nQqygVEdjxK6XeBP3s0FQnkGQxWdBNLgsDr4MFcC1M+Et5n tydT/TcbSApXEp885QWnCh2AHnsjBDzhieft2AYzqgUQGS5y0cSeGMb7QDAUZF3+tjrL FHgRB0CibpKZU5828/4xF1cFaEjovRBJlg1nWGtLdoXAaFRdF5AGzz2g70Vp9zBEvoIW +WKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i61-v6si14013528plb.560.2018.05.03.15.12.02; Thu, 03 May 2018 15:12:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751139AbeECWKm (ORCPT + 99 others); Thu, 3 May 2018 18:10:42 -0400 Received: from mga12.intel.com ([192.55.52.136]:51669 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbeECWKk (ORCPT ); Thu, 3 May 2018 18:10:40 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 15:10:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,360,1520924400"; d="scan'208";a="196563627" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga004.jf.intel.com with ESMTP; 03 May 2018 15:10:37 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1fEMQu-000K7I-NK; Fri, 04 May 2018 06:10:36 +0800 Date: Fri, 4 May 2018 06:09:45 +0800 From: kbuild test robot To: Akshu Agrawal Cc: kbuild-all@01.org, djkurtz@chromium.org, akshu.agrawal@amd.com, Alexander.Deucher@amd.com, Michael Turquette , Stephen Boyd , Christian =?iso-8859-1?Q?K=F6nig?= , Shaoyun Liu , Dave Airlie , open list , "open list:COMMON CLK FRAMEWORK" Subject: Re: [PATCH v2] clk: x86: Add ST oscout platform clock Message-ID: <201805040610.d3xMxCsO%fengguang.wu@intel.com> References: <1525336264-29243-1-git-send-email-akshu.agrawal@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525336264-29243-1-git-send-email-akshu.agrawal@amd.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Akshu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on v4.17-rc3 next-20180503] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Akshu-Agrawal/clk-x86-Add-ST-oscout-platform-clock/20180503-214044 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next smatch warnings: drivers/clk/x86/clk-st.c:60 st_clk_probe() error: potential null dereference 'hws'. (kzalloc returns null) vim +/hws +60 drivers/clk/x86/clk-st.c 48 49 static int st_clk_probe(struct platform_device *pdev) 50 { 51 struct st_clk_data *st_data; 52 struct clk_hw **hws; 53 54 st_data = dev_get_platdata(&pdev->dev); 55 if (!st_data || !st_data->base) 56 return -EINVAL; 57 58 hws = kzalloc(sizeof(*hws) * ST_MAX_CLKS, GFP_KERNEL); 59 > 60 hws[ST_CLK_48M] = clk_hw_register_fixed_rate(NULL, "clk48MHz", NULL, 0, 61 48000000); 62 hws[ST_CLK_25M] = clk_hw_register_fixed_rate(NULL, "clk25MHz", NULL, 0, 63 25000000); 64 65 hws[ST_CLK_MUX] = clk_hw_register_mux(NULL, "oscout1_mux", 66 clk_oscout1_parents, ARRAY_SIZE(clk_oscout1_parents), 67 0, st_data->base + CLKDRVSTR2, OSCOUT1CLK25MHZ, 3, 0, NULL); 68 69 clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_25M]->clk); 70 71 hws[ST_CLK_GATE] = clk_hw_register_gate(NULL, "oscout1", "oscout1_mux", 72 0, st_data->base + MISCCLKCNTL1, OSCCLKENB, 73 CLK_GATE_SET_TO_DISABLE, NULL); 74 75 clk_hw_register_clkdev(hws[ST_CLK_GATE], "oscout1", NULL); 76 77 return 0; 78 } 79 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation