Received: by 10.192.165.156 with SMTP id m28csp2231072imm; Thu, 12 Apr 2018 10:44:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+J71h+Q3RX8F0DsDP7xuDmE18dPz8Ni9dMrMOqBqkdqtlcskqMfsi5RSvHixoQamSUWCAh X-Received: by 10.98.198.195 with SMTP id x64mr8451872pfk.11.1523555048118; Thu, 12 Apr 2018 10:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523555048; cv=none; d=google.com; s=arc-20160816; b=D7JloWEoCX0xSxcoRruV6hVhmkIAXjD6RqyvMm/aDg/VI2esR2puqGTRsHOO/RyCie e4bTkAXgUUBPJpsZFxUirhYG4+dhPzBHlE40X9y0JOWwrHO7di10kk14krBrDcITDQBL FNBK4NIOoPISUD8f7/dNZRS5KmhUp8YOCcV+RmvzhY9N1MSIyLaydaTlTx1YS0/zmuAd qKhDkhKV0Up8MUwtp23JfHUk+eC/xScnijplifC7oRl+y41WJ1+wwJvASyswsmQXeGM+ 9vdogMk0fPRC+SVQJU/IeFQ8+7KFNxNz0TIZE10DUxDjEyR+eEe5jDcXgyqw84Sj/ppb wSuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=FeTTLHSAMaUSf6FcNlAXcsTPGON7pCbiml2hU3admtw=; b=jSOhYOHR+z8h82PZFoC5KuTJMTe6UqO02hTszXzLGsEYD0a93NauGbBHNJh3Hsdqlu NkFb8zWzonXOu8Ko4Gu367IH++6f4m9iFvpKFlFG3PfpRpDRgnVkYcv/gSw0l7Mbz+UD ELtoIrtOmWDWYaBKzFMPn1U5f8WChbTv+dAIfdT49O3kNTNIyBTnmoI33dcbVOIBzHgM xbWBRDBVwEKp0lz5UTBE/tzHAOZE98n6K8CUQ4cpLxAjMM2dBa7IvE+U6EVWPMnK7n8u khCwnBnCKhw063v7vVxPlw1FYLNwOs5F9V4BvxnW7QkPo3IfutwB3/yBpSiX8CY85tVn Fe9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FEjZ5KBB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p91-v6si3643224plb.705.2018.04.12.10.43.53; Thu, 12 Apr 2018 10:44:08 -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; dkim=pass header.i=@linaro.org header.s=google header.b=FEjZ5KBB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752849AbeDLRmO (ORCPT + 99 others); Thu, 12 Apr 2018 13:42:14 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54403 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752490AbeDLRmN (ORCPT ); Thu, 12 Apr 2018 13:42:13 -0400 Received: by mail-wm0-f65.google.com with SMTP id r191so13280048wmg.4 for ; Thu, 12 Apr 2018 10:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FeTTLHSAMaUSf6FcNlAXcsTPGON7pCbiml2hU3admtw=; b=FEjZ5KBB+3Nk9lS6hyp1hmeMGLpbIn4E7wFmDdD4hE8AT1LmXl4E6sv+ZniLZe1aSh RN8+B6Dvq72DMiAVbKl/LIv4EGuoe9J4H/x02shpfttMpA+xcAg1WwJhO0oAmk/0GLXs w7UA5O5g90vHEEydmewdBZ6l07x443GL8sS+c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FeTTLHSAMaUSf6FcNlAXcsTPGON7pCbiml2hU3admtw=; b=uVl/IPEXbcWf8jQtJenmoPRIDtGyChIwNzvb18jhE/qq1j9ktbV9CrvKJGbIAaMb1r Gs0JNHTncCda2acjUVehCp1aitd5MeI723A1hxL7Wf/Ww88aMqhGWhwwZIKohunq/H/U QYVatyisKXjCxMDxcD57sS/ZzxnuwUdk+2qY5aZyHyIr7gzUzDp/Bbuba2IjLtj9GQFO 3RVZsmcf7x/IPpaRiG22kaYfkNh9OICoG9777u9zY95lmJbg2WsW6pGW4b4yWEt7ZESP AZsc/sltqO3CO+ehiqDwTjXjyBrzyE8oLsrpVR+DOPIwz20xozDIOysTxMEpLyxJCVqh 5NAA== X-Gm-Message-State: ALQs6tCdhSVCRoBOwJ2znvQXCXseERJmQXs7dkm+att5OstoSafZBbIK +zcKaVqx8/UPkXqobV5avpET2A== X-Received: by 10.28.6.14 with SMTP id 14mr1374020wmg.42.1523554931594; Thu, 12 Apr 2018 10:42:11 -0700 (PDT) Received: from [192.168.8.101] ([37.168.176.100]) by smtp.googlemail.com with ESMTPSA id n8sm4981194wrh.51.2018.04.12.10.42.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 10:42:10 -0700 (PDT) Subject: Re: [GIT PULL] Thermal management updates for v4.17-rc1 To: Linus Torvalds , Zhang Rui Cc: LKML , Linux PM list , Eduardo Valentin , "Li, Philip" , Bartlomiej Zolnierkiewicz References: <1523436077.16235.5.camel@intel.com> <1523509711.16235.25.camel@intel.com> From: Daniel Lezcano Message-ID: <1bbc5ab1-3532-95f5-1246-0bb89c566508@linaro.org> Date: Thu, 12 Apr 2018 19:42:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/04/2018 18:55, Linus Torvalds wrote: > On Wed, Apr 11, 2018 at 10:08 PM, Zhang Rui wrote: >> >> could you please illustrate me what the kconfig & warning is? > > Just "make allmodconfig" and the warning is about a uninitialized variable. > > Line 304 in drivers/thermal/samsung/exynos_tmu.c if my shell history > is to be believed. > > Linus These couple of warnings were introduced by: commit 480b5bfc16e17ef51ca1c55bfcebf55db8673ebf Author: Bartlomiej Zolnierkiewicz Date: Tue Mar 6 15:43:45 2018 +0100 thermal: exynos: remove parsing of samsung, tmu_default_temp_offset property Trimming (one point based or two points based) is always used for the temperature calibration and the default non-trimming code should never be reached. Modify temp_to_code() and code_to_temp() accordingly (WARN_ON(1) in the default cases) and then remove no longer needed parsing of samsung,tmu_default_temp_offset property. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Eduardo Valentin After digging into, there is no obvious fix. It returns effectively an uninitialized value and the callers are assuming the value is always correct, so it is also not possible to simply return an error. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog