genirq/irq_sim: Remove unused irq_sim_work_ctx::irq_base
PATCH 1/3 genirq/irq_sim: Remove unused irq_sim_work_ctx::irq_base
Since commit 337cbeb2c13e ("genirq/irq_sim: Simplify the API"), irq_sim_work_ctx::irq_base is unused. Drop it.
Found by https://github.com/jirislaby/clang-struct.
--- kernel/irq/irq_sim.c | 1 - 1 file changed, 1 deletion(-)
kernel/irq/irq_sim.c +0 -1
@@ -13,7 +13,6 @@struct irq_sim_work_ctx {struct irq_work work; -int irq_base;unsigned int irq_count;unsigned long *pending;struct irq_domain *domain;
Signature · 1 line
2.46.0
PATCH 2/3 genirq: Remove unused irq_chip_generic::{type,polarity}_cache
The type_cache and polarity_cache members of struct irq_chip_generic are unused. Remove them both along with their kernel-doc.
Found by https://github.com/jirislaby/clang-struct.
--- include/linux/irq.h | 4 ---- 1 file changed, 4 deletions(-)
include/linux/irq.h +0 -4
@@ -1040,8 +1040,6 @@ struct irq_chip_type {* @irq_base: Interrupt base nr for this chip * @irq_cnt: Number of interrupts handled by this chip * @mask_cache: Cached mask register shared between all chip types -* @type_cache: Cached type register -* @polarity_cache: Cached polarity register * @wake_enabled: Interrupt can wakeup from suspend * @wake_active: Interrupt is marked as an wakeup from suspend source * @num_ct: Number of available irq_chip_type instances (usually 1)
@@ -1068,8 +1066,6 @@ struct irq_chip_generic {unsigned int irq_base;unsigned int irq_cnt;u32 mask_cache; -u32 type_cache; -u32 polarity_cache;u32 wake_enabled;u32 wake_active;unsigned int num_ct;
Signature · 1 line
2.46.0
[tip: irq/core] genirq: Remove unused irq_chip_generic:: {type,polarity}_cache
The following commit has been merged into the irq/core branch of tip:
The following commit has been merged into the irq/core branch of tip:
Commit-ID: a09cdb8f564613769142a60400bb5160864c3269 Gitweb: https://git.kernel.org/tip/a09cdb8f564613769142a60400bb5160864c3269 Author: Jiri Slaby (SUSE) <[email protected]> AuthorDate: Thu, 08 Aug 2024 12:41:17 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Thu, 08 Aug 2024 17:15:02 +02:00
genirq: Remove unused irq_chip_generic:: {type,polarity}_cache
The type_cache and polarity_cache members of struct irq_chip_generic are unused. Remove them both along with their kernel-doc.
Found by https://github.com/jirislaby/clang-struct.
--- include/linux/irq.h | 4 ---- 1 file changed, 4 deletions(-)
include/linux/irq.h +0 -4
@@ -1040,8 +1040,6 @@ struct irq_chip_type {* @irq_base: Interrupt base nr for this chip * @irq_cnt: Number of interrupts handled by this chip * @mask_cache: Cached mask register shared between all chip types -* @type_cache: Cached type register -* @polarity_cache: Cached polarity register * @wake_enabled: Interrupt can wakeup from suspend * @wake_active: Interrupt is marked as an wakeup from suspend source * @num_ct: Number of available irq_chip_type instances (usually 1)
@@ -1068,8 +1066,6 @@ struct irq_chip_generic {unsigned int irq_base;unsigned int irq_cnt;u32 mask_cache; -u32 type_cache; -u32 polarity_cache;u32 wake_enabled;u32 wake_active;unsigned int num_ct;
PATCH 3/3 genirq: Remove irq_chip_regs::polarity
In reply to Jiri Slaby (SUSE)The polarity member of struct irq_chip_regs is unused. Remove it along with its kernel-doc.
Found by https://github.com/jirislaby/clang-struct.
--- include/linux/irq.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/irq.h +0 -2
@@ -991,7 +991,6 @@ void irq_init_desc(unsigned int irq);* @ack: Ack register offset to reg_base * @eoi: Eoi register offset to reg_base * @type: Type configuration register offset to reg_base -* @polarity: Polarity configuration register offset to reg_base */ struct irq_chip_regs {unsigned long enable;
@@ -1000,7 +999,6 @@ struct irq_chip_regs {unsigned long ack;unsigned long eoi;unsigned long type; -unsigned long polarity; };/**
Signature · 1 line
2.46.0
[tip: irq/core] genirq: Remove irq_chip_regs:: Polarity
The following commit has been merged into the irq/core branch of tip:
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 60029162a0458832ab2bcfc6fd4986bfd9ca0f55 Gitweb: https://git.kernel.org/tip/60029162a0458832ab2bcfc6fd4986bfd9ca0f55 Author: Jiri Slaby (SUSE) <[email protected]> AuthorDate: Thu, 08 Aug 2024 12:41:18 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Thu, 08 Aug 2024 17:15:02 +02:00
genirq: Remove irq_chip_regs:: Polarity
The polarity member of struct irq_chip_regs is unused. Remove it along with its kernel-doc.
Found by https://github.com/jirislaby/clang-struct.
--- include/linux/irq.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/irq.h +0 -2
@@ -991,7 +991,6 @@ void irq_init_desc(unsigned int irq);* @ack: Ack register offset to reg_base * @eoi: Eoi register offset to reg_base * @type: Type configuration register offset to reg_base -* @polarity: Polarity configuration register offset to reg_base */ struct irq_chip_regs {unsigned long enable;
@@ -1000,7 +999,6 @@ struct irq_chip_regs {unsigned long ack;unsigned long eoi;unsigned long type; -unsigned long polarity; };/**
Quoted 26 lines · Jiri Slaby (SUSE)
Since commit
337cbeb2c13e("genirq/irq_sim: Simplify the API"),irq_sim_work_ctx::irq_baseis unused. Drop it.Found by https://github.com/jirislaby/clang-struct.
Signed-off-by Jiri Slaby (SUSE) <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Bartosz Golaszewski <[email protected]>--- kernel/irq/irq_sim.c | 1 - 1 file changed, 1 deletion(-)kernel/irq/irq_sim.c +0
-2@@ -13,7 +13,6 @@struct irq_sim_work_ctx {struct irq_work work; -int irq_base;unsigned int irq_count;unsigned long *pending;struct irq_domain *domain; --
Quoted 2 lines
2.46.0
[tip: irq/core] genirq/irq_sim: Remove unused irq_sim_work_ctx:: Irq_base
In reply to Jiri Slaby (SUSE)The following commit has been merged into the irq/core branch of tip:
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 15e46124ec937bb0ab530634dce4550947f53133 Gitweb: https://git.kernel.org/tip/15e46124ec937bb0ab530634dce4550947f53133 Author: Jiri Slaby (SUSE) <[email protected]> AuthorDate: Thu, 08 Aug 2024 12:41:16 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Thu, 08 Aug 2024 17:15:01 +02:00
genirq/irq_sim: Remove unused irq_sim_work_ctx:: Irq_base
Since commit 337cbeb2c13e ("genirq/irq_sim: Simplify the API"), irq_sim_work_ctx::irq_base is unused. Drop it.
Found by https://github.com/jirislaby/clang-struct.
--- kernel/irq/irq_sim.c | 1 - 1 file changed, 1 deletion(-)
kernel/irq/irq_sim.c +0 -1
@@ -13,7 +13,6 @@struct irq_sim_work_ctx {struct irq_work work; -int irq_base;unsigned int irq_count;unsigned long *pending;struct irq_domain *domain;