From: Ben Hutchings Date: Sat, 1 Dec 2018 19:22:50 +0000 (+0000) Subject: libcpupower: Hide private function X-Git-Tag: archive/raspbian/5.10.209-2+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dc8f8fd4b5c469fc422d9823b41a334d742bb688;p=linux.git libcpupower: Hide private function cpupower_read_sysfs() (previously known as sysfs_read_file()) is an internal function in libcpupower and should not be exported when libcpupower is a shared library. Change its visibility to "hidden". Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/all Gbp-Pq: Name libcpupower-hide-private-function.patch --- diff --git a/tools/power/cpupower/lib/cpupower.c b/tools/power/cpupower/lib/cpupower.c index 3656e697537..e0b57121e0a 100644 --- a/tools/power/cpupower/lib/cpupower.c +++ b/tools/power/cpupower/lib/cpupower.c @@ -14,6 +14,7 @@ #include "cpupower.h" #include "cpupower_intern.h" +__attribute__((visibility("hidden"))) unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen) { int fd;