[PATCH] mtd: docg3: fix 'defined but not used' warning

Robert Jarzmik robert.jarzmik at free.fr
Wed Oct 22 12:38:39 PDT 2014

Brian Norris <computersforpeace at gmail.com> writes:

> On Wed, Oct 22, 2014 at 10:23 AM, Brian Norris
> <computersforpeace at gmail.com> 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.



More information about the linux-mtd mailing list