From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> utmisc.c needs to include asm-generic/bug.h for warn()/WARN() functions, but it should use WARN_ON() instead of warn_on_slowpath() since arches can provide their own implementation of WARN_ON(), which does not have to use/provide/implement warn_on_slowpath() at all. Just use the front door (WARN_ON). linux-next-20080702/drivers/acpi/utilities/utmisc.c:1027: error: implicit declaration of function 'warn_on_slowpath' Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> --- drivers/acpi/utilities/utmisc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- linux-next-20080702.orig/drivers/acpi/utilities/utmisc.c +++ linux-next-20080702/drivers/acpi/utilities/utmisc.c @@ -42,6 +42,7 @@ */ #include <linux/module.h> +#include <asm-generic/bug.h> #include <acpi/acpi.h> #include <acpi/acnamesp.h> @@ -1024,7 +1025,7 @@ acpi_ut_error(const char *module_name, u { va_list args; - warn_on_slowpath(module_name, line_number); + WARN_ON(1); acpi_os_printf("ACPI Error (%s-%04d): ", module_name, line_number); va_start(args, format); @@ -1039,7 +1040,7 @@ acpi_ut_exception(const char *module_nam { va_list args; - warn_on_slowpath(module_name, line_number); + WARN_ON(1); acpi_os_printf("ACPI Exception (%s-%04d): %s, ", module_name, line_number, acpi_format_exception(status)); --- ~Randy Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA http://linuxplumbersconf.org/ -- 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