Received: by 10.192.165.148 with SMTP id m20csp175054imm; Tue, 24 Apr 2018 19:51:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx48JkxFFk7xPu+ZAGwW7bpx413BLKS5QQhGVQO70NXpUP3NPnpuBE2YqxZHzoSwhjzn0kXZP X-Received: by 2002:a17:902:6e8f:: with SMTP id v15-v6mr27823232plk.245.1524624664175; Tue, 24 Apr 2018 19:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524624664; cv=none; d=google.com; s=arc-20160816; b=nAL/ZPE08Ek8horEDQxH01MjEKMh2UzU/vk6EJ6KKG6xc4T4pv2cLJViBbUKxX98Y2 TRkRqvzHsYidQQaQ63Fp4ov8pzaoIeawcItTW1K/2Qx9TB2QtPPSIVDx+g/EJoMg0aQ/ BI1xMaO6gT6LovTHdCka47GVr1+yn/Soa30nLsmmoliUuqc5p0OjvC7b6U0pJULE8ycB lB9CUBzU7gXlWsY5nixLuVHcvZhFTk1/oPo+fA3sDDX2aBkLApAecuMj7jObxCnhXJfn ZgS8hR7Zr6cId1b4fJWKxxo/3OiwRmDcj/KHdxXRea48T+fFoqkC3K1ZIl4yu3LpnJ78 1IVg== 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:dkim-signature:arc-authentication-results; bh=69hBiPytVpJm2Ipcpli422bzDJ6jiLSxM9VvxD0KyhA=; b=kCZswE1GapNN96LpzC09r4bVR2E5jNuGYbx9HxRnH1LYRCtoPC0NaDAD08brV7zf4a sb7o/kExg/3cSjkPw2SZSQwl69ojfWKcjp11vJlmjTJ+tY1K4cDgmXGdbtDFKV9Dl+VZ N6hurJ3mKEOzSIH3nyuyRoAzpbWgXde8yEGLPJesDQBHFwK58lXPXg4wWJo7y5RY6OQ2 kTvfpJAP9TQTlf5/tt+2Z1LMqf9tAdRBvSxKZfXY94aMtw9vDeTPyuw1ofPbTNBJUqZ8 d17aIDGi/Ee8IJVwMwbve0etLcDUa0nMiPklWlQNytSrNrbSpCtkjRsB85pZWq431sTY hpQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q3L7kdcC; 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 v8-v6si16290094plk.465.2018.04.24.19.50.18; Tue, 24 Apr 2018 19:51:04 -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=Q3L7kdcC; 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 S1751369AbeDYCq6 (ORCPT + 99 others); Tue, 24 Apr 2018 22:46:58 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34581 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751110AbeDYCqx (ORCPT ); Tue, 24 Apr 2018 22:46:53 -0400 Received: by mail-pf0-f193.google.com with SMTP id a14so3407278pfi.1 for ; Tue, 24 Apr 2018 19:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=69hBiPytVpJm2Ipcpli422bzDJ6jiLSxM9VvxD0KyhA=; b=Q3L7kdcC0/IfAydR02QNY4Tygd0sSWEI9cbJEJUE1jNUohsifKUcdW4+ArNyqxYQD+ zQAtByIVNiXLj5+Eduo/yKzJ1wNcx5yHKOVak068Zf9IfnO0md5KwhaMQo8AlhYAyTIW wIVyiJWlUz4L1CkJI8UMV1CfoDsHyrDkIPfw4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=69hBiPytVpJm2Ipcpli422bzDJ6jiLSxM9VvxD0KyhA=; b=GhLol4Ks2RYgMhJim2UMwA7DvaPMZRlBv2H+8Z49TblyVZ9EG4B2nMbVocQe1h+CJI CxRabIxLMjqLAwmoO4HNCjKTAYUn+Y7qye2lLeEWdi4KNlj+NXgo60G/XxLk2nPzwJUl Q6F9lBQVOKy6adyhm4aPTPKhalgax/HxKXRTdawQVC8V1mG59AMXVCEgTVf8FM9WwMKW I9+KwkBoVCpEBrc/2XCRepvVa9qQ/rOuT6vrb1/CdXt8ved3J2vgyAVkCgkLYAI21aBY kf/oMTJhWJvlD6b5f5WO1lSTf65Vf+kQwJMNnb+Knfj0lEFY/IWxxVDYAv9dy3z7B+yh NGlA== X-Gm-Message-State: ALQs6tC/s6XcrKbYtOa5jizs6hHpVYzJzS2wH2awP0VbfFAtKA2frt53 FbH+TC6WzCRtNXnN9GLMfSgv+A== X-Received: by 10.99.117.2 with SMTP id q2mr22595905pgc.248.1524624412783; Tue, 24 Apr 2018 19:46:52 -0700 (PDT) Received: from localhost ([122.172.61.40]) by smtp.gmail.com with ESMTPSA id g21sm26854105pfi.143.2018.04.24.19.46.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 19:46:51 -0700 (PDT) Date: Wed, 25 Apr 2018 08:16:47 +0530 From: Viresh Kumar To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: Re: [PATCH] cpufreq: fix speedstep_detect_processor()'s return type Message-ID: <20180425024647.woeugwev6qchwert@vireshk-i7> References: <20180424131414.1653-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424131414.1653-1-luc.vanoostenryck@gmail.com> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- viresh