diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-03-11 10:04:30 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-03-12 04:50:56 -0400 |
| commit | bf567dd38993a51e4f13d1806985e9aa596f2519 (patch) | |
| tree | 5b4edc08b64692907579ac2434bad812c5ec9a2d | |
| parent | c62c15a92455bc60e9ab4d01b6c047a74dd42c5e (diff) | |
ACPI / configfs: Mark local data structures static
There is no need to have non-static local data structures. otherwise
sparse is not happy:
CHECK drivers/acpi/acpi_configfs.c
drivers/acpi/acpi_configfs.c:100:31: warning: symbol 'acpi_table_bin_attrs' was not declared. Should it be static?
drivers/acpi/acpi_configfs.c:196:27: warning: symbol 'acpi_table_attrs' was not declared. Should it be static?
drivers/acpi/acpi_configfs.c:236:34: warning: symbol 'acpi_table_group_ops' was not declared. Should it be static?
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
| -rw-r--r-- | drivers/acpi/acpi_configfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c index 78bb6ad1aa26..81bfc6197293 100644 --- a/drivers/acpi/acpi_configfs.c +++ b/drivers/acpi/acpi_configfs.c | |||
| @@ -97,7 +97,7 @@ static ssize_t acpi_table_aml_read(struct config_item *cfg, | |||
| 97 | 97 | ||
| 98 | CONFIGFS_BIN_ATTR(acpi_table_, aml, NULL, MAX_ACPI_TABLE_SIZE); | 98 | CONFIGFS_BIN_ATTR(acpi_table_, aml, NULL, MAX_ACPI_TABLE_SIZE); |
| 99 | 99 | ||
| 100 | struct configfs_bin_attribute *acpi_table_bin_attrs[] = { | 100 | static struct configfs_bin_attribute *acpi_table_bin_attrs[] = { |
| 101 | &acpi_table_attr_aml, | 101 | &acpi_table_attr_aml, |
| 102 | NULL, | 102 | NULL, |
| 103 | }; | 103 | }; |
| @@ -193,7 +193,7 @@ CONFIGFS_ATTR_RO(acpi_table_, oem_revision); | |||
| 193 | CONFIGFS_ATTR_RO(acpi_table_, asl_compiler_id); | 193 | CONFIGFS_ATTR_RO(acpi_table_, asl_compiler_id); |
| 194 | CONFIGFS_ATTR_RO(acpi_table_, asl_compiler_revision); | 194 | CONFIGFS_ATTR_RO(acpi_table_, asl_compiler_revision); |
| 195 | 195 | ||
| 196 | struct configfs_attribute *acpi_table_attrs[] = { | 196 | static struct configfs_attribute *acpi_table_attrs[] = { |
| 197 | &acpi_table_attr_signature, | 197 | &acpi_table_attr_signature, |
| 198 | &acpi_table_attr_length, | 198 | &acpi_table_attr_length, |
| 199 | &acpi_table_attr_revision, | 199 | &acpi_table_attr_revision, |
| @@ -233,7 +233,7 @@ static void acpi_table_drop_item(struct config_group *group, | |||
| 233 | acpi_tb_unload_table(table->index); | 233 | acpi_tb_unload_table(table->index); |
| 234 | } | 234 | } |
| 235 | 235 | ||
| 236 | struct configfs_group_operations acpi_table_group_ops = { | 236 | static struct configfs_group_operations acpi_table_group_ops = { |
| 237 | .make_item = acpi_table_make_item, | 237 | .make_item = acpi_table_make_item, |
| 238 | .drop_item = acpi_table_drop_item, | 238 | .drop_item = acpi_table_drop_item, |
| 239 | }; | 239 | }; |
