Re: [PATCH 07/11] net/stmmac: mark probe function as __devinit

2012-08-08 Thread David Miller
From: Arnd Bergmann 
Date: Wed,  8 Aug 2012 16:47:24 +0200

> Driver probe functions are generally __devinit so they will be
> discarded after initialization for non-hotplug kernels.
> This was found by a new warning after patch 6a228452d "stmmac: Add
> device-tree support" adds a new __devinit function that is called
> from stmmac_pltfr_probe.
> 
> Without this patch, building socfpga_defconfig results in:
> 
> WARNING: drivers/net/ethernet/stmicro/stmmac/stmmac.o(.text+0x5d4c): Section 
> mismatch in reference from the function stmmac_pltfr_probe() to the function 
> .devinit.text:stmmac_probe_config_dt()
> The function stmmac_pltfr_probe() references
> the function __devinit stmmac_probe_config_dt().
> This is often because stmmac_pltfr_probe lacks a __devinit
> annotation or the annotation of stmmac_probe_config_dt is wrong.
> 
> Signed-off-by: Arnd Bergmann 
> Cc: Stefan Roese 
> Cc: Giuseppe Cavallaro 
> Cc: David S. Miller 
> Cc: net...@vger.kernel.org

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 07/11] net/stmmac: mark probe function as __devinit

2012-08-08 Thread Stefan Roese
On 08/08/2012 04:47 PM, Arnd Bergmann wrote:
> Driver probe functions are generally __devinit so they will be
> discarded after initialization for non-hotplug kernels.
> This was found by a new warning after patch 6a228452d "stmmac: Add
> device-tree support" adds a new __devinit function that is called
> from stmmac_pltfr_probe.
> 
> Without this patch, building socfpga_defconfig results in:
> 
> WARNING: drivers/net/ethernet/stmicro/stmmac/stmmac.o(.text+0x5d4c): Section 
> mismatch in reference from the function stmmac_pltfr_probe() to the function 
> .devinit.text:stmmac_probe_config_dt()
> The function stmmac_pltfr_probe() references
> the function __devinit stmmac_probe_config_dt().
> This is often because stmmac_pltfr_probe lacks a __devinit
> annotation or the annotation of stmmac_probe_config_dt is wrong.
> 
> Signed-off-by: Arnd Bergmann 
> Cc: Stefan Roese 
> Cc: Giuseppe Cavallaro 
> Cc: David S. Miller 
> Cc: net...@vger.kernel.org

Acked-by: Stefan Roese 

Thanks,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 07/11] net/stmmac: mark probe function as __devinit

2012-08-08 Thread Arnd Bergmann
Driver probe functions are generally __devinit so they will be
discarded after initialization for non-hotplug kernels.
This was found by a new warning after patch 6a228452d "stmmac: Add
device-tree support" adds a new __devinit function that is called
from stmmac_pltfr_probe.

Without this patch, building socfpga_defconfig results in:

WARNING: drivers/net/ethernet/stmicro/stmmac/stmmac.o(.text+0x5d4c): Section 
mismatch in reference from the function stmmac_pltfr_probe() to the function 
.devinit.text:stmmac_probe_config_dt()
The function stmmac_pltfr_probe() references
the function __devinit stmmac_probe_config_dt().
This is often because stmmac_pltfr_probe lacks a __devinit
annotation or the annotation of stmmac_probe_config_dt is wrong.

