]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpupower: remove extern declarations in cmd functions
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Thu, 2 Apr 2026 16:15:32 +0000 (21:45 +0530)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 Apr 2026 17:25:32 +0000 (11:25 -0600)
commit2fd3b83cacfb9160b896fb26117328eeb0598c54
treeca696851fcc1bb5ee889e730bfa008821b0c9b88
parent8bbd81ddbe174aa8488db7971fe2717cb636a46c
cpupower: remove extern declarations in cmd functions

extern char *optarg and extern int optind, opterr, optopt are
already declared by <getopt.h>, which is included at the top of
the file. Repeating extern declarations inside a function body
is misleading and unnecessary.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/utils/cpufreq-info.c
tools/power/cpupower/utils/cpufreq-set.c
tools/power/cpupower/utils/cpuidle-info.c
tools/power/cpupower/utils/cpuidle-set.c
tools/power/cpupower/utils/cpupower-info.c
tools/power/cpupower/utils/cpupower-set.c