Skip to content

Commit

Permalink
firmware/memmap: avoid type conflicts with the generic memmap_init()
Browse files Browse the repository at this point in the history
Fix this build error:

  drivers/firmware/memmap.c:240:19: error: conflicting types for 'memmap_init'
  arch/ia64/include/asm/pgtable.h:565:17: note: previous declaration of 'memmap_init' was here

Signed-off-by: Fengguang Wu <[email protected]>
Cc: Bernhard Walle <[email protected]>
Cc: Glauber Costa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fengguang Wu authored and torvalds committed Oct 19, 2012
1 parent bbc2e3e commit bac7169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/firmware/memmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static ssize_t memmap_attr_show(struct kobject *kobj,
* firmware_map_add() or firmware_map_add_early() afterwards, the entries
* are not added to sysfs.
*/
static int __init memmap_init(void)
static int __init firmware_memmap_init(void)
{
struct firmware_map_entry *entry;

Expand All @@ -246,5 +246,5 @@ static int __init memmap_init(void)

return 0;
}
late_initcall(memmap_init);
late_initcall(firmware_memmap_init);

0 comments on commit bac7169

Please sign in to comment.