Skip to content

Commit c62c15a

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI / configfs: Mark local functions static
There is no need to have non-static local functions. otherwise compiler is not happy: CC [M] drivers/acpi/acpi_configfs.o drivers/acpi/acpi_configfs.c:105:9: warning: no previous prototype for ‘acpi_table_signature_show’ [-Wmissing-prototypes] ssize_t acpi_table_signature_show(struct config_item *cfg, char *str) ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/acpi/acpi_configfs.c:115:9: warning: no previous prototype for ‘acpi_table_length_show’ [-Wmissing-prototypes] ssize_t acpi_table_length_show(struct config_item *cfg, char *str) ^~~~~~~~~~~~~~~~~~~~~~ ... Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d276709 commit c62c15a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

drivers/acpi/acpi_configfs.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct configfs_bin_attribute *acpi_table_bin_attrs[] = {
102102
NULL,
103103
};
104104

105-
ssize_t acpi_table_signature_show(struct config_item *cfg, char *str)
105+
static ssize_t acpi_table_signature_show(struct config_item *cfg, char *str)
106106
{
107107
struct acpi_table_header *h = get_header(cfg);
108108

@@ -112,7 +112,7 @@ ssize_t acpi_table_signature_show(struct config_item *cfg, char *str)
112112
return sprintf(str, "%.*s\n", ACPI_NAME_SIZE, h->signature);
113113
}
114114

115-
ssize_t acpi_table_length_show(struct config_item *cfg, char *str)
115+
static ssize_t acpi_table_length_show(struct config_item *cfg, char *str)
116116
{
117117
struct acpi_table_header *h = get_header(cfg);
118118

@@ -122,7 +122,7 @@ ssize_t acpi_table_length_show(struct config_item *cfg, char *str)
122122
return sprintf(str, "%d\n", h->length);
123123
}
124124

125-
ssize_t acpi_table_revision_show(struct config_item *cfg, char *str)
125+
static ssize_t acpi_table_revision_show(struct config_item *cfg, char *str)
126126
{
127127
struct acpi_table_header *h = get_header(cfg);
128128

@@ -132,7 +132,7 @@ ssize_t acpi_table_revision_show(struct config_item *cfg, char *str)
132132
return sprintf(str, "%d\n", h->revision);
133133
}
134134

135-
ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str)
135+
static ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str)
136136
{
137137
struct acpi_table_header *h = get_header(cfg);
138138

@@ -142,7 +142,7 @@ ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str)
142142
return sprintf(str, "%.*s\n", ACPI_OEM_ID_SIZE, h->oem_id);
143143
}
144144

145-
ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str)
145+
static ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str)
146146
{
147147
struct acpi_table_header *h = get_header(cfg);
148148

@@ -152,7 +152,7 @@ ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str)
152152
return sprintf(str, "%.*s\n", ACPI_OEM_TABLE_ID_SIZE, h->oem_table_id);
153153
}
154154

155-
ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str)
155+
static ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str)
156156
{
157157
struct acpi_table_header *h = get_header(cfg);
158158

@@ -162,7 +162,8 @@ ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str)
162162
return sprintf(str, "%d\n", h->oem_revision);
163163
}
164164

165-
ssize_t acpi_table_asl_compiler_id_show(struct config_item *cfg, char *str)
165+
static ssize_t acpi_table_asl_compiler_id_show(struct config_item *cfg,
166+
char *str)
166167
{
167168
struct acpi_table_header *h = get_header(cfg);
168169

@@ -172,8 +173,8 @@ ssize_t acpi_table_asl_compiler_id_show(struct config_item *cfg, char *str)
172173
return sprintf(str, "%.*s\n", ACPI_NAME_SIZE, h->asl_compiler_id);
173174
}
174175

175-
ssize_t acpi_table_asl_compiler_revision_show(struct config_item *cfg,
176-
char *str)
176+
static ssize_t acpi_table_asl_compiler_revision_show(struct config_item *cfg,
177+
char *str)
177178
{
178179
struct acpi_table_header *h = get_header(cfg);
179180

0 commit comments

Comments
 (0)