Message ID | 1453130083-16055-1-git-send-email-shreyas@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Rafael Wysocki |
Headers | show |
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 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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>
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(+)