]> git.baikalelectronics.ru Git - kernel.git/commitdiff
coresight: Mark some functions static
authorStephen Boyd <swboyd@chromium.org>
Mon, 18 May 2020 18:02:35 +0000 (12:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 May 2020 14:31:17 +0000 (16:31 +0200)
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: Stephen Boyd <swboyd@chromium.org>
[Dropped changes in coresight-cti.c and coresight-etb10.c]
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200518180242.7916-17-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-cti-platform.c
drivers/hwtracing/coresight/coresight-cti-sysfs.c
drivers/hwtracing/coresight/coresight-platform.c
drivers/hwtracing/coresight/coresight-tmc.c

index b44d83142b620a76882ac8028db0a707c4896087..c6c0c9b4827e7c8f745fa18100cc227c232fb058 100644 (file)
@@ -429,8 +429,7 @@ static int cti_plat_create_impdef_connections(struct device *dev,
 }
 
 /* get the hardware configuration & connection data. */
-int cti_plat_get_hw_data(struct device *dev,
-                        struct cti_drvdata *drvdata)
+static int cti_plat_get_hw_data(struct device *dev, struct cti_drvdata *drvdata)
 {
        int rc = 0;
        struct cti_device *cti_dev = &drvdata->ctidev;
index 1f8fb7c15e802f233ad3250698c09e42157c0222..a095db03d2bc1199fd038d55d6a17e9a89fcce5e 100644 (file)
@@ -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 */
-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;
 
index d58dcd0ab51466458f29f63cde83bb321ff11527..e4912abda3aa24559700feacd3dea4859920df06 100644 (file)
@@ -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. */
-const union acpi_object *
+static const union acpi_object *
 acpi_get_dsd_graph(struct acpi_device *adev)
 {
        int i;
@@ -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 NULL.
  */
-const union acpi_object *
+static const union acpi_object *
 acpi_get_coresight_graph(struct acpi_device *adev)
 {
        const union acpi_object *graph_list, *graph;
index 1cf82fa582898dd988247d8589230812e7c54ac7..39fba1d16e6e86e66fac3a9139f1d33a37341c12 100644 (file)
@@ -361,7 +361,7 @@ static const struct attribute_group coresight_tmc_mgmt_group = {
        .name = "mgmt",
 };
 
-const struct attribute_group *coresight_tmc_groups[] = {
+static const struct attribute_group *coresight_tmc_groups[] = {
        &coresight_tmc_group,
        &coresight_tmc_mgmt_group,
        NULL,