* [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy()
@ 2023-08-10 12:33 Arnd Bergmann
2023-08-10 12:33 ` [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static Arnd Bergmann
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Arnd Bergmann @ 2023-08-10 12:33 UTC (permalink / raw)
To: Thomas Gleixner, Marc Zyngier
Cc: Arnd Bergmann, Chris Zankel, Max Filippov, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
The declaration for this function is not included, which leads to a harmless warning:
drivers/irqchip/irq-xtensa-pic.c:91:12: error: no previous prototype for 'xtensa_pic_init_legacy' [-Werror=missing-prototypes]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/irqchip/irq-xtensa-pic.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/irq-xtensa-pic.c b/drivers/irqchip/irq-xtensa-pic.c
index ab12328be5eed..0c18d1f1e264f 100644
--- a/drivers/irqchip/irq-xtensa-pic.c
+++ b/drivers/irqchip/irq-xtensa-pic.c
@@ -16,6 +16,7 @@
#include <linux/irqdomain.h>
#include <linux/irq.h>
#include <linux/irqchip.h>
+#include <linux/irqchip/xtensa-pic.h>
#include <linux/of.h>
unsigned int cached_irq_mask;
--
2.39.2
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static 2023-08-10 12:33 [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Arnd Bergmann @ 2023-08-10 12:33 ` Arnd Bergmann 2023-08-10 14:52 ` Philippe Mathieu-Daudé ` (2 more replies) 2023-08-10 12:33 ` [PATCH 3/3] irqchip: i8259: mark i8259_of_init() static Arnd Bergmann ` (2 subsequent siblings) 3 siblings, 3 replies; 9+ messages in thread From: Arnd Bergmann @ 2023-08-10 12:33 UTC (permalink / raw) To: Thomas Gleixner, Marc Zyngier Cc: Arnd Bergmann, Thomas Bogendoerfer, Serge Semin, Jiaxun Yang, Philippe Mathieu-Daudé, wangjianli, linux-mips, linux-kernel From: Arnd Bergmann <arnd@arndb.de> This function is only used locally and should be static to avoid a warning: drivers/irqchip/irq-mips-gic.c:560:6: error: no previous prototype for 'gic_irq_domain_free' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/irqchip/irq-mips-gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index 6d5ecc10a8703..76253e864f230 100644 --- a/drivers/irqchip/irq-mips-gic.c +++ b/drivers/irqchip/irq-mips-gic.c @@ -557,7 +557,7 @@ static int gic_irq_domain_alloc(struct irq_domain *d, unsigned int virq, return gic_irq_domain_map(d, virq, hwirq); } -void gic_irq_domain_free(struct irq_domain *d, unsigned int virq, +static void gic_irq_domain_free(struct irq_domain *d, unsigned int virq, unsigned int nr_irqs) { } -- 2.39.2 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static 2023-08-10 12:33 ` [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static Arnd Bergmann @ 2023-08-10 14:52 ` Philippe Mathieu-Daudé 2023-08-13 14:26 ` Serge Semin 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchip/mips-gic: Mark " irqchip-bot for Arnd Bergmann 2 siblings, 0 replies; 9+ messages in thread From: Philippe Mathieu-Daudé @ 2023-08-10 14:52 UTC (permalink / raw) To: Arnd Bergmann, Thomas Gleixner, Marc Zyngier Cc: Arnd Bergmann, Thomas Bogendoerfer, Serge Semin, Jiaxun Yang, wangjianli, linux-mips, linux-kernel On 10/8/23 14:33, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > This function is only used locally and should be static to avoid a warning: > > drivers/irqchip/irq-mips-gic.c:560:6: error: no previous prototype for 'gic_irq_domain_free' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/irqchip/irq-mips-gic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static 2023-08-10 12:33 ` [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static Arnd Bergmann 2023-08-10 14:52 ` Philippe Mathieu-Daudé @ 2023-08-13 14:26 ` Serge Semin 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchip/mips-gic: Mark " irqchip-bot for Arnd Bergmann 2 siblings, 0 replies; 9+ messages in thread From: Serge Semin @ 2023-08-13 14:26 UTC (permalink / raw) To: Arnd Bergmann Cc: Thomas Gleixner, Marc Zyngier, Arnd Bergmann, Thomas Bogendoerfer, Jiaxun Yang, Philippe Mathieu-Daudé, wangjianli, linux-mips, linux-kernel On Thu, Aug 10, 2023 at 02:33:55PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > This function is only used locally and should be static to avoid a warning: > > drivers/irqchip/irq-mips-gic.c:560:6: error: no previous prototype for 'gic_irq_domain_free' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/irqchip/irq-mips-gic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c > index 6d5ecc10a8703..76253e864f230 100644 > --- a/drivers/irqchip/irq-mips-gic.c > +++ b/drivers/irqchip/irq-mips-gic.c > @@ -557,7 +557,7 @@ static int gic_irq_domain_alloc(struct irq_domain *d, unsigned int virq, > return gic_irq_domain_map(d, virq, hwirq); > } > > -void gic_irq_domain_free(struct irq_domain *d, unsigned int virq, > +static void gic_irq_domain_free(struct irq_domain *d, unsigned int virq, > unsigned int nr_irqs) Right. Thanks! Note the descendant line should be aligned to the function open parenthesis to preserve the coding style well utilized in the driver. With that fixed feel free to add: Reviewed-by: Serge Semin <fancer.lancer@gmail.com> -Serge(y) > { > } > -- > 2.39.2 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* [irqchip: irq/irqchip-next] irqchip/mips-gic: Mark gic_irq_domain_free() static 2023-08-10 12:33 ` [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static Arnd Bergmann 2023-08-10 14:52 ` Philippe Mathieu-Daudé 2023-08-13 14:26 ` Serge Semin @ 2023-08-21 16:58 ` irqchip-bot for Arnd Bergmann 2 siblings, 0 replies; 9+ messages in thread From: irqchip-bot for Arnd Bergmann @ 2023-08-21 16:58 UTC (permalink / raw) To: linux-kernel; +Cc: Arnd Bergmann, philmd, Serge Semin, Marc Zyngier, tglx The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 90e921d768677172cbb4be1d7597d556ae018020 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/90e921d768677172cbb4be1d7597d556ae018020 Author: Arnd Bergmann <arnd@arndb.de> AuthorDate: Thu, 10 Aug 2023 14:33:55 +02:00 Committer: Marc Zyngier <maz@kernel.org> CommitterDate: Mon, 21 Aug 2023 17:40:20 +01:00 irqchip/mips-gic: Mark gic_irq_domain_free() static This function is only used locally and should be static to avoid a warning: drivers/irqchip/irq-mips-gic.c:560:6: error: no previous prototype for 'gic_irq_domain_free' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230810123404.1222332-2-arnd@kernel.org --- drivers/irqchip/irq-mips-gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index 6d5ecc1..76253e8 100644 --- a/drivers/irqchip/irq-mips-gic.c +++ b/drivers/irqchip/irq-mips-gic.c @@ -557,7 +557,7 @@ static int gic_irq_domain_alloc(struct irq_domain *d, unsigned int virq, return gic_irq_domain_map(d, virq, hwirq); } -void gic_irq_domain_free(struct irq_domain *d, unsigned int virq, +static void gic_irq_domain_free(struct irq_domain *d, unsigned int virq, unsigned int nr_irqs) { } ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/3] irqchip: i8259: mark i8259_of_init() static 2023-08-10 12:33 [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Arnd Bergmann 2023-08-10 12:33 ` [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static Arnd Bergmann @ 2023-08-10 12:33 ` Arnd Bergmann 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchipr/i8259: Mark " irqchip-bot for Arnd Bergmann 2023-08-10 12:36 ` [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Max Filippov 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchip/xtensa-pic: Include " irqchip-bot for Arnd Bergmann 3 siblings, 1 reply; 9+ messages in thread From: Arnd Bergmann @ 2023-08-10 12:33 UTC (permalink / raw) To: Thomas Gleixner, Marc Zyngier; +Cc: Arnd Bergmann, linux-kernel From: Arnd Bergmann <arnd@arndb.de> i8259_of_init() is only used as an initcall and does not need to be global, so mark it static to avoid: drivers/irqchip/irq-i8259.c:343:12: warning: no previous prototype for 'i8259_of_init' [-Wmissing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/irqchip/irq-i8259.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c index b70ce0d3c092e..115bdcffab248 100644 --- a/drivers/irqchip/irq-i8259.c +++ b/drivers/irqchip/irq-i8259.c @@ -340,7 +340,7 @@ static void i8259_irq_dispatch(struct irq_desc *desc) generic_handle_domain_irq(domain, hwirq); } -int __init i8259_of_init(struct device_node *node, struct device_node *parent) +static int __init i8259_of_init(struct device_node *node, struct device_node *parent) { struct irq_domain *domain; unsigned int parent_irq; -- 2.39.2 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [irqchip: irq/irqchip-next] irqchipr/i8259: Mark i8259_of_init() static 2023-08-10 12:33 ` [PATCH 3/3] irqchip: i8259: mark i8259_of_init() static Arnd Bergmann @ 2023-08-21 16:58 ` irqchip-bot for Arnd Bergmann 0 siblings, 0 replies; 9+ messages in thread From: irqchip-bot for Arnd Bergmann @ 2023-08-21 16:58 UTC (permalink / raw) To: linux-kernel; +Cc: Arnd Bergmann, Marc Zyngier, tglx The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 424a4aec7a2392d248e2f260ba571a01e24b8ec2 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/424a4aec7a2392d248e2f260ba571a01e24b8ec2 Author: Arnd Bergmann <arnd@arndb.de> AuthorDate: Thu, 10 Aug 2023 14:33:56 +02:00 Committer: Marc Zyngier <maz@kernel.org> CommitterDate: Mon, 21 Aug 2023 17:40:30 +01:00 irqchipr/i8259: Mark i8259_of_init() static i8259_of_init() is only used as an initcall and does not need to be global, so mark it static to avoid: drivers/irqchip/irq-i8259.c:343:12: warning: no previous prototype for 'i8259_of_init' [-Wmissing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230810123404.1222332-3-arnd@kernel.org --- drivers/irqchip/irq-i8259.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c index b70ce0d..115bdcf 100644 --- a/drivers/irqchip/irq-i8259.c +++ b/drivers/irqchip/irq-i8259.c @@ -340,7 +340,7 @@ static void i8259_irq_dispatch(struct irq_desc *desc) generic_handle_domain_irq(domain, hwirq); } -int __init i8259_of_init(struct device_node *node, struct device_node *parent) +static int __init i8259_of_init(struct device_node *node, struct device_node *parent) { struct irq_domain *domain; unsigned int parent_irq; ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() 2023-08-10 12:33 [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Arnd Bergmann 2023-08-10 12:33 ` [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static Arnd Bergmann 2023-08-10 12:33 ` [PATCH 3/3] irqchip: i8259: mark i8259_of_init() static Arnd Bergmann @ 2023-08-10 12:36 ` Max Filippov 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchip/xtensa-pic: Include " irqchip-bot for Arnd Bergmann 3 siblings, 0 replies; 9+ messages in thread From: Max Filippov @ 2023-08-10 12:36 UTC (permalink / raw) To: Arnd Bergmann Cc: Thomas Gleixner, Marc Zyngier, Arnd Bergmann, Chris Zankel, linux-kernel On Thu, Aug 10, 2023 at 5:34 AM Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > The declaration for this function is not included, which leads to a harmless warning: > > drivers/irqchip/irq-xtensa-pic.c:91:12: error: no previous prototype for 'xtensa_pic_init_legacy' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/irqchip/irq-xtensa-pic.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Max Filippov <jcmvbkbc@gmail.com> -- Thanks. -- Max ^ permalink raw reply [flat|nested] 9+ messages in thread
* [irqchip: irq/irqchip-next] irqchip/xtensa-pic: Include header for xtensa_pic_init_legacy() 2023-08-10 12:33 [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Arnd Bergmann ` (2 preceding siblings ...) 2023-08-10 12:36 ` [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Max Filippov @ 2023-08-21 16:58 ` irqchip-bot for Arnd Bergmann 3 siblings, 0 replies; 9+ messages in thread From: irqchip-bot for Arnd Bergmann @ 2023-08-21 16:58 UTC (permalink / raw) To: linux-kernel; +Cc: Arnd Bergmann, Max Filippov, Marc Zyngier, tglx The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 9bdd26b6477f798e292d0c196b9a8e5b77ce5e1d Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/9bdd26b6477f798e292d0c196b9a8e5b77ce5e1d Author: Arnd Bergmann <arnd@arndb.de> AuthorDate: Thu, 10 Aug 2023 14:33:54 +02:00 Committer: Marc Zyngier <maz@kernel.org> CommitterDate: Mon, 21 Aug 2023 17:40:08 +01:00 irqchip/xtensa-pic: Include header for xtensa_pic_init_legacy() The declaration for this function is not included, which leads to a harmless warning: drivers/irqchip/irq-xtensa-pic.c:91:12: error: no previous prototype for 'xtensa_pic_init_legacy' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230810123404.1222332-1-arnd@kernel.org --- drivers/irqchip/irq-xtensa-pic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-xtensa-pic.c b/drivers/irqchip/irq-xtensa-pic.c index ab12328..0c18d1f 100644 --- a/drivers/irqchip/irq-xtensa-pic.c +++ b/drivers/irqchip/irq-xtensa-pic.c @@ -16,6 +16,7 @@ #include <linux/irqdomain.h> #include <linux/irq.h> #include <linux/irqchip.h> +#include <linux/irqchip/xtensa-pic.h> #include <linux/of.h> unsigned int cached_irq_mask; ^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-08-21 16:58 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-08-10 12:33 [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Arnd Bergmann 2023-08-10 12:33 ` [PATCH 2/3] irqchip: mips-gic: mark gic_irq_domain_free() static Arnd Bergmann 2023-08-10 14:52 ` Philippe Mathieu-Daudé 2023-08-13 14:26 ` Serge Semin 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchip/mips-gic: Mark " irqchip-bot for Arnd Bergmann 2023-08-10 12:33 ` [PATCH 3/3] irqchip: i8259: mark i8259_of_init() static Arnd Bergmann 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchipr/i8259: Mark " irqchip-bot for Arnd Bergmann 2023-08-10 12:36 ` [PATCH 1/3] irqchip: xtensa-pic: include header for xtensa_pic_init_legacy() Max Filippov 2023-08-21 16:58 ` [irqchip: irq/irqchip-next] irqchip/xtensa-pic: Include " irqchip-bot for Arnd Bergmann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox