Fix section conflict of acpi_rs_match_vendor_resource

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Martin Michlmayr <tbm@xxxxxxxxxx>

--- a/drivers/acpi/resources/rsxface.c
+++ b/drivers/acpi/resources/rsxface.c
@@ -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;

-- 
Martin Michlmayr
http://www.cyrius.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux