summaryrefslogtreecommitdiffstats
path: root/scripts/basic
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-06-05 22:12:27 -0700
committerMark Brown <broonie@kernel.org>2019-06-06 21:19:07 +0100
commit83a6edbb8fe928e801b9b6cab13e81109b185918 (patch)
treee146224a940a5ceb62847233f860790a14d8892d /scripts/basic
parent3bb936f5b92a0a6b6f4d16d834243e2f62521349 (diff)
downloadlinux-83a6edbb8fe928e801b9b6cab13e81109b185918.tar.gz
linux-83a6edbb8fe928e801b9b6cab13e81109b185918.zip
ASoC: rt1011: Mark format integer literals as unsigned
Clang warns: sound/soc/codecs/rt1011.c:1291:12: warning: integer literal is too large to be represented in type 'long', interpreting as 'unsigned long' per C89; this literal will have type 'long long' in C99 onwards [-Wc99-compat] format = 2147483648; /* 2^24 * 128 */ ^ sound/soc/codecs/rt1011.c:2123:13: warning: integer literal is too large to be represented in type 'long', interpreting as 'unsigned long' per C89; this literal will have type 'long long' in C99 onwards [-Wc99-compat] format = 2147483648; /* 2^24 * 128 */ ^ 2 warnings generated. Mark the integer literals as unsigned explicitly so that if the kernel does ever bump the C standard it uses, the behavior is consitent. Fixes: d6e65bb7ff0d ("ASoC: rt1011: Add RT1011 amplifier driver") Link: https://github.com/ClangBuiltLinux/linux/issues/506 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions