From patchwork Tue Apr 24 13:14:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 10360049 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C76360225 for ; Tue, 24 Apr 2018 14:01:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B63B28EF9 for ; Tue, 24 Apr 2018 14:01:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09C0C28B78; Tue, 24 Apr 2018 14:01:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEF3929036 for ; Tue, 24 Apr 2018 14:01:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757877AbeDXOAr (ORCPT ); Tue, 24 Apr 2018 10:00:47 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38990 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757888AbeDXNOR (ORCPT ); Tue, 24 Apr 2018 09:14:17 -0400 Received: by mail-wm0-f67.google.com with SMTP id b21so788725wme.4; Tue, 24 Apr 2018 06:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FbsilDDqzIN7YGWqEtEU29PX0slA9PfU6wb/nR7BfYc=; b=hd8EH+cUUv3e7GC9fUXlELhAnlT0uuc0TV8RCHX7ySvl7Stzr9AT+9NfJ99LYHkjlA paENN+8ooZ9BOl+kXqyViJ4R83t1otXnJzJbm+QdZvHZVUSOLhrVs0UzfXIURZ9gQHuD g8cMr6t3+6PW1cyCBO1kxxB2ZTbEx5RN6SOA2Livyp+fYaXq65IuVPJqeaOJqs4NrSzs AXpTeIAKw1bK7hXRl8lzvqnXwLBc1pn23sh7cbHAiPL9/zv+360TQagCrrHEq85SZi+S e+0BNxoFdWQef/deTcX41wnLtS1Md+AvrcNL0ZeKkCrAAn7uVpuCZTrWb4FOKoTZBYBQ T3Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FbsilDDqzIN7YGWqEtEU29PX0slA9PfU6wb/nR7BfYc=; b=J/fXz/9EWTN1BTMFUlXAQLj0c9v5c+rAsb/5ExeDXu1AD/Pm/4EYCUn8Glb+B1zCrT efp/Bfvw2OW0jh+Zci/Kt05aG2xGryLLRqvFUBSXQch4gXH0hp+OziG8T9oeIY/ScDQ/ NVJuSRn9Iafkgt79rW9GqytoCypFVDhc4cj6gYtduYk6WSGS6XsEywnbR9W2Hx/qyXPP XBrZbDZSemXmDgcF71kznJeDL+0ro7/3iF0wCz0C/i3YzREFNEmhPp08UcHJ/yKZhn/S o/6cQjp4yU25t17q6dVtFEBGG0BtVegd8JTn5lDGdKFbFBTmqTIAE5qQpIFVZWr1/gAd wHAw== X-Gm-Message-State: ALQs6tAUJ/gHgjVX6l/8HDoMbY2pBHPQb01J4U0l5ve62wSsN4XrN3qi e4kWm5WU8fvmKMSJVQfZHq/qWr4T X-Google-Smtp-Source: AIpwx4/KHfnrDF4k+muhTuYUXwJrX36jsQAYZBkmRsj5/ygKEydhvnPsywrdmHx9FxcCQvhoKJDJiA== X-Received: by 10.80.187.14 with SMTP id y14mr33178648ede.175.1524575655461; Tue, 24 Apr 2018 06:14:15 -0700 (PDT) Received: from localhost.localdomain ([91.180.9.177]) by smtp.gmail.com with ESMTPSA id x17sm8140764edx.53.2018.04.24.06.14.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:14:14 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH] cpufreq: fix speedstep_detect_processor()'s return type Date: Tue, 24 Apr 2018 15:14:13 +0200 Message-Id: <20180424131414.1653-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Viresh Kumar --- 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;