From: Tang Chen Date: Wed, 20 Feb 2013 02:14:12 +0000 (+1100) Subject: Bug fix: Fix section mismatch problem of release_firmware_map_entry(). X-Git-Tag: next-20130220~1^2~551 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c9ff89f89d7eee66ddf91bc031dc392fa3c01563;p=karo-tx-linux.git Bug fix: Fix section mismatch problem of release_firmware_map_entry(). The function release_firmware_map_entry() references the function __meminit firmware_map_find_entry_in_list(). So it should also have __meminit. And since the firmware_map_entry->kobj is initialized with memmap_ktype, the memmap_ktype should also be prefixed by __refdata. Signed-off-by: Tang Chen Cc: Jiang Liu Cc: Jianguo Wu Cc: Kamezawa Hiroyuki Cc: Lai Jiangshan Cc: Yasuaki Ishimatsu Signed-off-by: Andrew Morton --- diff --git a/drivers/firmware/memmap.c b/drivers/firmware/memmap.c index 071017918a57..658fdd485cdd 100644 --- a/drivers/firmware/memmap.c +++ b/drivers/firmware/memmap.c @@ -103,7 +103,7 @@ to_memmap_entry(struct kobject *kobj) return container_of(kobj, struct firmware_map_entry, kobj); } -static void release_firmware_map_entry(struct kobject *kobj) +static void __meminit release_firmware_map_entry(struct kobject *kobj) { struct firmware_map_entry *entry = to_memmap_entry(kobj); @@ -127,7 +127,7 @@ static void release_firmware_map_entry(struct kobject *kobj) kfree(entry); } -static struct kobj_type memmap_ktype = { +static struct kobj_type __refdata memmap_ktype = { .release = release_firmware_map_entry, .sysfs_ops = &memmap_attr_ops, .default_attrs = def_attrs,