diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-04-16 22:13:56 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2016-04-23 12:00:12 +0200 |
commit | 1aa6eb5c5b35771cfb28265eccd99b4b203b4154 (patch) | |
tree | 1b1c125e6fb279df2e5de766a4efb6d7f37ba8d0 /kernel/sysctl.c | |
parent | 2c911f6cac9388830d2afb350d29f43f115b1a28 (diff) | |
download | op-kernel-dev-1aa6eb5c5b35771cfb28265eccd99b4b203b4154.zip op-kernel-dev-1aa6eb5c5b35771cfb28265eccd99b4b203b4154.tar.gz |
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 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions