* [PATCH] ARM: pxa: cm-x300: remove inline directive
@ 2017-12-26 12:45 Igor Grinberg
2017-12-28 7:57 ` Robert Jarzmik
0 siblings, 1 reply; 2+ messages in thread
From: Igor Grinberg @ 2017-12-26 12:45 UTC (permalink / raw)
To: linux-arm-kernel
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.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
arch/arm/mach-pxa/cm-x300.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
index 868448d2cd82..912e905a6af6 100644
--- a/arch/arm/mach-pxa/cm-x300.c
+++ b/arch/arm/mach-pxa/cm-x300.c
@@ -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;
--
2.13.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: pxa: cm-x300: remove inline directive
2017-12-26 12:45 [PATCH] ARM: pxa: cm-x300: remove inline directive Igor Grinberg
@ 2017-12-28 7:57 ` Robert Jarzmik
0 siblings, 0 replies; 2+ messages in thread
From: Robert Jarzmik @ 2017-12-28 7:57 UTC (permalink / raw)
To: linux-arm-kernel
Igor Grinberg <grinberg@compulab.co.il> writes:
> 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.
>
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
> ---
> arch/arm/mach-pxa/cm-x300.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
> index 868448d2cd82..912e905a6af6 100644
> --- a/arch/arm/mach-pxa/cm-x300.c
> +++ b/arch/arm/mach-pxa/cm-x300.c
> @@ -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.
--
Robert
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-28 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-26 12:45 [PATCH] ARM: pxa: cm-x300: remove inline directive Igor Grinberg
2017-12-28 7:57 ` Robert Jarzmik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).