soundwire: dmi-quirks: add ull suffix for SoundWire _ADR values
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 14 Jul 2021 01:30:27 +0000 (09:30 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 22 Jul 2021 14:13:58 +0000 (19:43 +0530)
Sparse throws the following type of warnings:

drivers/soundwire/dmi-quirks.c:25:17: error: constant
0x000010025D070100 is so big it is long

Let's add the 'ull' suffix to make this go away and find real issues.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20210714013027.17022-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/dmi-quirks.c

index 5db0a24..1ac1668 100644 (file)
@@ -22,12 +22,12 @@ struct adr_remap {
  */
 static const struct adr_remap hp_spectre_360[] = {
        {
-               0x000010025D070100,
-               0x000020025D071100
+               0x000010025D070100ull,
+               0x000020025D071100ull
        },
        {
-               0x000110025d070100,
-               0x000120025D130800
+               0x000110025d070100ull,
+               0x000120025D130800ull
        },
        {}
 };
@@ -39,18 +39,18 @@ static const struct adr_remap hp_spectre_360[] = {
 static const struct adr_remap dell_sku_0A3E[] = {
        /* rt715 on link0 */
        {
-               0x00020025d071100,
-               0x00021025d071500
+               0x00020025d071100ull,
+               0x00021025d071500ull
        },
        /* rt711 on link1 */
        {
-               0x000120025d130800,
-               0x000120025d071100,
+               0x000120025d130800ull,
+               0x000120025d071100ull,
        },
        /* rt1308 on link2 */
        {
-               0x000220025d071500,
-               0x000220025d130800
+               0x000220025d071500ull,
+               0x000220025d130800ull
        },
        {}
 };