summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2021-08-16 16:00:15 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-08-16 16:00:15 +0200
commit6cf776dd8ddf5b1ec536a0d05bd7def5f6d54f6e (patch)
treefddbdd51e32770e980a24d62b99486fa19c31178
parent35b874af5fb9ab9420c5e0e4b34f1152d825d848 (diff)
Add missing static annotation for the private functions
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--src/commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands.c b/src/commands.c
index d1d1e64..4a7bc22 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -33,7 +33,7 @@ static struct nla_policy thermal_genl_policy[THERMAL_GENL_ATTR_MAX + 1] = {
[THERMAL_GENL_ATTR_CDEV_NAME] = { .type = NLA_STRING },
};
-int parse_tz_get(struct genl_info *info, struct thermal_zone **tz)
+static int parse_tz_get(struct genl_info *info, struct thermal_zone **tz)
{
struct nlattr *attr;
struct thermal_zone *__tz = NULL;
@@ -114,7 +114,7 @@ int parse_cdev_get(struct genl_info *info, struct thermal_cdev **cdev)
return 0;
}
-int parse_tz_get_trip(struct genl_info *info, struct thermal_zone *tz)
+static int parse_tz_get_trip(struct genl_info *info, struct thermal_zone *tz)
{
struct nlattr *attr;
struct thermal_trip *__tt = NULL;
@@ -153,7 +153,7 @@ int parse_tz_get_trip(struct genl_info *info, struct thermal_zone *tz)
return 0;
}
-int parse_tz_get_temp(struct genl_info *info, struct thermal_zone *tz)
+static int parse_tz_get_temp(struct genl_info *info, struct thermal_zone *tz)
{
int id = -1;
@@ -172,7 +172,7 @@ int parse_tz_get_temp(struct genl_info *info, struct thermal_zone *tz)
return 0;
}
-int parse_tz_get_gov(struct genl_info *info, struct thermal_zone *tz)
+static int parse_tz_get_gov(struct genl_info *info, struct thermal_zone *tz)
{
int id = -1;