Re: [PATCH] dmaengine: pl330: Mark unused functions as __maybe_unused

From: Matthias Kaehlcke
Date: Wed Jun 14 2017 - 17:05:59 EST


El Wed, Jun 14, 2017 at 10:28:31AM +0530 Vinod Koul ha dit:

> On Fri, May 19, 2017 at 01:02:26PM -0700, Matthias Kaehlcke wrote:
> > Several functions are not used and probably kept around for completeness
> > or debugging. Adding the attribute fixes a bunch of warnings like this
> > when building with clang:
> >
> > drivers/dma/pl330.c:568:19: error: unused function '_emit_ADDH'
> > [-Werror,-Wunused-function]
>
> Well I dont see these being used, so why should we keep the dead code.
> Can you please remove these

Ok, I'll send a patch with the removal shortly