Re: [PATCH v3] x86/pmc_atom: Fix warning when CONFIG_DEBUG_FS=n

2014-09-18 Thread Li, Aubrey
On 2014/9/17 22:17, Martin Kelly wrote: > When compiling with CONFIG_DEBUG_FS=n, gcc emits an unused variable > warning for pmc_atom.c because "ret" is used only within the > CONFIG_DEBUG_FS block. This patch adds a dummy #ifdef for > pmc_dbgfs_register when CONFIG_DEBUG_FS=n to simplify the code a

[PATCH v3] x86/pmc_atom: Fix warning when CONFIG_DEBUG_FS=n

2014-09-17 Thread Martin Kelly
When compiling with CONFIG_DEBUG_FS=n, gcc emits an unused variable warning for pmc_atom.c because "ret" is used only within the CONFIG_DEBUG_FS block. This patch adds a dummy #ifdef for pmc_dbgfs_register when CONFIG_DEBUG_FS=n to simplify the code and remove the warning. Signed-off-by: Martin Ke