Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2998409imm; Sun, 13 May 2018 01:50:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZplIFdVI4fe18Yq5YPTyaWWGb1vz33D0XElfhI8RihhDSlAWh6woA4tmjHAdfx06qf3I5wO X-Received: by 2002:a62:d6da:: with SMTP id a87-v6mr5932581pfl.200.1526201426030; Sun, 13 May 2018 01:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526201425; cv=none; d=google.com; s=arc-20160816; b=usiM2MnhYsGEaSMpfQj/QTlNvMGE/GUAnWY0o1li12B5NgzFUKvxDQ8XpX4uTDYlwq U6bIcpQ+5PKwoRzYGSJoDko+cTE47a4nv831WiqyooMba0XCQfgJmkJ27Ysz3dyCqTDn dZBccYeDPoSsxsyk0btpoaoajrHGHBKLKIh+Osu0UhXvRntmb45Py+DILxPyKrSN3A8/ SRh77iZYQZd2XWdC0WizuevGAr6E0N+6vi0KVg+8notGR4HHSqP2Be0tZIet3UCE9R5N UXpSBXcFswEtYNVcF9NMdUHfSpiqhIgluYr8jZUNkU2NVZayTjpmfTX2jp8Wx8+bscqS JX2A== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=A/BNxRYCxS4KXwe1TQRz6R3ZHHew87mBJKmtniRAuM8=; b=eQiV10x273JY8lWRIOaR+2lqmU2tjwXxZP1P931x2Qkjks0o5aoh40gZUosvFwIEEr VstJybunBsuRlO9ZU60PRUz6pGTIxPj//mPNO/CldmncUfWSZD3eAzm8a3Jmz7CgbQNL pthHfp9Q6SerxzvRIRhWW+WivXx+fXb0vOVqCMdA4AxRTs3uu9R6Aqh9Xh4aMCPgw4pL f7WG/0XFVzRUkjYCIwaqqtsuArhbGe7KKH/pgw64qndP601BgAV3oXeqG0+vGGJY9c/o ppn+7gwRlY2BSKhBwjjSIRmlY25vEDV8ogpn4pRbwCcUKJniWZCsNRCagD4ttPBUTQqc H06Q== 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 74-v6si5554740pga.50.2018.05.13.01.50.11; Sun, 13 May 2018 01:50:25 -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 S1751375AbeEMIty (ORCPT + 99 others); Sun, 13 May 2018 04:49:54 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:50191 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862AbeEMItx (ORCPT ); Sun, 13 May 2018 04:49:53 -0400 Received: from 79.184.255.167.ipv4.supernova.orange.pl (79.184.255.167) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 481495ebcc56aa5d; Sun, 13 May 2018 10:49:51 +0200 From: "Rafael J. Wysocki" To: Viresh Kumar , Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] cpufreq: fix speedstep_detect_processor()'s return type Date: Sun, 13 May 2018 10:49:23 +0200 Message-ID: <2465997.b7pp1xXBfD@aspire.rjw.lan> In-Reply-To: <20180425024647.woeugwev6qchwert@vireshk-i7> References: <20180424131414.1653-1-luc.vanoostenryck@gmail.com> <20180425024647.woeugwev6qchwert@vireshk-i7> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit 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 On Wednesday, April 25, 2018 4:46:47 AM CEST Viresh Kumar wrote: > On 24-04-18, 15:14, Luc Van Oostenryck wrote: > > speedstep_detect_processor() is declared as returing an > > 'enum speedstep_processor' but use an 'int' in its definition. > > > > Fix this by using 'enum speedstep_processor' in its definition too. > > > > Signed-off-by: Luc Van Oostenryck > > --- > > drivers/cpufreq/speedstep-lib.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/cpufreq/speedstep-lib.c b/drivers/cpufreq/speedstep-lib.c > > index e3a9962ee..cabb6f48e 100644 > > --- a/drivers/cpufreq/speedstep-lib.c > > +++ b/drivers/cpufreq/speedstep-lib.c > > @@ -252,7 +252,7 @@ EXPORT_SYMBOL_GPL(speedstep_get_frequency); > > *********************************************************************/ > > > > /* Keep in sync with the x86_cpu_id tables in the different modules */ > > -unsigned int speedstep_detect_processor(void) > > +enum speedstep_processor speedstep_detect_processor(void) > > { > > struct cpuinfo_x86 *c = &cpu_data(0); > > u32 ebx, msr_lo, msr_hi; > > Acked-by: Viresh Kumar > > Applied, thanks!