Skip to contentSkip to conversation

soundwire: dmi-quirks: add ull suffix for SoundWire _ADR values

PATCH Applied Bard Liao 2 participants 2 messages Jul 14, 2021 – Jul 22, 2021 SoundWire

lore
Share & tools
lore

Bard Liao

author maintainer
#0 lore raw

PATCH 1/1 soundwire: dmi-quirks: add ull suffix for SoundWire _ADR values

From: Pierre-Louis Bossart <[email protected]>

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.

---
 drivers/soundwire/dmi-quirks.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/soundwire/dmi-quirks.c +10 -10
index 5db0a2443a1d..1ac16687e315 100644
@@ -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
 	},
 	{}
 };
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Bard Liao

From: Pierre-Louis Bossart <[email protected]>

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.

Applied, thanks

Signature · 1 line
~Vinod