]> git.karo-electronics.de Git - linux-beck.git/commitdiff
EDAC, altera: Make a10_eccmgr_ic_ops static
authorWei Yongjun <weiyj.lk@gmail.com>
Wed, 10 Aug 2016 13:44:27 +0000 (13:44 +0000)
committerBorislav Petkov <bp@suse.de>
Wed, 10 Aug 2016 16:37:06 +0000 (18:37 +0200)
Fix the following sparse warning:

  drivers/edac/altera_edac.c:1649:23: warning:
   symbol 'a10_eccmgr_ic_ops' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Reviewed-by: Thor Thayer <tthayer@opensource.altera.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Link: http://lkml.kernel.org/r/1470836667-11822-1-git-send-email-weiyj.lk@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/altera_edac.c

index efaf727be25aa0ee63d28c8819270d3fe336f3d1..c8147f1d9eddc3284fb481b28607900685bebd1a 100644 (file)
@@ -1831,7 +1831,7 @@ static int a10_eccmgr_irqdomain_map(struct irq_domain *d, unsigned int irq,
        return 0;
 }
 
-struct irq_domain_ops a10_eccmgr_ic_ops = {
+static struct irq_domain_ops a10_eccmgr_ic_ops = {
        .map = a10_eccmgr_irqdomain_map,
        .xlate = irq_domain_xlate_twocell,
 };