Re: [PATCH 10/13] mtd: nand: pxa3xx: Add inline keyword to enable_int()

Brian Norris
2013-07-30T07:47:56Z

On Mon, Jul 29, 2013 at 4:24 PM, Ezequiel Garcia
<ezequiel.garcia@free-electrons.com> wrote:
> Now that we have added ARCH_HAS_DMA conditional the function
> enable_int() may be unused. So we declare it as inline
> in order to remove the following warning, when the function is not used:

I haven't reviewed the rest too well yet, but I think you want the
'__maybe_unused' qualifier, not 'inline'.

> drivers/mtd/nand//pxa3xx_nand.c:343:24: warning: 'enable_int' defined
> but not used [-Wunused-function]

Brian