]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:28:55 +0000 (16:28 +0200)
commit4589bb97e42f2cfc5cbf0fe09d9e5afad905ec62
tree043e07da1f2bf46f925071c6009413116c0ed3ff
parentfb2d057539eda67ec7cfc369bf587e6518a9b99d
pm:cpupower: Add missing powercap_set_enabled() stub function

[ Upstream commit 4b80294fb53845dc5c98cca0c989da09150f2ca9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/cpupower/lib/powercap.c