Re: [PATCH] cxl: fix build when CONFIG_DEBUG_FS=n

2017-01-31 Thread Michael Ellerman
Andrew Donnellan writes: > Stub out the debugfs functions so that the build doesn't break when > CONFIG_DEBUG_FS=n. It's not a big deal, but it's preferable to do the stubs as static inlines in a header. That way they generate no code. Doing it this way, in a C file, you'll still get lots of on

[PATCH] cxl: fix build when CONFIG_DEBUG_FS=n

2017-01-31 Thread Andrew Donnellan
Stub out the debugfs functions so that the build doesn't break when CONFIG_DEBUG_FS=n. Reported-by: Michael Ellerman Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/debugfs.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/misc/cx