Skip to contentSkip to conversation

Fix section conflict of acpi_rs_match_vendor_resource

PATCH Martin Michlmayr 1 participant 1 message May 15, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

Building with GCC 4.2, I get the following error:

CC drivers/acpi/resources/rsxface.o
drivers/acpi/resources/rsxface.c:479: error: __ksymtab_acpi_rs_match_vendor_resource causes a section type conflict

This is because acpi_rs_match_vendor_resource is both declared static and exported.

drivers/acpi/resources/rsxface.c +2 -2
@@ -64,7 +64,7 @@ ACPI_MODULE_NAME("rsxface")
 	ACPI_COPY_FIELD(out, in, address_length);            \
 	ACPI_COPY_FIELD(out, in, resource_source);
 /* Local prototypes */
-static acpi_status
+acpi_status
 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context);
 
 static acpi_status
@@ -428,7 +428,7 @@ ACPI_EXPORT_SYMBOL(acpi_get_vendor_resource)
  * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID
  *
  ******************************************************************************/
-static acpi_status
+acpi_status
 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
 {
 	struct acpi_vendor_walk_info *info = context;
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/