Skip to contentSkip to conversation

h8300: binfmt_flat: Fix build error

PATCH New Guenter Roeck 1 participant 1 message Jul 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 h8300: binfmt_flat: Fix build error

arch/h8300/include/asm/flat.h: In function ‘flat_get_addr_from_rp’:
arch/h8300/include/asm/flat.h:28:3: error: expected ‘)’ before ‘val’

Fixes 468138d785106 ("binfmt_flat: flat_{get,put}_addr_from_rp() ...")
Cc Al Viro <[email protected]>
---
 arch/h8300/include/asm/flat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/h8300/include/asm/flat.h +1 -1
index 18d024251738..7e0bd6fa1532 100644
@@ -24,7 +24,7 @@ static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
 					u32 *addr, u32 *persistent)
 {
 	u32 val = get_unaligned((__force u32 *)rp);
-	if (!(flags & FLAT_FLAG_GOTPIC)
+	if (!(flags & FLAT_FLAG_GOTPIC))
 		val &= 0x00ffffff;
 	*addr = val;
 	return 0;
Signature · 1 line
2.7.4