Skip to contentSkip to conversation

ARM: pxa: cm-x300: remove inline directive

PATCH New Igor Grinberg 2 participants 2 messages Dec 26, 2017 – Dec 28, 2017

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

PATCH 1/1 ARM: pxa: cm-x300: remove inline directive

cm_x300_u2d_init() function is only used through its function pointer that is passed through platform_data structure to the driver. Therefore it can never be inlined.
Remove the inline directive.

---
 arch/arm/mach-pxa/cm-x300.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-pxa/cm-x300.c +1 -1
index 868448d2cd82..912e905a6af6 100644
@@ -509,7 +509,7 @@ static int cm_x300_ulpi_phy_reset(void)
 	return 0;
 }
 
-static inline int cm_x300_u2d_init(struct device *dev)
+static int cm_x300_u2d_init(struct device *dev)
 {
 	int err = 0;
 
Signature · 1 line
2.13.6
maintainer Applied
#1 lore raw

PATCH 1/1 ARM: pxa: cm-x300: remove inline directive

Quoted 15 lines · Igor Grinberg

cm_x300_u2d_init() function is only used through its function pointer that is passed through platform_data structure to the driver. Therefore it can never be inlined.
Remove the inline directive.

---
 arch/arm/mach-pxa/cm-x300.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-pxa/cm-x300.c +0 -0
index 868448d2cd82..912e905a6af6 100644

arch/arm/mach-pxa/cm-x300.c static int cm_x300_ulpi_phy_reset(void) · line 514

Quoted 7 lines
arch/arm/mach-pxa/cm-x300.c +1 -1
@@ -509,7 +509,7 @@ static int cm_x300_ulpi_phy_reset(void)
 	return 0;
 }
 
-static inline int cm_x300_u2d_init(struct device *dev)
+static int cm_x300_u2d_init(struct device *dev)
 {
 	int err = 0;

Applied to pxa/for-next, thanks.

Cheers.

Signature · 1 line
Robert