]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/apic/uv: Silence a shift wrapping warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Nov 2016 22:19:08 +0000 (01:19 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 01:50:13 +0000 (17:50 -0800)
commit70f4a981bb13f06cdbb1875f694430744538e22c
tree0821930415c4c5e2dcf3402c4195f081540056a3
parent68c8856df99eb0e3d232bf5e3800f557156917e1
x86/apic/uv: Silence a shift wrapping warning

Orabug: 25477822

'm_io' is stored in 6 bits so it's a number in the 0-63 range.  Static
analysis tools complain that 1 << 63 will wrap so I have changed it to
1ULL << m_io.

This code is over three years old so presumably the bug doesn't happen
very frequently in real life or someone would have complained by now.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alex Thorlton <athorlton@sgi.com>
Cc: Dimitri Sivanich <sivanich@sgi.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Travis <travis@sgi.com>
Cc: Nathan Zimmer <nzimmer@sgi.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Fixes: b15cc4a12bed ("x86, uv, uv3: Update x2apic Support for SGI UV3")
Link: http://lkml.kernel.org/r/20161123221908.GA23997@mwanda
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit c4597fd756836a5fb7900f2091797ab564390ad0)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/apic/x2apic_uv_x.c