diff options
author | Will Deacon <will@kernel.org> | 2020-06-05 11:05:51 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-06-05 11:05:51 +0100 |
commit | 8d4beed7bbc71666de2630b79899c8852c3bf5cd (patch) | |
tree | 0896623792afb87c5e947bee4dc59f780513f550 /include/linux/phy | |
parent | 5872f1a2e5c783783d51e96468f0ff6aede61182 (diff) |
compiler-types.h: Include naked type in __pick_integer_type() match
__pick_integer_type() checks whether the type of its first argument is
compatible with an explicitly signed or unsigned integer type, returning
the compatible type if it exists.
Unfortunately, 'char' is neither compatible with 'signed char' nor
'unsigned char', so add a check against the naked type to allow the
__unqual_scalar_typeof() macro to strip qualifiers from char types
without an explicit signedness.
Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/phy')
0 files changed, 0 insertions, 0 deletions