Skip to contentSkip to conversation

ARM: SAMSUNG: Silence empty switch warning in sdhci.h

PATCH Applied Sachin Kamat 2 participants 3 messages Feb 6, 2013 – Feb 12, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: SAMSUNG: Silence empty switch warning in sdhci.h

Add 'default' case to silence the following warning:
arch/arm/plat-samsung/include/plat/sdhci.h:356:9: warning: switch with no cases

---
 arch/arm/plat-samsung/include/plat/sdhci.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/plat-samsung/include/plat/sdhci.h +2 -0
index 151cc91..9b87f38 100644
@@ -374,6 +374,8 @@ static inline void s3c_sdhci_setname(int id, char *name)
 		s3c_device_hsmmc3.name = name;
 		break;
 #endif
+	default:
+		break;
 	}
 }
 
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 2/2 ARM: SAMSUNG: Silence empty switch warning in fimc-core.h

Add 'default' case to silence the below warning:
arch/arm/plat-samsung/include/plat/fimc-core.h:25:9:
warning: switch with no cases

---
 arch/arm/plat-samsung/include/plat/fimc-core.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/plat-samsung/include/plat/fimc-core.h +2 -0
index 945a99d..1d6cb2b 100644
@@ -43,6 +43,8 @@ static inline void s3c_fimc_setname(int id, char *name)
 		s5p_device_fimc3.name = name;
 		break;
 #endif
+	default:
+		break;
 	}
 }
 
Signature · 1 line
1.7.4.1
Applied
#2 lore raw
In reply to Sachin Kamat
Quoted 26 lines · Sachin Kamat

Add 'default' case to silence the following warning:
arch/arm/plat-samsung/include/plat/sdhci.h:356:9: warning: switch with no cases

---
 arch/arm/plat-samsung/include/plat/sdhci.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/sdhci.h +0 -0

samsung/include/plat/sdhci.h
index 151cc91..9b87f38 100644

arch/arm/plat-samsung/include/plat/sdhci.h +2 -1
@@ -374,6 +374,8 @@ static inline void s3c_sdhci_setname(int id, char
 *name)
 		s3c_device_hsmmc3.name = name;
 		break;
 #endif
+	default:
+		break;
 	}
 }
 
--
Quoted 1 line

1.7.4.1

Applied, this and second one.

Thanks.

- Kukjin