linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 01/13] ARM: davinci: fix davinci_cpufreq_init() declaration
       [not found] ` <20230516153109.514251-2-arnd@kernel.org>
@ 2023-05-16 15:41   ` Bartosz Golaszewski
  0 siblings, 0 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2023-05-16 15:41 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: soc, Arnd Bergmann, Russell King, Hartley Sweeten,
	Alexander Sverdlin, Andre Przywara, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Vladimir Zapolskiy, Aaro Koskinen, Janusz Krzysztofik,
	Tony Lindgren, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

On Tue, May 16, 2023 at 5:31 PM Arnd Bergmann <arnd@kernel.org> wrote:
>
> From: Arnd Bergmann <arnd@arndb.de>
>
> The davinci_cpufreq_init() declaration is only seen by its caller
> but not the definition:
>
> drivers/cpufreq/davinci-cpufreq.c:153:12: error: no previous prototype for 'davinci_cpufreq_init'
>
> Move it into the platform_data header that is already used an
> interface between the two places.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  arch/arm/mach-davinci/common.c                | 1 +
>  arch/arm/mach-davinci/common.h                | 6 ------
>  include/linux/platform_data/davinci-cpufreq.h | 6 ++++++
>  3 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c
> index c1ce6b2a8d48..7bc7018688de 100644
> --- a/arch/arm/mach-davinci/common.c
> +++ b/arch/arm/mach-davinci/common.c
> @@ -11,6 +11,7 @@
>  #include <linux/etherdevice.h>
>  #include <linux/davinci_emac.h>
>  #include <linux/dma-mapping.h>
> +#include <linux/platform_data/davinci-cpufreq.h>
>
>  #include <asm/tlb.h>
>  #include <asm/mach/map.h>
> diff --git a/arch/arm/mach-davinci/common.h b/arch/arm/mach-davinci/common.h
> index b2a96cdf88da..010ba1df27b3 100644
> --- a/arch/arm/mach-davinci/common.h
> +++ b/arch/arm/mach-davinci/common.h
> @@ -55,12 +55,6 @@ extern void davinci_common_init(const struct davinci_soc_info *soc_info);
>  extern void davinci_init_ide(void);
>  void davinci_init_late(void);
>
> -#ifdef CONFIG_CPU_FREQ
> -int davinci_cpufreq_init(void);
> -#else
> -static inline int davinci_cpufreq_init(void) { return 0; }
> -#endif
> -
>  #ifdef CONFIG_SUSPEND
>  int davinci_pm_init(void);
>  #else
> diff --git a/include/linux/platform_data/davinci-cpufreq.h b/include/linux/platform_data/davinci-cpufreq.h
> index bc208c64e3d7..1ef91c36f609 100644
> --- a/include/linux/platform_data/davinci-cpufreq.h
> +++ b/include/linux/platform_data/davinci-cpufreq.h
> @@ -16,4 +16,10 @@ struct davinci_cpufreq_config {
>         int (*init)(void);
>  };
>
> +#ifdef CONFIG_CPU_FREQ
> +int davinci_cpufreq_init(void);
> +#else
> +static inline int davinci_cpufreq_init(void) { return 0; }
> +#endif
> +
>  #endif /* _MACH_DAVINCI_CPUFREQ_H */
> --
> 2.39.2
>

Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 02/13] ARM: ep93xx: fix missing-prototype warnings
       [not found] ` <20230516153109.514251-3-arnd@kernel.org>
@ 2023-05-16 15:51   ` Alexander Sverdlin
  0 siblings, 0 replies; 15+ messages in thread
From: Alexander Sverdlin @ 2023-05-16 15:51 UTC (permalink / raw)
  To: Arnd Bergmann, soc
  Cc: Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Andre Przywara, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Vladimir Zapolskiy, Aaro Koskinen, Janusz Krzysztofik,
	Tony Lindgren, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

Hi Arnd!

On Tue, 2023-05-16 at 17:30 +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> ep93xx_clocksource_read() is only called from the file it is declared in,
> while ep93xx_timer_init() is declared in a header that is not included here.
> 
> arch/arm/mach-ep93xx/timer-ep93xx.c:120:13: error: no previous prototype for 'ep93xx_timer_init'
> arch/arm/mach-ep93xx/timer-ep93xx.c:63:5: error: no previous prototype for 'ep93xx_clocksource_read'
> 
> Fixes: 000bc17817bf ("ARM: ep93xx: switch to GENERIC_CLOCKEVENTS")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>

