ASoC: rt1011: Mark format integer literals as unsigned
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 6 Jun 2019 05:12:27 +0000 (22:12 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jun 2019 20:19:07 +0000 (21:19 +0100)
commit83a6edbb8fe928e801b9b6cab13e81109b185918
treee146224a940a5ceb62847233f860790a14d8892d
parent3bb936f5b92a0a6b6f4d16d834243e2f62521349
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>
sound/soc/codecs/rt1011.c