Commit e54d9c77 authored by Stephen Boyd's avatar Stephen Boyd Committed by Greg Kroah-Hartman

coresight: Mark some functions static

These functions aren't used outside the file they're in. Mark them
static to indicate as such and silence tools like sparse.

Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
[Dropped changes in coresight-cti.c and coresight-etb10.c]
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200518180242.7916-17-mathieu.poirier@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fac28c4d
...@@ -429,8 +429,7 @@ static int cti_plat_create_impdef_connections(struct device *dev, ...@@ -429,8 +429,7 @@ static int cti_plat_create_impdef_connections(struct device *dev,
} }
/* get the hardware configuration & connection data. */ /* get the hardware configuration & connection data. */
int cti_plat_get_hw_data(struct device *dev, static int cti_plat_get_hw_data(struct device *dev, struct cti_drvdata *drvdata)
struct cti_drvdata *drvdata)
{ {
int rc = 0; int rc = 0;
struct cti_device *cti_dev = &drvdata->ctidev; struct cti_device *cti_dev = &drvdata->ctidev;
......
...@@ -1139,7 +1139,7 @@ static int cti_create_con_attr_set(struct device *dev, int con_idx, ...@@ -1139,7 +1139,7 @@ static int cti_create_con_attr_set(struct device *dev, int con_idx,
} }
/* create the array of group pointers for the CTI sysfs groups */ /* create the array of group pointers for the CTI sysfs groups */
int cti_create_cons_groups(struct device *dev, struct cti_device *ctidev) static int cti_create_cons_groups(struct device *dev, struct cti_device *ctidev)
{ {
int nr_groups; int nr_groups;
......
...@@ -511,7 +511,7 @@ static inline bool acpi_validate_dsd_graph(const union acpi_object *graph) ...@@ -511,7 +511,7 @@ static inline bool acpi_validate_dsd_graph(const union acpi_object *graph)
} }
/* acpi_get_dsd_graph - Find the _DSD Graph property for the given device. */ /* acpi_get_dsd_graph - Find the _DSD Graph property for the given device. */
const union acpi_object * static const union acpi_object *
acpi_get_dsd_graph(struct acpi_device *adev) acpi_get_dsd_graph(struct acpi_device *adev)
{ {
int i; int i;
...@@ -574,7 +574,7 @@ acpi_validate_coresight_graph(const union acpi_object *cs_graph) ...@@ -574,7 +574,7 @@ acpi_validate_coresight_graph(const union acpi_object *cs_graph)
* Returns the pointer to the CoreSight Graph Package when found. Otherwise * Returns the pointer to the CoreSight Graph Package when found. Otherwise
* returns NULL. * returns NULL.
*/ */
const union acpi_object * static const union acpi_object *
acpi_get_coresight_graph(struct acpi_device *adev) acpi_get_coresight_graph(struct acpi_device *adev)
{ {
const union acpi_object *graph_list, *graph; const union acpi_object *graph_list, *graph;
......
...@@ -361,7 +361,7 @@ static const struct attribute_group coresight_tmc_mgmt_group = { ...@@ -361,7 +361,7 @@ static const struct attribute_group coresight_tmc_mgmt_group = {
.name = "mgmt", .name = "mgmt",
}; };
const struct attribute_group *coresight_tmc_groups[] = { static const struct attribute_group *coresight_tmc_groups[] = {
&coresight_tmc_group, &coresight_tmc_group,
&coresight_tmc_mgmt_group, &coresight_tmc_mgmt_group,
NULL, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment