From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp11.smtpout.orange.fr ([80.12.242.133] helo=smtp.smtpout.orange.fr) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xh1kT-0002Fc-Gn for linux-mtd@lists.infradead.org; Wed, 22 Oct 2014 19:39:12 +0000 From: Robert Jarzmik To: Brian Norris Subject: Re: [PATCH] mtd: docg3: fix 'defined but not used' warning References: <1413998606-9589-1-git-send-email-computersforpeace@gmail.com> Date: Wed, 22 Oct 2014 21:38:39 +0200 In-Reply-To: (Brian Norris's message of "Wed, 22 Oct 2014 10:33:28 -0700") Message-ID: <87tx2vlwsg.fsf@free.fr> MIME-Version: 1.0 Content-Type: text/plain Cc: "linux-mtd@lists.infradead.org" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Brian Norris writes: > On Wed, Oct 22, 2014 at 10:23 AM, Brian Norris > wrote: >> drivers/mtd/devices/docg3.c:2122:28: warning: 'docg3_dt_ids' defined but not used [-Wunused-variable] >> static struct of_device_id docg3_dt_ids[] = { > > I suppose I should add that this only happens when CONFIG_OF=n. I'll > add this to the commit message if/when I apply this. Thanks Brian, I had forgotten the non device-tree case, and overviewed the warning. Your change is the way to go. Cheers. -- Robert