diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-19 19:16:31 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-20 14:45:32 +0100 |
commit | 0513d57ad00e239615eb71e2fc73701bf810a4b9 (patch) | |
tree | 437a9a6cdfde0d23adcf10747020a59f872f0d93 | |
parent | 418a8fa44788190802291efbcf7c6365836ba7ee (diff) |
tools/power/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | tools/power/cpupower/utils/cpupower.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/cpupower.c b/tools/power/cpupower/utils/cpupower.c index 8ac3304a9957..faf22aff456e 100644 --- a/tools/power/cpupower/utils/cpupower.c +++ b/tools/power/cpupower/utils/cpupower.c @@ -6,6 +6,8 @@ * kernel git repo): subcommand builtins and param parsing. */ + +#include <linux/array_size.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -20,7 +22,6 @@ #include "helpers/helpers.h" #include "helpers/bitmask.h" -#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) static int cmd_help(int argc, const char **argv); |