From: Andrew Morton All the world's a Vax! Cc: Dave Hansen Cc: Greg KH Signed-off-by: Andrew Morton --- lib/kobject.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletion(-) diff -puN lib/kobject.c~gregkh-driver-warn-when-statically-allocated-kobjects-are-used-fix lib/kobject.c --- 25/lib/kobject.c~gregkh-driver-warn-when-statically-allocated-kobjects-are-used-fix 2006-05-14 07:21:46.000000000 -0700 +++ 25-akpm/lib/kobject.c 2006-05-14 07:29:08.000000000 -0700 @@ -122,6 +122,7 @@ char *kobject_get_path(struct kobject *k return path; } +#ifdef CONFIG_X86_32 static int ptr_in_range(void *ptr, void *start, void *end) { /* @@ -155,7 +156,11 @@ warn: /* dump_stack(); */ pr_debug("---- end silly warning ----\n"); } - +#else +static void verify_dynamic_kobject_allocation(struct kobject *kobj) +{ +} +#endif /** * kobject_init - initialize object. _