Skip to content

Commit

Permalink
[POWERPC] Fix is_power_of_4(x) compile error
Browse files Browse the repository at this point in the history
When building an 85xx kernel we get:

  CC      arch/powerpc/mm/pgtable_32.o
arch/powerpc/mm/pgtable_32.c: In function 'io_block_mapping':
arch/powerpc/mm/pgtable_32.c:330: error: expected identifier before '(' token
arch/powerpc/mm/pgtable_32.c:330: error: expected statement before ')' token

The is_power_of_2(x) fixup patch left an extra ')' on the is_power_of_4 macro.
There is a similiar issue on the arch/ppc side.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Kumar Gala committed Feb 9, 2007
1 parent d003e7a commit 8dabba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/pgtable_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void __init mapin_ram(void)
}

/* is x a power of 4? */
#define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1))
#define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1)

/*
* Set up a mapping for a block of I/O.
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/mm/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void __init mapin_ram(void)
}

/* is x a power of 4? */
#define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1))
#define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1)

/*
* Set up a mapping for a block of I/O.
Expand Down

0 comments on commit 8dabba5

Please sign in to comment.