mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
clk: rockchip: Disable boost summary when build as module
In order to fix the following error when enable DEBUG_FS.
drivers/clk/rockchip/clk-pll.c:1643:1: warning: data definition has no type or storage class
error, forbidden warning:clk-pll.c:1643
late_initcall(boost_debug_init);
^~~~~~~~~~~~~
drivers/clk/rockchip/clk-pll.c:1643:1: error: type defaults to 'int' in declaration of 'late_initcall' [-Werror=implicit-int]
drivers/clk/rockchip/clk-pll.c:1643:1: warning: parameter names (without types) in function declaration
error, forbidden warning:clk-pll.c:1643
drivers/clk/rockchip/clk-pll.c:1623:19: warning: 'boost_debug_init' defined but not used [-Wunused-function]
error, forbidden warning:clk-pll.c:1623
static int __init boost_debug_init(void)
^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:333: recipe for target 'drivers/clk/rockchip/clk-pll.o' failed
make[4]: *** [drivers/clk/rockchip/clk-pll.o] Error 1
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I6aa341ea05925f6c05285329fd56b7c1e7f2307b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This commit is contained in:
@@ -1600,6 +1600,7 @@ void rockchip_boost_add_core_div(struct clk_hw *hw, unsigned long prate)
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
#include <linux/debugfs.h>
|
||||
|
||||
#ifndef MODULE
|
||||
static int boost_summary_show(struct seq_file *s, void *data)
|
||||
{
|
||||
struct rockchip_clk_pll *pll = (struct rockchip_clk_pll *)s->private;
|
||||
@@ -1717,4 +1718,5 @@ static int __init boost_debug_init(void)
|
||||
return 0;
|
||||
}
|
||||
late_initcall(boost_debug_init);
|
||||
#endif
|
||||
#endif /* MODULE */
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
|
||||
Reference in New Issue
Block a user