Re: [tip:x86/urgent] x86/apic/uv: Silence a shift wrapping warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 23, 2016 at 10:25:48PM -0800, tip-bot for Dan Carpenter wrote:
> Commit-ID:  c4597fd756836a5fb7900f2091797ab564390ad0
> Gitweb:     http://git.kernel.org/tip/c4597fd756836a5fb7900f2091797ab564390ad0
> Author:     Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> AuthorDate: Thu, 24 Nov 2016 01:19:08 +0300
> Committer:  Ingo Molnar <mingo@xxxxxxxxxx>
> CommitDate: Thu, 24 Nov 2016 06:01:05 +0100
> 
> x86/apic/uv: Silence a shift wrapping warning
> 
> '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@xxxxxxxxxx>
> Cc: Alex Thorlton <athorlton@xxxxxxx>

Acked-by: Alex Thorlton <athorlton@xxxxxxx>

- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux