Skip to content

Commit 9f42ef4

Browse files
geertutorvalds
authored andcommitted
blackfin, m68k: Fix flat_set_persistent() for unsigned long to u32 changes
Several variables had their types changed from unsigned long to u32, but the arch-specific implementations of flat_set_persistent() weren't updated, leading to compiler warnings on blackfin and m68k: fs/binfmt_flat.c: In function ‘load_flat_file’: fs/binfmt_flat.c:799: warning: passing argument 2 of ‘flat_set_persistent’ from incompatible pointer type Fixes: 468138d ("binfmt_flat: flat_{get,put}_addr_from_rp() should be able to fail") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a860542 commit 9f42ef4

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎arch/blackfin/include/asm/flat.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ flat_get_relocate_addr (unsigned long relval)
4444
return relval & 0x03ffffff; /* Mask out top 6 bits */
4545
}
4646

47-
static inline int flat_set_persistent(unsigned long relval,
48-
unsigned long *persistent)
47+
static inline int flat_set_persistent(u32 relval, u32 *persistent)
4948
{
5049
int type = (relval >> 26) & 7;
5150
if (type == 3) {

‎arch/m68k/include/asm/flat.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ static inline int flat_put_addr_at_rp(u32 __user *rp, u32 addr, u32 rel)
3030
}
3131
#define flat_get_relocate_addr(rel) (rel)
3232

33-
static inline int flat_set_persistent(unsigned long relval,
34-
unsigned long *persistent)
33+
static inline int flat_set_persistent(u32 relval, u32 *persistent)
3534
{
3635
return 0;
3736
}

0 commit comments

Comments
 (0)