2014-11-10 00:58:58

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build failure after merge of the slave-dma tree

Hi Vinod,

After merging the slave-dma tree, today's linux-next build (x86_64 allmodconfig)
failed like this:

drivers/dma/at_xdmac.c: In function 'at_xdmac_off':
drivers/dma/at_xdmac.c:317:2: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
at_xdmac_write(atxdmac, AT_XDMAC_GD, -1L);
^

Caused by commit e1f7c9eee707 ("dmaengine: at_xdmac: creation of the
atmel eXtended DMA Controller driver").

Also, lots of warnings like:

drivers/dma/at_xdmac.c: In function 'at_xdmac_prep_slave_sg':
include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:84:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1107:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/dma/at_xdmac.c:621:3: note: in expansion of macro 'dev_dbg'
dev_dbg(chan2dev(chan),
^

I have used the slave-dma tree from next-20141106 for today.
--
Cheers,
Stephen Rothwell [email protected]


Attachments:
(No filename) (819.00 B)
OpenPGP digital signature

2014-11-10 05:05:30

by Vinod Koul

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the slave-dma tree

On Mon, Nov 10, 2014 at 11:58:46AM +1100, Stephen Rothwell wrote:
> Hi Vinod,
>
> After merging the slave-dma tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
>
> drivers/dma/at_xdmac.c: In function 'at_xdmac_off':
> drivers/dma/at_xdmac.c:317:2: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
> at_xdmac_write(atxdmac, AT_XDMAC_GD, -1L);
> ^
>
> Caused by commit e1f7c9eee707 ("dmaengine: at_xdmac: creation of the
> atmel eXtended DMA Controller driver").
Thanks Stephen,

I have fixed this error and warning, the tree is updated now

--
~Vinod

>
> Also, lots of warnings like:
>
> drivers/dma/at_xdmac.c: In function 'at_xdmac_prep_slave_sg':
> include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
> static struct _ddebug __aligned(8) \
> ^
> include/linux/dynamic_debug.h:84:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
> DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
> ^
> include/linux/device.h:1107:2: note: in expansion of macro 'dynamic_dev_dbg'
> dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
> ^
> drivers/dma/at_xdmac.c:621:3: note: in expansion of macro 'dev_dbg'
> dev_dbg(chan2dev(chan),
> ^
>
> I have used the slave-dma tree from next-20141106 for today.
> --
> Cheers,
> Stephen Rothwell [email protected]



--


Attachments:
(No filename) (1.46 kB)
signature.asc (836.00 B)
Digital signature
Download all attachments

2014-11-12 13:23:28

by Ludovic Desroches

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the slave-dma tree

Hi Vinod,

On Mon, Nov 10, 2014 at 10:36:16AM +0530, Vinod Koul wrote:
> On Mon, Nov 10, 2014 at 11:58:46AM +1100, Stephen Rothwell wrote:
> > Hi Vinod,
> >
> > After merging the slave-dma tree, today's linux-next build (x86_64 allmodconfig)
> > failed like this:
> >
> > drivers/dma/at_xdmac.c: In function 'at_xdmac_off':
> > drivers/dma/at_xdmac.c:317:2: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
> > at_xdmac_write(atxdmac, AT_XDMAC_GD, -1L);
> > ^
> >
> > Caused by commit e1f7c9eee707 ("dmaengine: at_xdmac: creation of the
> > atmel eXtended DMA Controller driver").
> Thanks Stephen,
>
> I have fixed this error and warning, the tree is updated now

Thanks to manage it, sorry I didn't have the time to send a fix for
it. I will send you a patch to reintroduce _relaxed version of readl and
writel but I will remove COMPILE_TEST since _relaxed is not implemented
on other architectures.

Regards

Ludovic

>
> --
> ~Vinod
>
> >
> > Also, lots of warnings like:
> >
> > drivers/dma/at_xdmac.c: In function 'at_xdmac_prep_slave_sg':
> > include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
> > static struct _ddebug __aligned(8) \
> > ^
> > include/linux/dynamic_debug.h:84:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
> > DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
> > ^
> > include/linux/device.h:1107:2: note: in expansion of macro 'dynamic_dev_dbg'
> > dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
> > ^
> > drivers/dma/at_xdmac.c:621:3: note: in expansion of macro 'dev_dbg'
> > dev_dbg(chan2dev(chan),
> > ^
> >
> > I have used the slave-dma tree from next-20141106 for today.
> > --
> > Cheers,
> > Stephen Rothwell [email protected]
>
>
>
> --