Received: by 10.192.165.148 with SMTP id m20csp4696380imm; Tue, 24 Apr 2018 07:03:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48moQJvJow+qXprdCJpl8j1VJG11vxK3HSqtR8Q89pSFrpwLHH2lf4wQew1r/4G5WZ53Dad X-Received: by 2002:a17:902:8b89:: with SMTP id ay9-v6mr25232333plb.100.1524578603452; Tue, 24 Apr 2018 07:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578603; cv=none; d=google.com; s=arc-20160816; b=qwhU+YUdDj5l1f6UaErtVkiBoCQhz5IVELSS1qJ5QQNR++bNVB9I+kNRPllHf2LkmX bXUfS1Hpt7RIMmS6aRjtAqhCW9xeDp8Kn3VS9ajRpT6GJlDcyv9AInsEo5jzSOYNjsm9 umb1zkfp0HtT/86iG071uBTHGCHLSvFYQJNVig6ESPy1wI7tL20AWKzp+r/KPV51G+MT vo9x305qKCQKRJUR29dT1tHasH5Q6jGfpmaV8sPgk2+su22+M+3NyHZ+9yb7cemnm0C7 Bys+aZYuO8D62yP3kIiNiHJ4mz0eQWtBsmPDHyFuFIgEsUtWezG6Bng0XC0KL/KyOVoo kJdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=FbsilDDqzIN7YGWqEtEU29PX0slA9PfU6wb/nR7BfYc=; b=fwlW2N3bQzq7boYQiQGJQOZL5gyYOed/sS4fkW26QsKSFJqY2zwxWEG/707OWs9pIo eXqEmXUgXnaqXKp6x0XIEiECiGI5uUy8yxTkd9VzbMTXpGEGLOFcpD0UFfON+wg7Jz46 fnEOWyIZjln/tZSab60LRRJTVPre+a4jjlaCxe3hApncF4cxKrwgCwtTIB/tcoEXPk8V zSfy8FeRbfB171Ih8rdncNgTffEchEpWtlxLo3//ASsK5X3eNrr9B/6PkVwPKoVGrqSA 7rjz5jXNUlshLvdhJEu6MzhNb7s23RSg2wLTx+evoHTmrU5N8fhjk2VThQ/aIR4nrKy9 8Gvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hd8EH+cU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184si10776255pgl.38.2018.04.24.07.03.08; Tue, 24 Apr 2018 07:03:23 -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=@gmail.com header.s=20161025 header.b=hd8EH+cU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758349AbeDXOAw (ORCPT + 99 others); Tue, 24 Apr 2018 10:00:52 -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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.17.0