linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpupower: Fix build error in cpufreq-info
@ 2016-01-18 15:14 Shreyas B. Prabhu
  2016-02-17 14:29 ` Thomas Renninger
  0 siblings, 1 reply; 2+ messages in thread
From: Shreyas B. Prabhu @ 2016-01-18 15:14 UTC (permalink / raw)
  To: trenn; +Cc: linux-pm, linux-kernel, rafael.j.wysocki, jtanenba,
	Shreyas B. Prabhu

Fix the following build error by including limits.h -

utils/cpufreq-info.c: In function ‘get_latency’:
utils/cpufreq-info.c:437:29: error: ‘UINT_MAX’ undeclared (first use in
this function)
  if (!latency || latency == UINT_MAX) {
                             ^
Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com>
Fixes: e98f033f94f3 (cpupower: fix how "cpupower frequency-info" interprets latency)
---
 tools/power/cpupower/utils/cpufreq-info.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/power/cpupower/utils/cpufreq-info.c b/tools/power/cpupower/utils/cpufreq-info.c
index 8f3f5bb9c74e..590d12a25f6e 100644
--- a/tools/power/cpupower/utils/cpufreq-info.c
+++ b/tools/power/cpupower/utils/cpufreq-info.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <limits.h>
 
 #include <getopt.h>
 
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpupower: Fix build error in cpufreq-info
  2016-01-18 15:14 [PATCH] cpupower: Fix build error in cpufreq-info Shreyas B. Prabhu
@ 2016-02-17 14:29 ` Thomas Renninger
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Renninger @ 2016-02-17 14:29 UTC (permalink / raw)
  To: Shreyas B. Prabhu; +Cc: rafael.j.wysocki, jtanenba, linux-kernel, linux-pm

On Monday, January 18, 2016 08:44:43 PM Shreyas B. Prabhu wrote:
> Fix the following build error by including limits.h -
> 
> utils/cpufreq-info.c: In function ‘get_latency’:
> utils/cpufreq-info.c:437:29: error: ‘UINT_MAX’ undeclared (first use in
> this function)
>   if (!latency || latency == UINT_MAX) {
>                              ^
> Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com>

Signed-off-by: Thomas Renninger <trenn@suse.com>

Builds for me by luck, thanks!


       Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-17 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-18 15:14 [PATCH] cpupower: Fix build error in cpufreq-info Shreyas B. Prabhu
2016-02-17 14:29 ` Thomas Renninger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).