Signed-off-by: Arnd Bergmann 
Cc: Stefan Roese 
Cc: Giuseppe Cavallaro 
Cc: David S. Miller 
Cc: net...@vger.kernel.org
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 
b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index cd01ee7..b93245c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -74,7 +74,7 @@ static int __devinit stmmac_probe_config_dt(struct 
platform_device *pdev,
  * the necessary resources and invokes the main to init
  * the net device, register the mdio bus etc.
  */
-static int stmmac_pltfr_probe(struct platform_device *pdev)
+static int __devinit stmmac_pltfr_probe(struct platform_device *pdev)
 {
int ret = 0;
struct resource *res;
-- 
1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 07/11] net/stmmac: mark probe function as __devinit

2012-08-08 Thread Arnd Bergmann
Driver probe functions are generally __devinit so they will be
discarded after initialization for non-hotplug kernels.
This was found by a new warning after patch 6a228452d stmmac: Add
device-tree support adds a new __devinit function that is called
from stmmac_pltfr_probe.

Without this patch, building socfpga_defconfig results in:

WARNING: drivers/net/ethernet/stmicro/stmmac/stmmac.o(.text+0x5d4c): Section 
mismatch in reference from the function stmmac_pltfr_probe() to the function 
.devinit.text:stmmac_probe_config_dt()
The function stmmac_pltfr_probe() references
the function __devinit stmmac_probe_config_dt().
This is often because stmmac_pltfr_probe lacks a __devinit
annotation or the annotation of stmmac_probe_config_dt is wrong.

Signed-off-by: Arnd Bergmann a...@arndb.de
Cc: Stefan Roese s...@denx.de
Cc: Giuseppe Cavallaro peppe.cavall...@st.com
Cc: David S. Miller da...@davemloft.net
Cc: net...@vger.kernel.org
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 
b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index cd01ee7..b93245c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -74,7 +74,7 @@ static int __devinit stmmac_probe_config_dt(struct 
platform_device *pdev,
  * the necessary resources and invokes the main to init
  * the net device, register the mdio bus etc.
  */
-static int stmmac_pltfr_probe(struct platform_device *pdev)
+static int __devinit stmmac_pltfr_probe(struct platform_device *pdev)
 {
int ret = 0;
struct resource *res;
-- 
1.7.10

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 07/11] net/stmmac: mark probe function as __devinit

2012-08-08 Thread Stefan Roese
On 08/08/2012 04:47 PM, Arnd Bergmann wrote:
 Driver probe functions are generally __devinit so they will be
 discarded after initialization for non-hotplug kernels.
 This was found by a new warning after patch 6a228452d stmmac: Add
 device-tree support adds a new __devinit function that is called
 from stmmac_pltfr_probe.
 
 Without this patch, building socfpga_defconfig results in:
 
 WARNING: drivers/net/ethernet/stmicro/stmmac/stmmac.o(.text+0x5d4c): Section 
 mismatch in reference from the function stmmac_pltfr_probe() to the function 
 .devinit.text:stmmac_probe_config_dt()
 The function stmmac_pltfr_probe() references
 the function __devinit stmmac_probe_config_dt().
 This is often because stmmac_pltfr_probe lacks a __devinit
 annotation or the annotation of stmmac_probe_config_dt is wrong.
 
 Signed-off-by: Arnd Bergmann a...@arndb.de
 Cc: Stefan Roese s...@denx.de
 Cc: Giuseppe Cavallaro peppe.cavall...@st.com
 Cc: David S. Miller da...@davemloft.net
 Cc: net...@vger.kernel.org

Acked-by: Stefan Roese s...@denx.de

Thanks,
Stefan
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 07/11] net/stmmac: mark probe function as __devinit

2012-08-08 Thread David Miller
From: Arnd Bergmann a...@arndb.de
Date: Wed,  8 Aug 2012 16:47:24 +0200

 Driver probe functions are generally __devinit so they will be
 discarded after initialization for non-hotplug kernels.
 This was found by a new warning after patch 6a228452d stmmac: Add
 device-tree support adds a new __devinit function that is called
 from stmmac_pltfr_probe.
 
 Without this patch, building socfpga_defconfig results in:
 
 WARNING: drivers/net/ethernet/stmicro/stmmac/stmmac.o(.text+0x5d4c): Section 
 mismatch in reference from the function stmmac_pltfr_probe() to the function 
 .devinit.text:stmmac_probe_config_dt()
 The function stmmac_pltfr_probe() references
 the function __devinit stmmac_probe_config_dt().
 This is often because stmmac_pltfr_probe lacks a __devinit
 annotation or the annotation of stmmac_probe_config_dt is wrong.
 
 Signed-off-by: Arnd Bergmann a...@arndb.de
 Cc: Stefan Roese s...@denx.de
 Cc: Giuseppe Cavallaro peppe.cavall...@st.com
 Cc: David S. Miller da...@davemloft.net
 Cc: net...@vger.kernel.org

Applied, thanks.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/