]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pm:cpupower: Add missing powercap_set_enabled() stub function
authorJohn B. Wyatt IV <jwyatt@redhat.com>
Thu, 5 Sep 2024 02:19:08 +0000 (22:19 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 6 Sep 2024 00:48:57 +0000 (18:48 -0600)
commit4b80294fb53845dc5c98cca0c989da09150f2ca9
tree857dcb927571d48880bad1b00ffd454e01e31a2e
parent76fb981ad6774b82f06703c896b492c8659b543b
pm:cpupower: Add missing powercap_set_enabled() stub function

There was a symbol listed in the powercap.h file that was not implemented.
Implement it with a stub return of 0.

Programs like SWIG require that functions that are defined in the
headers be implemented.

Fixes: c2294c1496b7 ("cpupower: Introduce powercap intel-rapl library and powercap-info command")
Suggested-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: John B. Wyatt IV <jwyatt@redhat.com>
Signed-off-by: John B. Wyatt IV <sageofredondo@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/lib/powercap.c