From: Tony Camuso <tcamuso@redhat.com>
To: linux-sparse@vger.kernel.org
Subject: sparse error: got __int128
Date: Sun, 18 Jan 2015 07:28:20 -0500 [thread overview]
Message-ID: <54BBA6E4.7020506@redhat.com> (raw)
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.
next reply other threads:[~2015-01-18 12:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-18 12:28 Tony Camuso [this message]
2015-01-18 12:29 ` sparse error: got __int128 Tony Camuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54BBA6E4.7020506@redhat.com \
--to=tcamuso@redhat.com \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.