* [PATCH] genirq: Remove unused parameter force of irq_set_affinity_deactivated()
@ 2022-10-07 10:32 Angus Chen
2022-11-11 18:10 ` Thomas Gleixner
2022-11-17 15:08 ` [tip: irq/core] genirq: Remove unused argument " tip-bot2 for Angus Chen
0 siblings, 2 replies; 4+ messages in thread
From: Angus Chen @ 2022-10-07 10:32 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, Angus Chen
The force parameter in irq_set_affinity_deactivated() is not used,
get rid of it.
Fixes: baedb87d1b53 ("genirq/affinity: Handle affinity setting on inactive interrupts correctly")
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
---
kernel/irq/manage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 40fe7806cc8c..5b7cf28df290 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -321,7 +321,7 @@ static int irq_try_set_affinity(struct irq_data *data,
}
static bool irq_set_affinity_deactivated(struct irq_data *data,
- const struct cpumask *mask, bool force)
+ const struct cpumask *mask)
{
struct irq_desc *desc = irq_data_to_desc(data);
@@ -354,7 +354,7 @@ int irq_set_affinity_locked(struct irq_data *data, const struct cpumask *mask,
if (!chip || !chip->irq_set_affinity)
return -EINVAL;
- if (irq_set_affinity_deactivated(data, mask, force))
+ if (irq_set_affinity_deactivated(data, mask))
return 0;
if (irq_can_move_pcntxt(data) && !irqd_is_setaffinity_pending(data)) {
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] genirq: Remove unused parameter force of irq_set_affinity_deactivated()
2022-10-07 10:32 [PATCH] genirq: Remove unused parameter force of irq_set_affinity_deactivated() Angus Chen
@ 2022-11-11 18:10 ` Thomas Gleixner
2022-11-12 2:06 ` Angus Chen
2022-11-17 15:08 ` [tip: irq/core] genirq: Remove unused argument " tip-bot2 for Angus Chen
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2022-11-11 18:10 UTC (permalink / raw)
To: Angus Chen; +Cc: linux-kernel, Angus Chen
On Fri, Oct 07 2022 at 18:32, Angus Chen wrote:
> The force parameter in irq_set_affinity_deactivated() is not used,
> get rid of it.
Correct.
> Fixes: baedb87d1b53 ("genirq/affinity: Handle affinity setting on
> inactive interrupts correctly")
What does this fix? An unused argument is neither a bug nor a
problem. Removing it is a cleanup nothing else.
Thanks,
tglx
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] genirq: Remove unused parameter force of irq_set_affinity_deactivated()
2022-11-11 18:10 ` Thomas Gleixner
@ 2022-11-12 2:06 ` Angus Chen
0 siblings, 0 replies; 4+ messages in thread
From: Angus Chen @ 2022-11-12 2:06 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: linux-kernel@vger.kernel.org
Hi tglx.
> -----Original Message-----
> From: Thomas Gleixner <tglx@linutronix.de>
> Sent: Saturday, November 12, 2022 2:11 AM
> To: Angus Chen <angus.chen@jaguarmicro.com>
> Cc: linux-kernel@vger.kernel.org; Angus Chen <angus.chen@jaguarmicro.com>
> Subject: Re: [PATCH] genirq: Remove unused parameter force of
> irq_set_affinity_deactivated()
>
> On Fri, Oct 07 2022 at 18:32, Angus Chen wrote:
> > The force parameter in irq_set_affinity_deactivated() is not used,
> > get rid of it.
>
> Correct.
>
> > Fixes: baedb87d1b53 ("genirq/affinity: Handle affinity setting on
> > inactive interrupts correctly")
>
> What does this fix? An unused argument is neither a bug nor a
> problem. Removing it is a cleanup nothing else.
>
Thank you for your reply.
I almost forget this patch because it just a cleanup.
I thought maybe it is too simple to submit,
so it be ignored by maintainer.
Can I send a v2 to modify the git log ?
Thanks.
> Thanks,
>
> tglx
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip: irq/core] genirq: Remove unused argument force of irq_set_affinity_deactivated()
2022-10-07 10:32 [PATCH] genirq: Remove unused parameter force of irq_set_affinity_deactivated() Angus Chen
2022-11-11 18:10 ` Thomas Gleixner
@ 2022-11-17 15:08 ` tip-bot2 for Angus Chen
1 sibling, 0 replies; 4+ messages in thread
From: tip-bot2 for Angus Chen @ 2022-11-17 15:08 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Angus Chen, Thomas Gleixner, x86, linux-kernel, maz
The following commit has been merged into the irq/core branch of tip:
Commit-ID: fd19ce77993a49f3afc56bb4cae7eafb1ec69e0c
Gitweb: https://git.kernel.org/tip/fd19ce77993a49f3afc56bb4cae7eafb1ec69e0c
Author: Angus Chen <angus.chen@jaguarmicro.com>
AuthorDate: Fri, 07 Oct 2022 18:32:36 +08:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Thu, 17 Nov 2022 14:00:55 +01:00
genirq: Remove unused argument force of irq_set_affinity_deactivated()
The force parameter in irq_set_affinity_deactivated() is not used,
get rid of it.
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20221007103236.599-1-angus.chen@jaguarmicro.com
---
kernel/irq/manage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 40fe780..5b7cf28 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -321,7 +321,7 @@ static int irq_try_set_affinity(struct irq_data *data,
}
static bool irq_set_affinity_deactivated(struct irq_data *data,
- const struct cpumask *mask, bool force)
+ const struct cpumask *mask)
{
struct irq_desc *desc = irq_data_to_desc(data);
@@ -354,7 +354,7 @@ int irq_set_affinity_locked(struct irq_data *data, const struct cpumask *mask,
if (!chip || !chip->irq_set_affinity)
return -EINVAL;
- if (irq_set_affinity_deactivated(data, mask, force))
+ if (irq_set_affinity_deactivated(data, mask))
return 0;
if (irq_can_move_pcntxt(data) && !irqd_is_setaffinity_pending(data)) {
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-17 15:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-07 10:32 [PATCH] genirq: Remove unused parameter force of irq_set_affinity_deactivated() Angus Chen
2022-11-11 18:10 ` Thomas Gleixner
2022-11-12 2:06 ` Angus Chen
2022-11-17 15:08 ` [tip: irq/core] genirq: Remove unused argument " tip-bot2 for Angus Chen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.