Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3687082imm; Tue, 29 May 2018 11:36:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrIxQ4HYRJPetudPUY+5OyTgq56ERD9WWP/jcJbjzqCE22l3kBYVK9Vo0wVCsrVQsjzjvwz X-Received: by 2002:a63:a60a:: with SMTP id t10-v6mr14655002pge.351.1527619016955; Tue, 29 May 2018 11:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527619016; cv=none; d=google.com; s=arc-20160816; b=Z1JkW8y4lGGscQMIwx7skg4J5XoJdUzND21EZE/t9hLPpsp7b2502pwhO6kh/5yLQD m8sM16s4p4Vqt8u6sCTv1JEHYO4jxziPYYc4cfFb49Lm4ymtEu9qApZGs2zDWruTb8Da OdRdFmcNKK5eZv+PD3+RLHsgbXl1lYj5ylRmNmKrOlCJliCZ1cKwjatpRH62LemH41+w QK73xPR4wXDK+HxuQmKrLNKaP6szyRDbQaAJdw1wHvSXj+H0d6aVPtGfzkphTnBk18GX 3bgAKoLedikYuId72vG8SuZiX6ErKUTzob1scr+f64494Tg3+YqiHkWxIQG4YiJ9981f Sw3A== 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=oOHC5b7y0Ppz5wKKEPWEkc7Quc40dxe4Sdx6oe+fUZg=; b=IOPxYi1AKF3EjRzrqgcrJ1qu/okqKZkgJdPrDIkI60FXx/lMiS4uneYxyY5GNHJxku HBmfoTA3VlAj/aC2OzkyGew2bItMstf0aXJ0bp7i1NQvHJxbTd7ZhvaGtUT7LJxde4gQ wTQlglCg3ddGHkF5tGTFybMD+KNC9dRooifbyBg3xdUR2iBF54USUjY/EePUsespqo+u ngBShHbiX8O8ZeVE3dqkOOw7mE42p18G4jnxPB27pz0g52YWvLdhz76zSC4BSTLyyqPm s5KW1nf2k+0FbLPTlR7+REFnEQlJvnmC4B77sSY6vgm9fqqiIwD+Pk9jyzL42MBU+tkA NHmQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o185-v6si26539926pga.274.2018.05.29.11.36.43; Tue, 29 May 2018 11:36:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966047AbeE2Sfu (ORCPT + 99 others); Tue, 29 May 2018 14:35:50 -0400 Received: from mga07.intel.com ([134.134.136.100]:27189 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965885AbeE2Sft (ORCPT ); Tue, 29 May 2018 14:35:49 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2018 11:35:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,457,1520924400"; d="scan'208";a="58652261" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga004.fm.intel.com with ESMTP; 29 May 2018 11:35:45 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1fNjTE-000AhP-Rh; Wed, 30 May 2018 02:35:44 +0800 Date: Wed, 30 May 2018 02:35:03 +0800 From: kbuild test robot To: Srinath Mannam Cc: kbuild-all@01.org, Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Srinath Mannam Subject: Re: [PATCH 3/3] thermal: broadcom: Add Stingray thermal driver Message-ID: <201805292313.y0wwGpTj%fengguang.wu@intel.com> References: <1527486084-4636-4-git-send-email-srinath.mannam@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527486084-4636-4-git-send-email-srinath.mannam@broadcom.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 Pramod, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on soc-thermal/next] [also build test WARNING on v4.17-rc7 next-20180529] [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/Srinath-Mannam/Stingray-thermal-driver-support/20180529-145243 base: https://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> drivers/thermal/broadcom/sr-thermal.c:101:26: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] *regs @@ got sn:2>*regs @@ drivers/thermal/broadcom/sr-thermal.c:101:26: expected void [noderef] *regs drivers/thermal/broadcom/sr-thermal.c:101:26: got void * vim +101 drivers/thermal/broadcom/sr-thermal.c 88 89 static int sr_thermal_probe(struct platform_device *pdev) 90 { 91 struct device *dev = &pdev->dev; 92 struct sr_thermal *sr_thermal; 93 struct resource *res; 94 95 sr_thermal = devm_kzalloc(dev, sizeof(*sr_thermal), GFP_KERNEL); 96 if (!sr_thermal) 97 return -ENOMEM; 98 sr_thermal->dev = dev; 99 100 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > 101 sr_thermal->regs = devm_memremap(&pdev->dev, res->start, 102 resource_size(res), MEMREMAP_WB); 103 if (IS_ERR(sr_thermal->regs)) { 104 dev_err(dev, "failed to get io address\n"); 105 return PTR_ERR(sr_thermal->regs); 106 } 107 108 /* initialize tmon value to 0 */ 109 writel(0, sr_thermal->regs); 110 sr_thermal->crit_temp = TMON_CRIT_TEMP; 111 112 sr_thermal->tz = thermal_zone_device_register(dev_name(dev), 1, 1, 113 sr_thermal, 114 &sr_thermal_ops, 115 NULL, 1000, 1000); 116 if (IS_ERR(sr_thermal->tz)) 117 return PTR_ERR(sr_thermal->tz); 118 119 platform_set_drvdata(pdev, sr_thermal); 120 121 return 0; 122 } 123 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation