Messages in this thread |  | | | From | Linus Torvalds <> | | Date | Mon, 30 Jan 2012 19:05:06 -0800 | | Subject | Re: [PATCH] NVMe: Fix compilation on architecturs without readq/writeq |
| |
On Mon, Jan 30, 2012 at 7:03 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote: > val |= readl(addr+4) << 32;
Oops. That needs a cast to u64 before the shift, of course.
Take all code I write in emails with a pinch of salt - think of it more as pseudo-code than something that necessarily would work as-is.
Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |