linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field 'tmio
       [not found]   ` <20150316075105.GA21372@verge.net.au>
@ 2015-03-16  8:52     ` Kuninori Morimoto
  2015-03-16  8:53       ` [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2 Kuninori Morimoto
  2015-03-16 16:40       ` [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field Vinod Koul
  0 siblings, 2 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2015-03-16  8:52 UTC (permalink / raw)
  To: Vinod Koul, Simon; +Cc: arm, kbuild-all, Ulf Hansson, Linux-SH, linux-mmc


Hi Vinod

Kuninori Morimoto (1):
      mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2

 arch/arm/mach-shmobile/board-ape6evm.c  | 12 ++++++------
 arch/arm/mach-shmobile/board-mackerel.c | 30 +++++++++++++++---------------
 2 files changed, 21 insertions(+), 21 deletions(-)

This patch is related to SH-ARM and MMC, but is based on DMAEngine.
So, you accepted my previous patch in

	http://thread.gmane.org/gmane.linux.ports.sh.devel/44068

But,

arch/arm/mach-shmobile/board-ape6evm.c
arch/arm/mach-shmobile/board-mackerel.c

will be removed if it includes Simon's/next branch, but your branch
doesn't include it, and my previous patch didn't care about thesse.
So compile error happen in your branch.
And I got error report from kbuild system.

	git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git :: next

> > > commit: 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb [2655/4763] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info
> > > config: arm-ape6evm_defconfig (attached as .config)
> > > reproduce:
> > >   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> > >   chmod +x ~/bin/make.cross
> > >   git checkout 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb
> > >   # save the attached .config to linux build tree
> > >   make.cross ARCH=arm 

This issue can be solved my next fixup patch, but conflict will happen
when merge timing.

Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2
  2015-03-16  8:52     ` [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field 'tmio Kuninori Morimoto
@ 2015-03-16  8:53       ` Kuninori Morimoto
  2015-03-16 16:34         ` Arnd Bergmann
  2015-03-17  5:29         ` Vinod Koul
  2015-03-16 16:40       ` [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field Vinod Koul
  1 sibling, 2 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2015-03-16  8:53 UTC (permalink / raw)
  To: Vinod Koul; +Cc: Simon, Linux-SH, arm, kbuild-all, Ulf Hansson, linux-mmc

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

84f11d5b1f2abc0e22895b7e12e037f0ec03caeb
(mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info)
replaced sh_mobile_sdhi_info to tmio_mmc_data, but it was missing
to replace board-ape6evm / board-mackerel.
Kernel build will be failed without this patch.

	>> arch/arm/mach-shmobile/board-ape6evm.c:176:21: error: \
		variable 'sdhi0_pdata' has initializer but incomplete type
	static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = {
	                    ^
	>> arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: \
		unknown field 'tmio_flags' specified in initializer
	.tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
	^
	...

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/arm/mach-shmobile/board-ape6evm.c  | 12 ++++++------
 arch/arm/mach-shmobile/board-mackerel.c | 30 +++++++++++++++---------------
 2 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c
index 444f22d..52c9605 100644
--- a/arch/arm/mach-shmobile/board-ape6evm.c
+++ b/arch/arm/mach-shmobile/board-ape6evm.c
@@ -173,9 +173,9 @@ static const struct resource mmcif0_resources[] __initconst = {
 };
 
 /* SDHI0 */
-static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = {
-	.tmio_flags	= TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
-	.tmio_caps	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ,
+static const struct tmio_mmc_data sdhi0_pdata __initconst = {
+	.flags		= TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
+	.capabilities	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ,
 };
 
 static const struct resource sdhi0_resources[] __initconst = {
@@ -184,9 +184,9 @@ static const struct resource sdhi0_resources[] __initconst = {
 };
 
 /* SDHI1 */
-static const struct sh_mobile_sdhi_info sdhi1_pdata __initconst = {
-	.tmio_flags	= TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
-	.tmio_caps	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
+static const struct tmio_mmc_data sdhi1_pdata __initconst = {
+	.flags		= TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
+	.capabilities	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
 			  MMC_CAP_NEEDS_POLL,
 };
 
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index a1c1dfb..88e4f45 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -972,11 +972,11 @@ static struct platform_device nand_flash_device = {
 };
 
 /* SDHI0 */
-static struct sh_mobile_sdhi_info sdhi0_info = {
-	.dma_slave_tx	= SHDMA_SLAVE_SDHI0_TX,
-	.dma_slave_rx	= SHDMA_SLAVE_SDHI0_RX,
-	.tmio_flags	= TMIO_MMC_USE_GPIO_CD,
-	.tmio_caps	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ,
+static struct tmio_mmc_data sdhi0_info = {
+	.chan_priv_tx	= (void *)SHDMA_SLAVE_SDHI0_TX,
+	.chan_priv_rx	= (void *)SHDMA_SLAVE_SDHI0_RX,
+	.flags		= TMIO_MMC_USE_GPIO_CD,
+	.capabilities	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ,
 	.cd_gpio	= 172,
 };
 
@@ -1011,11 +1011,11 @@ static struct platform_device sdhi0_device = {
 /* SDHI1 */
 
 /* GPIO 41 can trigger IRQ8, but it is used by USBHS1, we have to poll */
-static struct sh_mobile_sdhi_info sdhi1_info = {
-	.dma_slave_tx	= SHDMA_SLAVE_SDHI1_TX,
-	.dma_slave_rx	= SHDMA_SLAVE_SDHI1_RX,
-	.tmio_flags	= TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD,
-	.tmio_caps	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
+static struct tmio_mmc_data sdhi1_info = {
+	.chan_priv_tx	= (void *)SHDMA_SLAVE_SDHI1_TX,
+	.chan_priv_rx	= (void *)SHDMA_SLAVE_SDHI1_RX,
+	.flags		= TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD,
+	.capabilities	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
 			  MMC_CAP_NEEDS_POLL,
 	.cd_gpio	= 41,
 };
@@ -1054,11 +1054,11 @@ static struct platform_device sdhi1_device = {
  * The card detect pin of the top SD/MMC slot (CN23) is active low and is
  * connected to GPIO SCIFB_SCK of SH7372 (GPIO 162).
  */
-static struct sh_mobile_sdhi_info sdhi2_info = {
-	.dma_slave_tx	= SHDMA_SLAVE_SDHI2_TX,
-	.dma_slave_rx	= SHDMA_SLAVE_SDHI2_RX,
-	.tmio_flags	= TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD,
-	.tmio_caps	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
+static struct tmio_mmc_data sdhi2_info = {
+	.chan_priv_tx	= (void *)SHDMA_SLAVE_SDHI2_TX,
+	.chan_priv_rx	= (void *)SHDMA_SLAVE_SDHI2_RX,
+	.flags		= TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD,
+	.capabilities	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
 			  MMC_CAP_NEEDS_POLL,
 	.cd_gpio	= 162,
 };
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2
  2015-03-16  8:53       ` [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2 Kuninori Morimoto
@ 2015-03-16 16:34         ` Arnd Bergmann
  2015-03-16 21:34           ` Simon Horman
  2015-03-17  5:29         ` Vinod Koul
  1 sibling, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2015-03-16 16:34 UTC (permalink / raw)
  To: Kuninori Morimoto
  Cc: Vinod Koul, Simon, Linux-SH, arm, kbuild-all, Ulf Hansson,
	linux-mmc

On Monday 16 March 2015 08:53:40 Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb
> (mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info)
> replaced sh_mobile_sdhi_info to tmio_mmc_data, but it was missing
> to replace board-ape6evm / board-mackerel.
> Kernel build will be failed without this patch.
> 
>         >> arch/arm/mach-shmobile/board-ape6evm.c:176:21: error: \
>                 variable 'sdhi0_pdata' has initializer but incomplete type
>         static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = {
>                             ^
>         >> arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: \
>                 unknown field 'tmio_flags' specified in initializer
>         .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
>         ^
>         ...
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 

Acked-by: Arnd Bergmann <arnd@arndb.de>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field
  2015-03-16  8:52     ` [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field 'tmio Kuninori Morimoto
  2015-03-16  8:53       ` [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2 Kuninori Morimoto
@ 2015-03-16 16:40       ` Vinod Koul
  1 sibling, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2015-03-16 16:40 UTC (permalink / raw)
  To: Kuninori Morimoto
  Cc: Simon, Linux-SH, arm, kbuild-all, Ulf Hansson, linux-mmc

On Mon, Mar 16, 2015 at 05:52:23PM +0900, Kuninori Morimoto wrote:
> 
> Hi Vinod
> 
> Kuninori Morimoto (1):
>       mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2
> 
>  arch/arm/mach-shmobile/board-ape6evm.c  | 12 ++++++------
>  arch/arm/mach-shmobile/board-mackerel.c | 30 +++++++++++++++---------------
>  2 files changed, 21 insertions(+), 21 deletions(-)
> 
> This patch is related to SH-ARM and MMC, but is based on DMAEngine.
> So, you accepted my previous patch in
> 
> 	http://thread.gmane.org/gmane.linux.ports.sh.devel/44068
> 
> But,
> 
> arch/arm/mach-shmobile/board-ape6evm.c
> arch/arm/mach-shmobile/board-mackerel.c
> 
> will be removed if it includes Simon's/next branch, but your branch
> doesn't include it, and my previous patch didn't care about thesse.
> So compile error happen in your branch.
> And I got error report from kbuild system.
> 
> 	git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git :: next
> 
> > > > commit: 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb [2655/4763] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info
> > > > config: arm-ape6evm_defconfig (attached as .config)
> > > > reproduce:
> > > >   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> > > >   chmod +x ~/bin/make.cross
> > > >   git checkout 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb
> > > >   # save the attached .config to linux build tree
> > > >   make.cross ARCH=arm 
> 
> This issue can be solved my next fixup patch, but conflict will happen
> when merge timing.
Looks okay, I will wait a day for any acks and apply it

-- 
~Vinod


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2
  2015-03-16 16:34         ` Arnd Bergmann
@ 2015-03-16 21:34           ` Simon Horman
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2015-03-16 21:34 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Kuninori Morimoto, Vinod Koul, Linux-SH, arm, kbuild-all,
	Ulf Hansson, linux-mmc

On Mon, Mar 16, 2015 at 05:34:50PM +0100, Arnd Bergmann wrote:
> On Monday 16 March 2015 08:53:40 Kuninori Morimoto wrote:
> > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > 
> > 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb
> > (mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info)
> > replaced sh_mobile_sdhi_info to tmio_mmc_data, but it was missing
> > to replace board-ape6evm / board-mackerel.
> > Kernel build will be failed without this patch.
> > 
> >         >> arch/arm/mach-shmobile/board-ape6evm.c:176:21: error: \
> >                 variable 'sdhi0_pdata' has initializer but incomplete type
> >         static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = {
> >                             ^
> >         >> arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: \
> >                 unknown field 'tmio_flags' specified in initializer
> >         .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
> >         ^
> >         ...
> > 
> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > 
> 
> Acked-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Simon Horman <horms+renesas@verge.net.au>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2
  2015-03-16  8:53       ` [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2 Kuninori Morimoto
  2015-03-16 16:34         ` Arnd Bergmann
@ 2015-03-17  5:29         ` Vinod Koul
  1 sibling, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2015-03-17  5:29 UTC (permalink / raw)
  To: Kuninori Morimoto
  Cc: Simon, Linux-SH, arm, kbuild-all, Ulf Hansson, linux-mmc

On Mon, Mar 16, 2015 at 08:53:40AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb
> (mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info)
> replaced sh_mobile_sdhi_info to tmio_mmc_data, but it was missing
> to replace board-ape6evm / board-mackerel.
> Kernel build will be failed without this patch.
> 
> 	>> arch/arm/mach-shmobile/board-ape6evm.c:176:21: error: \
> 		variable 'sdhi0_pdata' has initializer but incomplete type
> 	static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = {
> 	                    ^
> 	>> arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: \
> 		unknown field 'tmio_flags' specified in initializer
> 	.tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
> 	^
> 	...
>
Applied, to topic/sh. So feel free to merge in your trees if you need this.

Thanks
-- 
~Vinod
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-17  5:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201503141650.GfUoPRK3%fengguang.wu@intel.com>
     [not found] ` <87ioe1kcp8.wl%kuninori.morimoto.gx@renesas.com>
     [not found]   ` <20150316075105.GA21372@verge.net.au>
2015-03-16  8:52     ` [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field 'tmio Kuninori Morimoto
2015-03-16  8:53       ` [PATCH] mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2 Kuninori Morimoto
2015-03-16 16:34         ` Arnd Bergmann
2015-03-16 21:34           ` Simon Horman
2015-03-17  5:29         ` Vinod Koul
2015-03-16 16:40       ` [next:master 2655/4763] arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: unknown field Vinod Koul

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).