Skip to content

Commit

Permalink
clk: tegra: fix old-style declaration
Browse files Browse the repository at this point in the history
With extra warnings enabled, gcc complains about a slightly odd
prototype:

drivers/clk/tegra/clk-dfll.c:1380:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration]
 1380 | static void inline dfll_debug_init(struct tegra_dfll *td) { }

Move the 'inline' keyword to the start of the line.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210322215047.1062540-1-arnd@kernel.org
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Arnd Bergmann authored and Stephen Boyd committed Aug 29, 2021
1 parent 923ba46 commit 2711544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/tegra/clk-dfll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ static void dfll_debug_init(struct tegra_dfll *td)
}

#else
static void inline dfll_debug_init(struct tegra_dfll *td) { }
static inline void dfll_debug_init(struct tegra_dfll *td) { }
#endif /* CONFIG_DEBUG_FS */

/*
Expand Down

0 comments on commit 2711544

Please sign in to comment.