Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build
From: Arnd Bergmann <arnd@arndb.de>
Date: 2020-07-01 10:14:04
Also in:
linux-clk, lkml
From: Arnd Bergmann <arnd@arndb.de>
Date: 2020-07-01 10:14:04
Also in:
linux-clk, lkml
On Wed, Jul 1, 2020 at 12:02 PM Anson Huang [off-list ref] wrote:
quoted
Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build On Wed, Jul 1, 2020 at 11:27 AM Anson Huang [off-list ref] wrote:quoted
quoted
Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module buildWhy not move this all to a separate file then and only build it when CONFIG_CLK_IMX=y? It seems that you don't need the imx_keep_uart_clocks_param() if the clk driver is loaded as a module, but then you also don't need the imx_clk_disable_uart() and imx_register_uart_clocks() functions or the associated variables.If so, how about just adding "#ifndef MODULE" check for this part of code? I think it should be easier/better than adding a file and build it conditionally?
The #ifdef is clearly a simpler change, but I think a separate file is
a cleaner way to do it. Up to you (unless one of the imx or clk maintainers
has a preference -- I'm only helping out here, not making decisions).
Arnd
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel