Среда, 5 марта 2014, 20:23 +01:00 от Marek Vasut <ma...@denx.de>: > On Wednesday, March 05, 2014 at 08:17:49 PM, Hans de Goede wrote: > > This fixes the following warnings when CONFIG_PM_SLEEP is not set: > > > > drivers/ata/ahci_imx.c:284:12: warning: ‘imx_ahci_suspend’ defined but not > > used [-Wunused-function] drivers/ata/ahci_imx.c:299:12: warning: > > ‘imx_ahci_resume’ defined but not used [-Wunused-function] > > > > Reported-by: Bartlomiej Zolnierkiewicz <b.zolnier...@samsung.com> > > Cc: Bartlomiej Zolnierkiewicz <b.zolnier...@samsung.com> > > Signed-off-by: Hans de Goede <hdego...@redhat.com> > > Obviously makes sense. > > Acked-by: Marek Vasut <ma...@denx.de>
But a better way is to use the "__maybe_unused" attribute for such cases. --- -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.