Commit 46ca0d15 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Benjamin Herrenschmidt

powerpc/ps3: clear_bit()/set_bit() operate on unsigned longs

This fixes these compiler warning:

arch/powerpc/platforms/ps3/interrupt.c:109: warning: passing argument 2 of 'clear_bit' from incompatible pointer type
arch/powerpc/platforms/ps3/interrupt.c:130: warning: passing argument 2 of 'set_bit' from incompatible pointer type
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Acked-by: default avatarGeoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent b17b3df1
...@@ -60,6 +60,8 @@ ...@@ -60,6 +60,8 @@
* gives a usable range of plug values of {NUM_ISA_INTERRUPTS..63}. Note * gives a usable range of plug values of {NUM_ISA_INTERRUPTS..63}. Note
* that there is no constraint on how many in this set an individual thread * that there is no constraint on how many in this set an individual thread
* can acquire. * can acquire.
*
* The mask is declared as unsigned long so we can use set/clear_bit on it.
*/ */
#define PS3_BMP_MINALIGN 64 #define PS3_BMP_MINALIGN 64
...@@ -68,7 +70,7 @@ struct ps3_bmp { ...@@ -68,7 +70,7 @@ struct ps3_bmp {
struct { struct {
u64 status; u64 status;
u64 unused_1[3]; u64 unused_1[3];
u64 mask; unsigned long mask;
u64 unused_2[3]; u64 unused_2[3];
}; };
u64 ipi_debug_brk_mask; u64 ipi_debug_brk_mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment