EDAC, pnd2_edac: Fix !EDAC_DEBUG build
authorBorislav Petkov <bp@suse.de>
Sat, 18 Mar 2017 17:26:34 +0000 (18:26 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 23 Mar 2017 11:56:23 +0000 (12:56 +0100)
commitcd1be315ac9766fe83e4fb788d5d9fe032a9b877
tree0be283b38501d1110ad3c22373815dde77879c37
parent1c5bf78114d38c2761721108a2d925bccb496027
EDAC, pnd2_edac: Fix !EDAC_DEBUG build

Provide debugfs function stubs when EDAC_DEBUG is not enabled so that we
don't fail the build:

  drivers/edac/pnd2_edac.c: In function ‘pnd2_init’:
  drivers/edac/pnd2_edac.c:1521:2: error: implicit declaration of function ‘setup_pnd2_debug’ [-Werror=implicit-function-declaration]
    setup_pnd2_debug();
    ^
  drivers/edac/pnd2_edac.c: In function ‘pnd2_exit’:
  drivers/edac/pnd2_edac.c:1529:2: error: implicit declaration of function ‘teardown_pnd2_debug’ [-Werror=implicit-function-declaration]
    teardown_pnd2_debug();
    ^

Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/pnd2_edac.c