summaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorArnd Bergmann2016-04-16 22:13:56 +0200
committerBorislav Petkov2016-04-23 12:00:12 +0200
commit1aa6eb5c5b35771cfb28265eccd99b4b203b4154 (patch)
tree1b1c125e6fb279df2e5de766a4efb6d7f37ba8d0 /drivers/edac/edac_mc_sysfs.c
parentEDAC, altera: Remove useless casts (diff)
downloadkernel-qcow2-linux-1aa6eb5c5b35771cfb28265eccd99b4b203b4154.tar.gz
kernel-qcow2-linux-1aa6eb5c5b35771cfb28265eccd99b4b203b4154.tar.xz
kernel-qcow2-linux-1aa6eb5c5b35771cfb28265eccd99b4b203b4154.zip
EDAC, altera: Avoid unused function warnings
The recently added Arria10 OCRAM ECC support caused some new harmless warnings about unused functions when it is disabled: drivers/edac/altera_edac.c:1067:20: error: 'altr_edac_a10_ecc_irq' defined but not used [-Werror=unused-function] drivers/edac/altera_edac.c:658:12: error: 'altr_check_ecc_deps' defined but not used [-Werror=unused-function] This rearranges the code slightly to have those two functions inside of the same #ifdef that hides their callers. It also manages to avoid a forward declaration of the IRQ handler in the process. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thor Thayer <tthayer@opensource.altera.com> Cc: Alan Tull <atull@opensource.altera.com> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Cc: linux-edac <linux-edac@vger.kernel.org> Fixes: c7b4be8db8bc ("EDAC, altera: Add Arria10 OCRAM ECC support") Link: http://lkml.kernel.org/r/1460837650-1237650-2-git-send-email-arnd@arndb.de Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
0 files changed, 0 insertions, 0 deletions