On Mon, Jan 12, 2015 at 07:08:36PM -0500, Chris Metcalf wrote:
The key changes are to copy the x86 definition of __inttype(), and then toPlease queue it up for 3.20. Extra __force is needed in a couple of
arrange to use an intermediate integral type that gets assigned to or from
the actual typed value so as to expose any sparse issues.
If this works for you, I'm happy to queue it in the tile tree, or I can
provide a proper git commit for you to include in your series, whichever
works better for you.
places - would you like to fix this up yourself, or do you want me to
write a patch on top?
@@ -178,7 +178,7 @@ extern int fixup_exception(struct pt_regs *regs);This cast to __typeof(x) needs to be done with __force, otherwise
"9:" \
: "=r" (ret), "=r" (__a), "=&r" (__b) \
: "r" (ptr), "i" (-EFAULT)); \
- (x) = (__typeof(x))(__typeof((x)-(x))) \
+ (x) = (__typeof(x))(__inttype(x)) \
(((u64)__hi32(__a, __b) << 32) | \
__lo32(__a, __b)); \
})
there will be a warning with bitwise types.