From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [94.23.35.102] (helo=mail.free-electrons.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V49Ra-0005wS-PB for linux-mtd@lists.infradead.org; Tue, 30 Jul 2013 12:54:27 +0000 Date: Tue, 30 Jul 2013 09:53:55 -0300 From: Ezequiel Garcia To: Brian Norris Subject: Re: [PATCH 10/13] mtd: nand: pxa3xx: Add inline keyword to enable_int() Message-ID: <20130730125354.GA2375@localhost> References: <1375140263-2028-1-git-send-email-ezequiel.garcia@free-electrons.com> <1375140263-2028-11-git-send-email-ezequiel.garcia@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: Thomas Petazzoni , Lior Amsalem , Jason Cooper , Artem Bityutskiy , leiwen@marvell.com, haojian.zhuang@gmail.com, zonque@gmail.com, linux-mtd@lists.infradead.org, grinberg@compulab.co.il, Gregory Clement , eric.miao@marvell.com, David Woodhouse , Willy Tarreau , nikita@compulab.co.il List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jul 30, 2013 at 12:47:33AM -0700, Brian Norris wrote: > On Mon, Jul 29, 2013 at 4:24 PM, Ezequiel Garcia > 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] Mmm, I guess you're right. I did this patch a long time ago, and now I'm wondering if there is any reason why I haven't used that in the first place. Anyway... I'll fix and re-post. Thanks for the feedback! -- Ezequiel GarcĂ­a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com