Message ID | 20210322215047.1062540-1-arnd@kernel.org |
---|---|
State | Rejected |
Headers | show |
Series | clk: tegra: fix old-style declaration | expand |
On Mon, Mar 22, 2021 at 10:50:41PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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> > --- > drivers/clk/tegra/clk-dfll.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Thierry Reding <treding@nvidia.com>
Quoting Arnd Bergmann (2021-03-22 14:50:41) > From: Arnd Bergmann <arnd@arndb.de> > > 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> > --- Applied to clk-next
diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll.c index a5f526bb0483..6144447f86c6 100644 --- a/drivers/clk/tegra/clk-dfll.c +++ b/drivers/clk/tegra/clk-dfll.c @@ -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 */ /*