* sparse error: got __int128
@ 2015-01-18 12:28 Tony Camuso
2015-01-18 12:29 ` Tony Camuso
0 siblings, 1 reply; 2+ messages in thread
From: Tony Camuso @ 2015-01-18 12:28 UTC (permalink / raw)
To: linux-sparse
Example:
drivers/acpi/processor_core.i:6109:26: error: Expected ) at end of cast operator
drivers/acpi/processor_core.i:6109:26: error: got __int128
Passing a large list of files causes the error count to exceed 100, whereupon
sparse exits.
The offending source is in include/linux/math64.h
#if defined(CONFIG_ARCH_SUPPORTS_INT128) && defined(__SIZEOF_INT128__)
#ifndef mul_u64_u32_shr
static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift)
{
return (u64)(((unsigned __int128)a * mul) >> shift);
}
#endif /* mul_u64_u32_shr */
Of course, disabling 64-bit kernel in .config removes the problem, but this is
an unacceptable solution.
I can't see clearly why sparse should flag this as an error.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sparse error: got __int128
2015-01-18 12:28 sparse error: got __int128 Tony Camuso
@ 2015-01-18 12:29 ` Tony Camuso
0 siblings, 0 replies; 2+ messages in thread
From: Tony Camuso @ 2015-01-18 12:29 UTC (permalink / raw)
To: linux-sparse
On 01/18/2015 07:28 AM, Tony Camuso wrote:
>
> Of course, disabling 64-bit kernel in .config removes the problem, but this is
> an unacceptable solution.
^^^
NOT
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-18 12:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-18 12:28 sparse error: got __int128 Tony Camuso
2015-01-18 12:29 ` Tony Camuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).