linux-next: build failure after merge of the staging tree
Subsystems (2)
Hi all,
After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/iio/trigger/iio-trig-sysfs.c: In function 'iio_sysfs_trigger_probe':drivers/iio/trigger/iio-trig-sysfs.c:164:21: error: 'struct irq_work' has no member named 'flags'
164 | atomic_set(&t->work.flags, IRQ_WORK_HARD_IRQ);
| ^
Caused by commit
0449fc4eead7 ("iio: sysfs-trigger: Mark irq_work to expire in hardirq context")
interacting with commit
7a9f50a05843 ("irq_work: Cleanup")
from the tip tree.
I applied the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Mon, 7 Dec 2020 16:42:18 +1100
Subject: [PATCH] fixup for "irq_work: Cleanup"
--- drivers/iio/trigger/iio-trig-sysfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/iio/trigger/iio-trig-sysfs.c +1 -2
@@ -160,8 +160,7 @@ static int iio_sysfs_trigger_probe(int id) t->trig->dev.parent = &iio_sysfs_trig_dev;iio_trigger_set_drvdata (t->trig, t); -init_irq_work (&t->work, iio_sysfs_trigger_work); -atomic_set (&t->work.flags,IRQ_WORK_HARD_IRQ ); + t->work =IRQ_WORK_INIT_HARD (iio_sysfs_trigger_work); ret =iio_trigger_register (t->trig);if (ret)
Signature · 5 lines
2.29.2 -- Cheers, Stephen Rothwell
Quoted 47 lines · Stephen Rothwell
Hi all,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/iio/trigger/iio-trig-sysfs.c: In function 'iio_sysfs_trigger_probe':drivers/iio/trigger/iio-trig-sysfs.c:164:21: error: 'structirq_work' has no member named 'flags'
164 |atomic_set(&t->work.flags, IRQ_WORK_HARD_IRQ);
| ^Caused by commit
0449fc4eead7("iio: sysfs-trigger: Markirq_workto expire in hardirq context")interacting with commit
7a9f50a05843("irq_work: Cleanup")from the tip tree.
I applied the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Mon, 7 Dec 2020 16:42:18 +1100
Subject: [PATCH] fixup for "irq_work: Cleanup"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/iio/trigger/iio-trig-sysfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/iio/trigger/iio-trig-sysfs.c +1
-2@@ -160,8 +160,7 @@ static int iio_sysfs_trigger_probe(int id) t->trig->dev.parent = &iio_sysfs_trig_dev;iio_trigger_set_drvdata (t->trig, t); -init_irq_work (&t->work, iio_sysfs_trigger_work); -atomic_set (&t->work.flags,IRQ_WORK_HARD_IRQ ); + t->work =IRQ_WORK_INIT_HARD (iio_sysfs_trigger_work); ret =iio_trigger_register (t->trig);if (ret)Signature · 1 line
2.29.2
Is this patch "safe" to take now, if the tip tree isn't part of my tree?
thanks,
greg k-h
Hi Greg,
Quoted 13 lines · On Mon, 7 Dec 2020 10:26:06 +0100 Greg KH <[email protected]> wrote:
Quoted 13 lines
drivers/iio/trigger/iio-trig-sysfs.c +1
-2@@ -160,8 +160,7 @@ static int iio_sysfs_trigger_probe(int id) t->trig->dev.parent = &iio_sysfs_trig_dev;iio_trigger_set_drvdata (t->trig, t); -init_irq_work (&t->work, iio_sysfs_trigger_work); -atomic_set (&t->work.flags,IRQ_WORK_HARD_IRQ ); + t->work =IRQ_WORK_INIT_HARD (iio_sysfs_trigger_work);
Quoted 6 lines
Quoted 4 lines
drivers/iio/trigger/iio-trig-sysfs.c +0
-0ret =iio_trigger_register (t->trig);if (ret)Signature · 1 line
2.29.2Is this patch "safe" to take now, if the tip tree isn't part of my tree?
Unfortunately not, as IRQ_WORK_INIT_HARD() is introduced by the tip tree commit.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 37 lines · On Mon, 7 Dec 2020 16:46:01 +1100 Stephen Rothwell <[email protected]> wrote:
Hi all,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/iio/trigger/iio-trig-sysfs.c: In function 'iio_sysfs_trigger_probe':drivers/iio/trigger/iio-trig-sysfs.c:164:21: error: 'structirq_work' has no member named 'flags'
164 |atomic_set(&t->work.flags, IRQ_WORK_HARD_IRQ);
| ^Caused by commit
0449fc4eead7("iio: sysfs-trigger: Markirq_workto expire in hardirq context")interacting with commit
7a9f50a05843("irq_work: Cleanup")from the tip tree.
I applied the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Mon, 7 Dec 2020 16:42:18 +1100
Subject: [PATCH] fixup for "irq_work: Cleanup"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/iio/trigger/iio-trig-sysfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/iio/trigger/iio-trig-sysfs.c +0
-0
drivers/iio/trigger/iio-trig-sysfs.c static int iio_sysfs_trigger_probe(int id) · line 166
Quoted 9 lines
drivers/iio/trigger/iio-trig-sysfs.c +1
-2@@ -160,8 +160,7 @@ static int iio_sysfs_trigger_probe(int id) t->trig->dev.parent = &iio_sysfs_trig_dev;iio_trigger_set_drvdata (t->trig, t); -init_irq_work (&t->work, iio_sysfs_trigger_work); -atomic_set (&t->work.flags,IRQ_WORK_HARD_IRQ ); + t->work =IRQ_WORK_INIT_HARD (iio_sysfs_trigger_work); ret =iio_trigger_register (t->trig);if (ret)
Just a reminder that I am still applying this merge fix.
Signature · 2 lines
Cheers, Stephen Rothwell