Re: [PATCH 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
On Fri, Feb 15, 2013 at 12:55:06PM +, Arnd Bergmann wrote: > On Thursday 14 February 2013, Simon Horman wrote: > > On Thu, Feb 14, 2013 at 11:26:54PM +0100, Arnd Bergmann wrote: > > > Patch eac036ef9e "ARM: shmobile: streamline mackerel SD and MMC devices" > > > made the use of the sh_mmcif_device variable for mackarel optional, > > > but the definition is always provided, causing a build warning. > > > > > > arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: > > > 'sh_mmcif_device' > > > defined but not used [-Wunused-variable] > > > > > > Marking the variable as __maybe_unused will do the right thing here. > > > > > > Signed-off-by: Arnd Bergmann > > > Cc: Guennadi Liakhovetski > > > Cc: Simon Horman > > > > No objections here. > > > > Acked-by: Simon Horman > > AFAICT, the change that caused this is in linux-next only through your > heads/boards3 branch but not through arm-soc, so please apply my patch > on your branch. Sure, will do. -- 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 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
On Thursday 14 February 2013, Simon Horman wrote: > On Thu, Feb 14, 2013 at 11:26:54PM +0100, Arnd Bergmann wrote: > > Patch eac036ef9e "ARM: shmobile: streamline mackerel SD and MMC devices" > > made the use of the sh_mmcif_device variable for mackarel optional, > > but the definition is always provided, causing a build warning. > > > > arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' > > defined but not used [-Wunused-variable] > > > > Marking the variable as __maybe_unused will do the right thing here. > > > > Signed-off-by: Arnd Bergmann > > Cc: Guennadi Liakhovetski > > Cc: Simon Horman > > No objections here. > > Acked-by: Simon Horman AFAICT, the change that caused this is in linux-next only through your heads/boards3 branch but not through arm-soc, so please apply my patch on your branch. Arnd -- 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 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
On Thursday 14 February 2013, Simon Horman wrote: On Thu, Feb 14, 2013 at 11:26:54PM +0100, Arnd Bergmann wrote: Patch eac036ef9e ARM: shmobile: streamline mackerel SD and MMC devices made the use of the sh_mmcif_device variable for mackarel optional, but the definition is always provided, causing a build warning. arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' defined but not used [-Wunused-variable] Marking the variable as __maybe_unused will do the right thing here. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Simon Horman horms+rene...@verge.net.au No objections here. Acked-by: Simon Horman horms+rene...@verge.net.au AFAICT, the change that caused this is in linux-next only through your heads/boards3 branch but not through arm-soc, so please apply my patch on your branch. Arnd -- 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 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
On Fri, Feb 15, 2013 at 12:55:06PM +, Arnd Bergmann wrote: On Thursday 14 February 2013, Simon Horman wrote: On Thu, Feb 14, 2013 at 11:26:54PM +0100, Arnd Bergmann wrote: Patch eac036ef9e ARM: shmobile: streamline mackerel SD and MMC devices made the use of the sh_mmcif_device variable for mackarel optional, but the definition is always provided, causing a build warning. arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' defined but not used [-Wunused-variable] Marking the variable as __maybe_unused will do the right thing here. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Simon Horman horms+rene...@verge.net.au No objections here. Acked-by: Simon Horman horms+rene...@verge.net.au AFAICT, the change that caused this is in linux-next only through your heads/boards3 branch but not through arm-soc, so please apply my patch on your branch. Sure, will do. -- 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 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
On Thu, Feb 14, 2013 at 11:26:54PM +0100, Arnd Bergmann wrote: > Patch eac036ef9e "ARM: shmobile: streamline mackerel SD and MMC devices" > made the use of the sh_mmcif_device variable for mackarel optional, > but the definition is always provided, causing a build warning. > > arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' > defined but not used [-Wunused-variable] > > Marking the variable as __maybe_unused will do the right thing here. > > Signed-off-by: Arnd Bergmann > Cc: Guennadi Liakhovetski > Cc: Simon Horman No objections here. Acked-by: Simon Horman > --- > arch/arm/mach-shmobile/board-mackerel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-shmobile/board-mackerel.c > b/arch/arm/mach-shmobile/board-mackerel.c > index 0c78207..1de898f 100644 > --- a/arch/arm/mach-shmobile/board-mackerel.c > +++ b/arch/arm/mach-shmobile/board-mackerel.c > @@ -1117,7 +1117,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { > .slave_id_rx= SHDMA_SLAVE_MMCIF_RX, > }; > > -static struct platform_device sh_mmcif_device = { > +static struct platform_device sh_mmcif_device __maybe_unused = { > .name = "sh_mmcif", > .id = 0, > .dev= { > -- > 1.8.1.2 > -- 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 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
Patch eac036ef9e "ARM: shmobile: streamline mackerel SD and MMC devices" made the use of the sh_mmcif_device variable for mackarel optional, but the definition is always provided, causing a build warning. arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' defined but not used [-Wunused-variable] Marking the variable as __maybe_unused will do the right thing here. Signed-off-by: Arnd Bergmann Cc: Guennadi Liakhovetski Cc: Simon Horman --- arch/arm/mach-shmobile/board-mackerel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 0c78207..1de898f 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -1117,7 +1117,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { .slave_id_rx= SHDMA_SLAVE_MMCIF_RX, }; -static struct platform_device sh_mmcif_device = { +static struct platform_device sh_mmcif_device __maybe_unused = { .name = "sh_mmcif", .id = 0, .dev= { -- 1.8.1.2 -- 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 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
Patch eac036ef9e ARM: shmobile: streamline mackerel SD and MMC devices made the use of the sh_mmcif_device variable for mackarel optional, but the definition is always provided, causing a build warning. arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' defined but not used [-Wunused-variable] Marking the variable as __maybe_unused will do the right thing here. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Simon Horman horms+rene...@verge.net.au --- arch/arm/mach-shmobile/board-mackerel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 0c78207..1de898f 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -1117,7 +1117,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { .slave_id_rx= SHDMA_SLAVE_MMCIF_RX, }; -static struct platform_device sh_mmcif_device = { +static struct platform_device sh_mmcif_device __maybe_unused = { .name = sh_mmcif, .id = 0, .dev= { -- 1.8.1.2 -- 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 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
On Thu, Feb 14, 2013 at 11:26:54PM +0100, Arnd Bergmann wrote: Patch eac036ef9e ARM: shmobile: streamline mackerel SD and MMC devices made the use of the sh_mmcif_device variable for mackarel optional, but the definition is always provided, causing a build warning. arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' defined but not used [-Wunused-variable] Marking the variable as __maybe_unused will do the right thing here. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Simon Horman horms+rene...@verge.net.au No objections here. Acked-by: Simon Horman horms+rene...@verge.net.au --- arch/arm/mach-shmobile/board-mackerel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 0c78207..1de898f 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -1117,7 +1117,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { .slave_id_rx= SHDMA_SLAVE_MMCIF_RX, }; -static struct platform_device sh_mmcif_device = { +static struct platform_device sh_mmcif_device __maybe_unused = { .name = sh_mmcif, .id = 0, .dev= { -- 1.8.1.2 -- 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/