Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6898621ybh; Thu, 8 Aug 2019 07:21:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGR3qtJidTTEW8nyVNZz4Fe+GsNpn/l1vbP6fuCYmfs5MUmRC2VCVu68+oOeQnNNRK9JEX X-Received: by 2002:a17:902:830c:: with SMTP id bd12mr14244416plb.237.1565274103753; Thu, 08 Aug 2019 07:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565274103; cv=none; d=google.com; s=arc-20160816; b=wN47PNQjTQAjMNIPIcqZ24F7cRYzOtQrMqsJU7in+ExwY9P/Uqo4gTf2BT8IstrBSF EhbCIISyFDgBltYAonWVZTaW2fsmfqzXJCYFoa/jSXRpYFRs23Jxe7AjQXHyZDABsRJd WRl28Zl4olBZE/CjVC5v7qQ5XBye6G0CFqXHR+/6vmDVPPwQISEwyl9k6sjXSahKpPE0 4kQxiHqB3hAJN/gByTNMuZY5tHb88lzDJb8T/YJlFUANnCrdi8wuYxUMDt1WNIqJOZ0g aSlQ0vrEDN97v8Pm0zdpi8rNNrg4QWvR1dlUa9ujUg1NtCBtDsTF0FWB25GxzADdYd5E oveQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:to:from:date; bh=jDvBJg/VdH+GWVfqgIN6e/UnsDsdRAkvgescIC3KvQg=; b=rboqr0M7jVVvbiChTNVQ1XaaUWbDLuBKCATa8M9czRGxTnsIJ2qRqG6RBXEHH2Z1Wd Rr9RfEPA0byYpcMiEmT9RTri0ICxWfNtlmPtvwA7EWxDj2fJsSqxBD0LYoupYJ+VuDwL dK68sGdH10QIMXwIG6YeMThHQcJcoBtbldSi47DF0SROD52PKvaicbrArpjRdV8A12WC S+cGcqQihByGXwhc+7kesUMpDH8AN+Syn61wLH+AItQgT98Q0vXgKv2B3DHnpsQ8AmDT aqBS4dBcSicn++v9UOFjxx8RWf2iBKa4/otFSFQed/YeMdQOeKeDYVBGhd76RzdR1s1D jIQw== 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 b20si28854110plz.327.2019.08.08.07.21.28; Thu, 08 Aug 2019 07:21:43 -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 S1732716AbfHHMy2 (ORCPT + 99 others); Thu, 8 Aug 2019 08:54:28 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:2929 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732678AbfHHMy2 (ORCPT ); Thu, 8 Aug 2019 08:54:28 -0400 X-IronPort-AV: E=Sophos;i="5.64,361,1559512800"; d="scan'208";a="315934545" Received: from portablejulia.rsr.lip6.fr ([132.227.76.63]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2019 14:54:24 +0200 Date: Thu, 8 Aug 2019 14:54:24 +0200 (CEST) From: Julia Lawall X-X-Sender: julia@hadrien To: Florian Fainelli , Stephen Boyd , Eric Anholt , linux-kernel@vger.kernel.org, kbuild-all@01.org Subject: drivers/clk/bcm/clk-bcm2835.c:2144:1-13: WARNING: Use devm_platform_ioremap_resource for cprman -> regs (fwd) Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ---------- Forwarded message ---------- Date: Thu, 8 Aug 2019 20:52:32 +0800 From: kbuild test robot To: kbuild@01.org Cc: Julia Lawall Subject: drivers/clk/bcm/clk-bcm2835.c:2144:1-13: WARNING: Use devm_platform_ioremap_resource for cprman -> regs CC: kbuild-all@01.org CC: linux-kernel@vger.kernel.org TO: Florian Fainelli CC: Stephen Boyd CC: Eric Anholt tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master head: ecb095bff5d4b8711a81968625b3b4a235d3e477 commit: 5d59f12a19e6cb96a1a72fac2b0d73ab8435b167 clk: bcm: Make BCM2835 clock drivers selectable date: 9 weeks ago :::::: branch date: 15 hours ago :::::: commit date: 9 weeks ago If you fix the issue, kindly add following tag Reported-by: kbuild test robot Reported-by: Julia Lawall >> drivers/clk/bcm/clk-bcm2835.c:2144:1-13: WARNING: Use devm_platform_ioremap_resource for cprman -> regs git remote add linus https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git git remote update linus git checkout 5d59f12a19e6cb96a1a72fac2b0d73ab8435b167 vim +2144 drivers/clk/bcm/clk-bcm2835.c 9e400c5cc5c105 Eric Anholt 2016-06-01 2123 41691b8862e2a3 Eric Anholt 2015-10-08 2124 static int bcm2835_clk_probe(struct platform_device *pdev) 41691b8862e2a3 Eric Anholt 2015-10-08 2125 { 41691b8862e2a3 Eric Anholt 2015-10-08 2126 struct device *dev = &pdev->dev; b19f009d451060 Stephen Boyd 2016-06-01 2127 struct clk_hw **hws; 41691b8862e2a3 Eric Anholt 2015-10-08 2128 struct bcm2835_cprman *cprman; 41691b8862e2a3 Eric Anholt 2015-10-08 2129 struct resource *res; 56eb3a2ed97269 Martin Sperl 2016-02-29 2130 const struct bcm2835_clk_desc *desc; 56eb3a2ed97269 Martin Sperl 2016-02-29 2131 const size_t asize = ARRAY_SIZE(clk_desc_array); 56eb3a2ed97269 Martin Sperl 2016-02-29 2132 size_t i; 9e400c5cc5c105 Eric Anholt 2016-06-01 2133 int ret; 41691b8862e2a3 Eric Anholt 2015-10-08 2134 0ed2dd03b94b7b Kees Cook 2018-05-08 2135 cprman = devm_kzalloc(dev, 0ed2dd03b94b7b Kees Cook 2018-05-08 2136 struct_size(cprman, onecell.hws, asize), 56eb3a2ed97269 Martin Sperl 2016-02-29 2137 GFP_KERNEL); 41691b8862e2a3 Eric Anholt 2015-10-08 2138 if (!cprman) 41691b8862e2a3 Eric Anholt 2015-10-08 2139 return -ENOMEM; 41691b8862e2a3 Eric Anholt 2015-10-08 2140 41691b8862e2a3 Eric Anholt 2015-10-08 2141 spin_lock_init(&cprman->regs_lock); 41691b8862e2a3 Eric Anholt 2015-10-08 2142 cprman->dev = dev; 41691b8862e2a3 Eric Anholt 2015-10-08 2143 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 41691b8862e2a3 Eric Anholt 2015-10-08 @2144 cprman->regs = devm_ioremap_resource(dev, res); 41691b8862e2a3 Eric Anholt 2015-10-08 2145 if (IS_ERR(cprman->regs)) 41691b8862e2a3 Eric Anholt 2015-10-08 2146 return PTR_ERR(cprman->regs); 41691b8862e2a3 Eric Anholt 2015-10-08 2147 8a39e9fa578229 Eric Anholt 2017-01-18 2148 memcpy(cprman->real_parent_names, cprman_parent_names, 8a39e9fa578229 Eric Anholt 2017-01-18 2149 sizeof(cprman_parent_names)); 8a39e9fa578229 Eric Anholt 2017-01-18 2150 of_clk_parent_fill(dev->of_node, cprman->real_parent_names, 8a39e9fa578229 Eric Anholt 2017-01-18 2151 ARRAY_SIZE(cprman_parent_names)); 8a39e9fa578229 Eric Anholt 2017-01-18 2152 8a39e9fa578229 Eric Anholt 2017-01-18 2153 /* 8a39e9fa578229 Eric Anholt 2017-01-18 2154 * Make sure the external oscillator has been registered. 8a39e9fa578229 Eric Anholt 2017-01-18 2155 * 8a39e9fa578229 Eric Anholt 2017-01-18 2156 * The other (DSI) clocks are not present on older device 8a39e9fa578229 Eric Anholt 2017-01-18 2157 * trees, which we still need to support for backwards 8a39e9fa578229 Eric Anholt 2017-01-18 2158 * compatibility. 8a39e9fa578229 Eric Anholt 2017-01-18 2159 */ 8a39e9fa578229 Eric Anholt 2017-01-18 2160 if (!cprman->real_parent_names[0]) 41691b8862e2a3 Eric Anholt 2015-10-08 2161 return -ENODEV; 41691b8862e2a3 Eric Anholt 2015-10-08 2162 41691b8862e2a3 Eric Anholt 2015-10-08 2163 platform_set_drvdata(pdev, cprman); 41691b8862e2a3 Eric Anholt 2015-10-08 2164 b19f009d451060 Stephen Boyd 2016-06-01 2165 cprman->onecell.num = asize; b19f009d451060 Stephen Boyd 2016-06-01 2166 hws = cprman->onecell.hws; 41691b8862e2a3 Eric Anholt 2015-10-08 2167 56eb3a2ed97269 Martin Sperl 2016-02-29 2168 for (i = 0; i < asize; i++) { 56eb3a2ed97269 Martin Sperl 2016-02-29 2169 desc = &clk_desc_array[i]; 56eb3a2ed97269 Martin Sperl 2016-02-29 2170 if (desc->clk_register && desc->data) b19f009d451060 Stephen Boyd 2016-06-01 2171 hws[i] = desc->clk_register(cprman, desc->data); 56eb3a2ed97269 Martin Sperl 2016-02-29 2172 } cfbab8fbab9c33 Remi Pommarel 2015-12-06 2173 b19f009d451060 Stephen Boyd 2016-06-01 2174 ret = bcm2835_mark_sdc_parent_critical(hws[BCM2835_CLOCK_SDRAM]->clk); 9e400c5cc5c105 Eric Anholt 2016-06-01 2175 if (ret) 9e400c5cc5c105 Eric Anholt 2016-06-01 2176 return ret; 9e400c5cc5c105 Eric Anholt 2016-06-01 2177 b19f009d451060 Stephen Boyd 2016-06-01 2178 return of_clk_add_hw_provider(dev->of_node, of_clk_hw_onecell_get, 41691b8862e2a3 Eric Anholt 2015-10-08 2179 &cprman->onecell); 41691b8862e2a3 Eric Anholt 2015-10-08 2180 } 41691b8862e2a3 Eric Anholt 2015-10-08 2181 :::::: The code at line 2144 was first introduced by commit :::::: 41691b8862e2a32080306f17a723efc4b6ca86ab clk: bcm2835: Add support for programming the audio domain clocks :::::: TO: Eric Anholt :::::: CC: Stephen Boyd --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation