Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpupower: Fix build error in cpufreq-info

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)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Shreyas B. Prabhu and committed by
Rafael J. Wysocki
38cb76a3 e98f033f

+1
+1
tools/power/cpupower/utils/cpufreq-info.c
··· 10 10 #include <errno.h> 11 11 #include <stdlib.h> 12 12 #include <string.h> 13 + #include <limits.h> 13 14 14 15 #include <getopt.h> 15 16