* Re: [PATCH v4 1/1] EDAC, pnd2_edac: Add new EDAC driver for Intel SoC platforms
[not found] ` <3908561D78D1C84285E8C5FCA982C28F612285E4@ORSMSX114.amr.corp.intel.com>
@ 2017-03-18 17:37 ` Borislav Petkov
2017-03-18 17:38 ` [PATCH 1/2] EDAC: Select DEBUG_FS Borislav Petkov
2017-03-18 17:39 ` [PATCH 2/2] EDAC, pnd2_edac: Fix !EDAC_DEBUG build Borislav Petkov
0 siblings, 2 replies; 3+ messages in thread
From: Borislav Petkov @ 2017-03-18 17:37 UTC (permalink / raw)
To: Luck, Tony; +Cc: linux-edac, lkml
Btw,
just broke the build with pnd2 due to EDAC_DEBUG + DEBUG_FS dependencies
missing. I'm replying to this mail with potential fixes but would like
to hammer on them more when I get back just to be sure I haven't missed
anything.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 1/2] EDAC: Select DEBUG_FS
2017-03-18 17:37 ` [PATCH v4 1/1] EDAC, pnd2_edac: Add new EDAC driver for Intel SoC platforms Borislav Petkov
@ 2017-03-18 17:38 ` Borislav Petkov
2017-03-18 17:39 ` [PATCH 2/2] EDAC, pnd2_edac: Fix !EDAC_DEBUG build Borislav Petkov
1 sibling, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2017-03-18 17:38 UTC (permalink / raw)
To: Luck, Tony; +Cc: linux-edac, lkml
The debugfs.c functionality relies on DEBUG_FS so select it.
Signed-off-by: Borislav Petkov <bp@suse.de>
---
drivers/edac/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
index be3eac6ad54d..4773f2867234 100644
--- a/drivers/edac/Kconfig
+++ b/drivers/edac/Kconfig
@@ -43,6 +43,7 @@ config EDAC_LEGACY_SYSFS
config EDAC_DEBUG
bool "Debugging"
+ select DEBUG_FS
help
This turns on debugging information for the entire EDAC subsystem.
You do so by inserting edac_module with "edac_debug_level=x." Valid
--
2.8.4
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 2/2] EDAC, pnd2_edac: Fix !EDAC_DEBUG build
2017-03-18 17:37 ` [PATCH v4 1/1] EDAC, pnd2_edac: Add new EDAC driver for Intel SoC platforms Borislav Petkov
2017-03-18 17:38 ` [PATCH 1/2] EDAC: Select DEBUG_FS Borislav Petkov
@ 2017-03-18 17:39 ` Borislav Petkov
1 sibling, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2017-03-18 17:39 UTC (permalink / raw)
To: Luck, Tony; +Cc: linux-edac, lkml
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/edac/pnd2_edac.c b/drivers/edac/pnd2_edac.c
index 14d39f05226e..ec2e349d728d 100644
--- a/drivers/edac/pnd2_edac.c
+++ b/drivers/edac/pnd2_edac.c
@@ -1435,7 +1435,11 @@ static void teardown_pnd2_debug(void)
{
debugfs_remove_recursive(pnd2_test);
}
-#endif
+#else
+static void setup_pnd2_debug(void) {}
+static void teardown_pnd2_debug(void) {}
+#endif /* CONFIG_EDAC_DEBUG */
+
static int pnd2_probe(void)
{
--
2.8.4
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-18 17:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20170308174539.14432-1-qiuxu.zhuo@intel.com>
[not found] ` <20170316114226.i2chiuvmbpwhrwyv@pd.tnic>
[not found] ` <3908561D78D1C84285E8C5FCA982C28F612285E4@ORSMSX114.amr.corp.intel.com>
2017-03-18 17:37 ` [PATCH v4 1/1] EDAC, pnd2_edac: Add new EDAC driver for Intel SoC platforms Borislav Petkov
2017-03-18 17:38 ` [PATCH 1/2] EDAC: Select DEBUG_FS Borislav Petkov
2017-03-18 17:39 ` [PATCH 2/2] EDAC, pnd2_edac: Fix !EDAC_DEBUG build Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®