> ---
>  arch/arm/mach-ep93xx/timer-ep93xx.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-ep93xx/timer-ep93xx.c b/arch/arm/mach-ep93xx/timer-ep93xx.c
> index dd4b164d1831..a9efa7bc2fa1 100644
> --- a/arch/arm/mach-ep93xx/timer-ep93xx.c
> +++ b/arch/arm/mach-ep93xx/timer-ep93xx.c
> @@ -9,6 +9,7 @@
>  #include <linux/io.h>
>  #include <asm/mach/time.h>
>  #include "soc.h"
> +#include "platform.h"
>  
>  /*************************************************************************
>   * Timer handling for EP93xx
> @@ -60,7 +61,7 @@ static u64 notrace ep93xx_read_sched_clock(void)
>         return ret;
>  }
>  
> -u64 ep93xx_clocksource_read(struct clocksource *c)
> +static u64 ep93xx_clocksource_read(struct clocksource *c)
>  {
>         u64 ret;

-- 
Alexander Sverdlin.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 03/13] ARM: highbank: add missing include
       [not found] ` <20230516153109.514251-4-arnd@kernel.org>
@ 2023-05-16 15:58   ` Andre Przywara
  0 siblings, 0 replies; 15+ messages in thread
From: Andre Przywara @ 2023-05-16 15:58 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: soc, Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Alexander Sverdlin, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Vladimir Zapolskiy, Aaro Koskinen, Janusz Krzysztofik,
	Tony Lindgren, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

On Tue, 16 May 2023 17:30:59 +0200
Arnd Bergmann <arnd@kernel.org> wrote:

> From: Arnd Bergmann <arnd@arndb.de>
> 
> highbank_pm_init() is declared in core.h this is not included in the
> file that defines it.
> 
> arch/arm/mach-highbank/pm.c:43:13: error: no previous prototype for 'highbank_pm_init'
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
>  arch/arm/mach-highbank/pm.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/mach-highbank/pm.c b/arch/arm/mach-highbank/pm.c
> index 561941baeda9..3fdbdb83113b 100644
> --- a/arch/arm/mach-highbank/pm.c
> +++ b/arch/arm/mach-highbank/pm.c
> @@ -12,6 +12,8 @@
>  
>  #include <uapi/linux/psci.h>
>  
> +#include "core.h"
> +
>  #define HIGHBANK_SUSPEND_PARAM \
>  	((0 << PSCI_0_2_POWER_STATE_ID_SHIFT) | \
>  	 (1 << PSCI_0_2_POWER_STATE_AFFL_SHIFT) | \


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 09/13] ARM: orion5x: fix d2net gpio initialization
       [not found] ` <20230516153109.514251-10-arnd@kernel.org>
@ 2023-05-16 16:17   ` Andrew Lunn
  0 siblings, 0 replies; 15+ messages in thread
From: Andrew Lunn @ 2023-05-16 16:17 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: soc, Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Alexander Sverdlin, Andre Przywara, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Vladimir Zapolskiy, Aaro Koskinen,
	Janusz Krzysztofik, Tony Lindgren, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb, stable

On Tue, May 16, 2023 at 05:31:05PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The DT version of this board has a custom file with the gpio
> device. However, it does nothing because the d2net_init()
> has no caller or prototype:
> 
> arch/arm/mach-orion5x/board-d2net.c:101:13: error: no previous prototype for 'd2net_init'
> 
> Call it from the board-dt file as intended.
> 
> Fixes: 94b0bd366e36 ("ARM: orion5x: convert d2net to Device Tree")
> Cc: stable@vger.kernel.org
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 07/13] ARM: omap1: add missing include
       [not found] ` <20230516153109.514251-8-arnd@kernel.org>
@ 2023-05-16 23:18   ` Aaro Koskinen
  2023-05-17  5:58     ` Tony Lindgren
  2023-05-17  5:58     ` Tony Lindgren
  0 siblings, 2 replies; 15+ messages in thread
From: Aaro Koskinen @ 2023-05-16 23:18 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: soc, Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Alexander Sverdlin, Andre Przywara, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Vladimir Zapolskiy, Janusz Krzysztofik,
	Tony Lindgren, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

On Tue, May 16, 2023 at 05:31:03PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The omap_serial_wakeup_init() declaration is not visible where it is
> defined, so make sure "common.h" is included here, avoiding:
> 
> arch/arm/mach-omap1/serial.c:221:12: error: no previous prototype for 'omap_serial_wakeup_init' [-Werror=missing-prototypes]
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>

A.

> ---
>  arch/arm/mach-omap1/serial.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c
> index 96f59110d649..f25b94c86aec 100644
> --- a/arch/arm/mach-omap1/serial.c
> +++ b/arch/arm/mach-omap1/serial.c
> @@ -19,6 +19,7 @@
>  
>  #include <asm/mach-types.h>
>  
> +#include "common.h"
>  #include "serial.h"
>  #include "mux.h"
>  #include "pm.h"
> -- 
> 2.39.2
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 08/13] ARM: omap2: fix missing tick_broadcast() prototype
       [not found] ` <20230516153109.514251-9-arnd@kernel.org>
@ 2023-05-16 23:20   ` Aaro Koskinen
  0 siblings, 0 replies; 15+ messages in thread
From: Aaro Koskinen @ 2023-05-16 23:20 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: soc, Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Alexander Sverdlin, Andre Przywara, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Vladimir Zapolskiy, Janusz Krzysztofik,
	Tony Lindgren, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

On Tue, May 16, 2023 at 05:31:04PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> omap2 contains a hack to define tick_broadcast() on non-SMP
> configurations in place of the normal SMP definition. This one
> causes a warning because of a missing prototype:
> 
> arch/arm/mach-omap2/board-generic.c:44:6: error: no previous prototype for 'tick_broadcast'
> 
> Make sure to always include the header with the declaration.
> 
> Fixes: d86ad463d670 ("ARM: OMAP2+: Fix regression for using local timer on non-SMP SoCs")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>

> ---
>  arch/arm/mach-omap2/board-generic.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
> index 853409b341a3..7aa41841edd4 100644
> --- a/arch/arm/mach-omap2/board-generic.c
> +++ b/arch/arm/mach-omap2/board-generic.c
> @@ -13,6 +13,7 @@
>  #include <linux/of_platform.h>
>  #include <linux/irqdomain.h>
>  #include <linux/clocksource.h>
> +#include <linux/clockchips.h>
>  
>  #include <asm/setup.h>
>  #include <asm/mach/arch.h>
> -- 
> 2.39.2
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 05/13] ARM: imx: remove unused mx25_revision()
       [not found] ` <20230516153109.514251-6-arnd@kernel.org>
@ 2023-05-16 23:34   ` Fabio Estevam
  2023-05-17  6:39     ` Arnd Bergmann
  0 siblings, 1 reply; 15+ messages in thread
From: Fabio Estevam @ 2023-05-16 23:34 UTC (permalink / raw)
  To: Arnd Bergmann, Martin Kaiser
  Cc: soc, Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Alexander Sverdlin, Andre Przywara, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, NXP Linux Team,
	Vladimir Zapolskiy, Aaro Koskinen, Janusz Krzysztofik,
	Tony Lindgren, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

Hi Arnd,

On Tue, May 16, 2023 at 12:32 PM Arnd Bergmann <arnd@kernel.org> wrote:
>
> From: Arnd Bergmann <arnd@arndb.de>
>
> This function has no prototype and no callers:
>
> arm/mach-imx/cpu-imx25.c:43:5: error: no previous prototype for 'mx25_revision' [-Werror=missing-prototypes]
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Martin Kaiser sent a patch adding a user for this function:

https://lore.kernel.org/linux-arm-kernel/20220815190748.102664-2-martin@kaiser.cx/

It would be better to apply Martin's patch instead of removing mx25_revision().

Thanks

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 12/13] ARM: spear: include "pl080.h" for pl080_get_signal() prototype
       [not found] ` <20230516153109.514251-13-arnd@kernel.org>
@ 2023-05-17  4:34   ` Viresh Kumar
  0 siblings, 0 replies; 15+ messages in thread
From: Viresh Kumar @ 2023-05-17  4:34 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: soc, Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Alexander Sverdlin, Andre Przywara, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Vladimir Zapolskiy, Aaro Koskinen,
	Janusz Krzysztofik, Tony Lindgren, Andrew Lunn,
	Sebastian Hesselbarth, Gregory Clement, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Viresh Kumar, Shiraz Hashim,
	Sudeep Holla, Lorenzo Pieralisi, Linus Walleij,
	Michael Turquette, Stephen Boyd, Greg Kroah-Hartman, Alan Stern,
	linux-arm-kernel, linux-kernel, linux-omap, linux-clk, linux-usb

On 16-05-23, 17:31, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> pl080_get_signal() and pl080_put_signal() are declared in pl080.h
> and defined in pl080.c, but this file is missing an include
> of the header:
> 
> arch/arm/mach-spear/pl080.c:27:5: error: no previous prototype for 'pl080_get_signal'
> arch/arm/mach-spear/pl080.c:62:6: error: no previous prototype for 'pl080_put_signal'
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  arch/arm/mach-spear/pl080.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-spear/pl080.c b/arch/arm/mach-spear/pl080.c
> index d6b8627d2544..47243a8153d0 100644
> --- a/arch/arm/mach-spear/pl080.c
> +++ b/arch/arm/mach-spear/pl080.c
> @@ -16,6 +16,7 @@
>  #include <linux/spinlock_types.h>
>  #include "spear.h"
>  #include "misc_regs.h"
> +#include "pl080.h"
>  
>  static spinlock_t lock = __SPIN_LOCK_UNLOCKED(x);

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 07/13] ARM: omap1: add missing include
  2023-05-16 23:18   ` [PATCH 07/13] ARM: omap1: add missing include Aaro Koskinen
@ 2023-05-17  5:58     ` Tony Lindgren
  2023-05-17  5:58     ` Tony Lindgren
  1 sibling, 0 replies; 15+ messages in thread
From: Tony Lindgren @ 2023-05-17  5:58 UTC (permalink / raw)
  To: Aaro Koskinen
  Cc: Arnd Bergmann, soc, Arnd Bergmann, Russell King,
	Bartosz Golaszewski, Hartley Sweeten, Alexander Sverdlin,
	Andre Przywara, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, NXP Linux Team, Vladimir Zapolskiy,
	Janusz Krzysztofik, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

* Aaro Koskinen <aaro.koskinen@iki.fi> [230516 23:18]:
> On Tue, May 16, 2023 at 05:31:03PM +0200, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@arndb.de>
> > 
> > The omap_serial_wakeup_init() declaration is not visible where it is
> > defined, so make sure "common.h" is included here, avoiding:
> > 
> > arch/arm/mach-omap1/serial.c:221:12: error: no previous prototype for 'omap_serial_wakeup_init' [-Werror=missing-prototypes]
> > 
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> 
> Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>

Acked-by: Tony Lindgren <tony@atomide.com>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 07/13] ARM: omap1: add missing include
  2023-05-16 23:18   ` [PATCH 07/13] ARM: omap1: add missing include Aaro Koskinen
  2023-05-17  5:58     ` Tony Lindgren
@ 2023-05-17  5:58     ` Tony Lindgren
  1 sibling, 0 replies; 15+ messages in thread
From: Tony Lindgren @ 2023-05-17  5:58 UTC (permalink / raw)
  To: Aaro Koskinen
  Cc: Arnd Bergmann, soc, Arnd Bergmann, Russell King,
	Bartosz Golaszewski, Hartley Sweeten, Alexander Sverdlin,
	Andre Przywara, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, NXP Linux Team, Vladimir Zapolskiy,
	Janusz Krzysztofik, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Daniel Mack, Haojian Zhuang, Robert Jarzmik,
	Viresh Kumar, Shiraz Hashim, Sudeep Holla, Lorenzo Pieralisi,
	Linus Walleij, Michael Turquette, Stephen Boyd,
	Greg Kroah-Hartman, Alan Stern, linux-arm-kernel, linux-kernel,
	linux-omap, linux-clk, linux-usb

* Aaro Koskinen <aaro.koskinen@iki.fi> [230516 23:18]:
> On Tue, May 16, 2023 at 05:31:03PM +0200, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@arndb.de>
> > 
> > The omap_serial_wakeup_init() declaration is not visible where it is
> > defined, so make sure "common.h" is included here, avoiding:
> > 
> > arch/arm/mach-omap1/serial.c:221:12: error: no previous prototype for 'omap_serial_wakeup_init' [-Werror=missing-prototypes]
> > 
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> 
> Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>

Acked-by: Tony Lindgren <tony@atomide.com>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 05/13] ARM: imx: remove unused mx25_revision()
  2023-05-16 23:34   ` [PATCH 05/13] ARM: imx: remove unused mx25_revision() Fabio Estevam
@ 2023-05-17  6:39     ` Arnd Bergmann
  2023-05-17 15:45       ` Martin Kaiser
  0 siblings, 1 reply; 15+ messages in thread
From: Arnd Bergmann @ 2023-05-17  6:39 UTC (permalink / raw)
  To: Fabio Estevam, Arnd Bergmann, Martin Kaiser
  Cc: soc, Russell King, Bartosz Golaszewski, Hartley Sweeten,
	Alexander Sverdlin, Andre Przywara, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, NXP Linux Team, Vladimir Zapolskiy,
	Aaro Koskinen, Janusz Krzysztofik, Tony Lindgren, Andrew Lunn,
	Sebastian Hesselbarth, Gregory Clement, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Viresh Kumar, Shiraz Hashim,
	Sudeep Holla, Lorenzo Pieralisi, Linus Walleij,
	Michael Turquette, Stephen Boyd, Greg Kroah-Hartman, Alan Stern,
	linux-arm-kernel, linux-kernel, Linux-OMAP, linux-clk, linux-usb

On Wed, May 17, 2023, at 01:34, Fabio Estevam wrote:
> On Tue, May 16, 2023 at 12:32 PM Arnd Bergmann <arnd@kernel.org> wrote:
>>
>> From: Arnd Bergmann <arnd@arndb.de>
>>
>> This function has no prototype and no callers:
>>
>> arm/mach-imx/cpu-imx25.c:43:5: error: no previous prototype for 'mx25_revision' [-Werror=missing-prototypes]
>>
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> Martin Kaiser sent a patch adding a user for this function:
>
> https://lore.kernel.org/linux-arm-kernel/20220815190748.102664-2-martin@kaiser.cx/
>
> It would be better to apply Martin's patch instead of removing mx25_revision().

I think either way is ok to address the warning. If we wanted to do this
properly, the mx{25,27,31,35,5}_revision functions could all be removed
and the logic hooked up to imx_set_soc_revision() in the same way that
they already use mxc_set_cpu_type() for drivers/soc/imx/soc-imx.c.

I'll leave it up to you, if you want to merge Martin's patches or
a replacement for the soc-imx driver through the imx tree for 6.5,
I'll drop my patch from this series, otherwise I'll keep it for now
and we can still do it better at later point.

    Arnd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 05/13] ARM: imx: remove unused mx25_revision()
  2023-05-17  6:39     ` Arnd Bergmann
@ 2023-05-17 15:45       ` Martin Kaiser
  2023-07-28 15:59         ` Arnd Bergmann
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Kaiser @ 2023-05-17 15:45 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Fabio Estevam, Arnd Bergmann, soc, Russell King,
	Bartosz Golaszewski, Hartley Sweeten, Alexander Sverdlin,
	Andre Przywara, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	NXP Linux Team, Vladimir Zapolskiy, Aaro Koskinen,
	Janusz Krzysztofik, Tony Lindgren, Andrew Lunn,
	Sebastian Hesselbarth, Gregory Clement, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Viresh Kumar, Shiraz Hashim,
	Sudeep Holla, Lorenzo Pieralisi, Linus Walleij,
	Michael Turquette, Stephen Boyd, Greg Kroah-Hartman, Alan Stern,
	linux-arm-kernel, linux-kernel, Linux-OMAP, linux-clk, linux-usb

Thus wrote Arnd Bergmann (arnd@arndb.de):

> I think either way is ok to address the warning. If we wanted to do this
> properly, the mx{25,27,31,35,5}_revision functions could all be removed
> and the logic hooked up to imx_set_soc_revision() in the same way that
> they already use mxc_set_cpu_type() for drivers/soc/imx/soc-imx.c.

> I'll leave it up to you, if you want to merge Martin's patches or
> a replacement for the soc-imx driver through the imx tree for 6.5,
> I'll drop my patch from this series, otherwise I'll keep it for now
> and we can still do it better at later point.

I suggest we merge my patches for imx25 first and then clean up all the
older imx families to use the common functions.

I've just rebased the patches against today's linux-next. My understanding
is that they have to go through the clk tree.

Thanks,
Martin

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 06/13] ARM: lpc32xx: add missing include
       [not found] ` <20230516153109.514251-7-arnd@kernel.org>
@ 2023-05-23 20:17   ` Vladimir Zapolskiy
  0 siblings, 0 replies; 15+ messages in thread
From: Vladimir Zapolskiy @ 2023-05-23 20:17 UTC (permalink / raw)
  To: Arnd Bergmann, soc
  Cc: Arnd Bergmann, Russell King, Bartosz Golaszewski,
	Hartley Sweeten, Alexander Sverdlin, Andre Przywara, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Aaro Koskinen, Janusz Krzysztofik, Tony Lindgren,
	Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Viresh Kumar, Shiraz Hashim,
	Sudeep Holla, Lorenzo Pieralisi, Linus Walleij,
	Michael Turquette, Stephen Boyd, Greg Kroah-Hartman, Alan Stern,
	linux-arm-kernel, linux-kernel, linux-omap, linux-clk, linux-usb

On 5/16/23 18:31, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> lpc32xx_loopback_set() is defined in linux/soc/nxp/lpc32xx-misc.h but
> this is not included before the function definition.
> 
> arch/arm/mach-lpc32xx/serial.c:63:6: error: no previous prototype for 'lpc32xx_loopback_set'
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>   arch/arm/mach-lpc32xx/serial.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-lpc32xx/serial.c b/arch/arm/mach-lpc32xx/serial.c
> index 3e765c4bf986..3b1203db81b2 100644
> --- a/arch/arm/mach-lpc32xx/serial.c
> +++ b/arch/arm/mach-lpc32xx/serial.c
> @@ -15,6 +15,7 @@
>   #include <linux/serial_8250.h>
>   #include <linux/clk.h>
>   #include <linux/io.h>
> +#include <linux/soc/nxp/lpc32xx-misc.h>
>   
>   #include "lpc32xx.h"
>   #include "common.h"

Acked-by: Vladimir Zapolskiy <vz@mleia.com>

If you wish, you may consider to add one more tag:

Fixes: ffba29c9ebd0 ("serial: lpc32xx: allow compile testing")

--
Best wishes,
Vladimir

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 05/13] ARM: imx: remove unused mx25_revision()
  2023-05-17 15:45       ` Martin Kaiser
@ 2023-07-28 15:59         ` Arnd Bergmann
  2023-07-30 16:26           ` Martin Kaiser
  0 siblings, 1 reply; 15+ messages in thread
From: Arnd Bergmann @ 2023-07-28 15:59 UTC (permalink / raw)
  To: Martin Kaiser
  Cc: Fabio Estevam, Arnd Bergmann, soc, Russell King,
	Bartosz Golaszewski, Hartley Sweeten, Alexander Sverdlin,
	Andre Przywara, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	NXP Linux Team, Vladimir Zapolskiy, Aaro Koskinen,
	Janusz Krzysztofik, Tony Lindgren, Andrew Lunn,
	Sebastian Hesselbarth, Gregory Clement, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Viresh Kumar, Shiraz Hashim,
	Sudeep Holla, Lorenzo Pieralisi, Linus Walleij,
	Michael Turquette, Stephen Boyd, Greg Kroah-Hartman, Alan Stern,
	linux-arm-kernel, linux-kernel, Linux-OMAP, linux-clk, linux-usb

On Wed, May 17, 2023, at 17:45, Martin Kaiser wrote:
> Thus wrote Arnd Bergmann (arnd@arndb.de):
>
>> I think either way is ok to address the warning. If we wanted to do this
>> properly, the mx{25,27,31,35,5}_revision functions could all be removed
>> and the logic hooked up to imx_set_soc_revision() in the same way that
>> they already use mxc_set_cpu_type() for drivers/soc/imx/soc-imx.c.
>
>> I'll leave it up to you, if you want to merge Martin's patches or
>> a replacement for the soc-imx driver through the imx tree for 6.5,
>> I'll drop my patch from this series, otherwise I'll keep it for now
>> and we can still do it better at later point.
>
> I suggest we merge my patches for imx25 first and then clean up all the
> older imx families to use the common functions.
>
> I've just rebased the patches against today's linux-next. My understanding
> is that they have to go through the clk tree.

This never happened, right? I see that mx25_revision() is still in the
tree without any users, so I can't easily turn on the warning by default
yet. Should I just go ahead and remove it for 5.6, or do you expect to
have your patch ready in time for the merge window?

       Arnd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 05/13] ARM: imx: remove unused mx25_revision()
  2023-07-28 15:59         ` Arnd Bergmann
@ 2023-07-30 16:26           ` Martin Kaiser
  0 siblings, 0 replies; 15+ messages in thread
From: Martin Kaiser @ 2023-07-30 16:26 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Fabio Estevam, Arnd Bergmann, soc, Russell King,
	Bartosz Golaszewski, Hartley Sweeten, Alexander Sverdlin,
	Andre Przywara, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	NXP Linux Team, Vladimir Zapolskiy, Aaro Koskinen,
	Janusz Krzysztofik, Tony Lindgren, Andrew Lunn,
	Sebastian Hesselbarth, Gregory Clement, Daniel Mack,
	Haojian Zhuang, Robert Jarzmik, Viresh Kumar, Shiraz Hashim,
	Sudeep Holla, Lorenzo Pieralisi, Linus Walleij,
	Michael Turquette, Stephen Boyd, Greg Kroah-Hartman, Alan Stern,
	linux-arm-kernel, linux-kernel, Linux-OMAP, linux-clk, linux-usb

Hi Arnd,

Arnd Bergmann (arnd@arndb.de) wrote:

> >> I'll leave it up to you, if you want to merge Martin's patches or
> >> a replacement for the soc-imx driver through the imx tree for 6.5,
> >> I'll drop my patch from this series, otherwise I'll keep it for now
> >> and we can still do it better at later point.

> > I suggest we merge my patches for imx25 first and then clean up all the
> > older imx families to use the common functions.

> > I've just rebased the patches against today's linux-next. My understanding
> > is that they have to go through the clk tree.

> This never happened, right? I see that mx25_revision() is still in the
> tree without any users, so I can't easily turn on the warning by default
> yet. Should I just go ahead and remove it for 5.6, or do you expect to
> have your patch ready in time for the merge window?

sorry for delaying your series.

So far, there's been no response to my patches from the clk maintainers.
Let me resend the patches one final time. If we don't hear anything back
within a week or so, feel free to remove mx25_revision (and probably all
of arch/arm/mach-imx/cpu-imx25.c) for the 6.6 merge window.

Thanks,
Martin

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-07-30 16:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230516153109.514251-1-arnd@kernel.org>
     [not found] ` <20230516153109.514251-2-arnd@kernel.org>
2023-05-16 15:41   ` [PATCH 01/13] ARM: davinci: fix davinci_cpufreq_init() declaration Bartosz Golaszewski
     [not found] ` <20230516153109.514251-3-arnd@kernel.org>
2023-05-16 15:51   ` [PATCH 02/13] ARM: ep93xx: fix missing-prototype warnings Alexander Sverdlin
     [not found] ` <20230516153109.514251-4-arnd@kernel.org>
2023-05-16 15:58   ` [PATCH 03/13] ARM: highbank: add missing include Andre Przywara
     [not found] ` <20230516153109.514251-10-arnd@kernel.org>
2023-05-16 16:17   ` [PATCH 09/13] ARM: orion5x: fix d2net gpio initialization Andrew Lunn
     [not found] ` <20230516153109.514251-8-arnd@kernel.org>
2023-05-16 23:18   ` [PATCH 07/13] ARM: omap1: add missing include Aaro Koskinen
2023-05-17  5:58     ` Tony Lindgren
2023-05-17  5:58     ` Tony Lindgren
     [not found] ` <20230516153109.514251-9-arnd@kernel.org>
2023-05-16 23:20   ` [PATCH 08/13] ARM: omap2: fix missing tick_broadcast() prototype Aaro Koskinen
     [not found] ` <20230516153109.514251-6-arnd@kernel.org>
2023-05-16 23:34   ` [PATCH 05/13] ARM: imx: remove unused mx25_revision() Fabio Estevam
2023-05-17  6:39     ` Arnd Bergmann
2023-05-17 15:45       ` Martin Kaiser
2023-07-28 15:59         ` Arnd Bergmann
2023-07-30 16:26           ` Martin Kaiser
     [not found] ` <20230516153109.514251-13-arnd@kernel.org>
2023-05-17  4:34   ` [PATCH 12/13] ARM: spear: include "pl080.h" for pl080_get_signal() prototype Viresh Kumar
     [not found] ` <20230516153109.514251-7-arnd@kernel.org>
2023-05-23 20:17   ` [PATCH 06/13] ARM: lpc32xx: add missing include Vladimir Zapolskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).