Skip to contentSkip to conversation

drivers: mcb: updates for 5.20

PATCH In review Johannes Thumshirn 2 participants 4 messages Jul 12, 2022 Men chameleon bus (mcb)

lore
Share & tools
lore
#0 lore raw

cover drivers: mcb: updates for 5.20

Hi Greg,

Here's one patch for drivers/mcb aimed at 5.20. It's a simple change from ida_simple_get()/ida_simple_remove() to ida_alloc() and ida_free() from keliu.

Thanks,
Johannes

keliu (1):
drivers: mcb: directly use ida_alloc()/free()

 drivers/mcb/mcb-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.35.3
#1 lore raw

PATCH 1/1 drivers: mcb: directly use ida_alloc()/free()

From: keliu <[email protected]>

Use ida_alloc()/ida_free() instead of deprecated
ida_simple_get()/ida_simple_remove() .

---
 drivers/mcb/mcb-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mcb/mcb-core.c +2 -2
index cf128b3471d7..338fc889b357 100644
@@ -254,7 +254,7 @@ static void mcb_free_bus(struct device *dev)
 	struct mcb_bus *bus = to_mcb_bus(dev);
 
 	put_device(bus->carrier);
-	ida_simple_remove(&mcb_ida, bus->bus_nr);
+	ida_free(&mcb_ida, bus->bus_nr);
 	kfree(bus);
 }
 
@@ -273,7 +273,7 @@ struct mcb_bus *mcb_alloc_bus(struct device *carrier)
 	if (!bus)
 		return ERR_PTR(-ENOMEM);
 
-	bus_nr = ida_simple_get(&mcb_ida, 0, 0, GFP_KERNEL);
+	bus_nr = ida_alloc(&mcb_ida, GFP_KERNEL);
 	if (bus_nr < 0) {
 		kfree(bus);
 		return ERR_PTR(bus_nr);
Signature · 1 line
2.35.3
#2 lore raw
In reply to Johannes Thumshirn
Quoted 4 lines · Johannes Thumshirn

Hi Greg,

Here's one patch for drivers/mcb aimed at 5.20. It's a simple change from ida_simple_get()/ida_simple_remove() to ida_alloc() and ida_free() from keliu.

I'll take this, but you need to fix up your email infrastructure, it is sending out bad DKIM signatures, which do not make me the most comfortable taking, as anyone could be spoofing your address:

Looking up https://lore.kernel.org/r/480676bee970da16bf1fa8565277240014395ba3.1657607743.git.johannes.thumshirn%40wdc.com
Grabbing thread from lore.kernel.org/all/480676bee970da16bf1fa8565277240014395ba3.1657607743.git.johannes.thumshirn%40wdc.com/t.mbox.gz Analyzing 2 messages in the thread
Checking attestation on all messages, may take a moment...
---
✗ [PATCH 1/1] drivers: mcb: directly use ida_alloc()/free()
---
✗ BADSIG: DKIM/wdc.com
---
Total patches: 1
---

Can you please work with your email admins to fix this up?

thanks,

greg k-h

#3 lore raw
Quoted 22 lines · Greg Kroah-Hartmann
Quoted 4 lines · Johannes Thumshirn

Hi Greg,

Here's one patch for drivers/mcb aimed at 5.20. It's a simple change from ida_simple_get()/ida_simple_remove() to ida_alloc() and ida_free() from keliu.

I'll take this, but you need to fix up your email infrastructure, it is sending out bad DKIM signatures, which do not make me the most comfortable taking, as anyone could be spoofing your address:

Looking up https://lore.kernel.org/r/480676bee970da16bf1fa8565277240014395ba3.1657607743.git.johannes.thumshirn%40wdc.com
Grabbing thread from lore.kernel.org/all/480676bee970da16bf1fa8565277240014395ba3.1657607743.git.johannes.thumshirn%40wdc.com/t.mbox.gz Analyzing 2 messages in the thread
Checking attestation on all messages, may take a moment...
---
✗ [PATCH 1/1] drivers: mcb: directly use ida_alloc()/free()
---
✗ BADSIG: DKIM/wdc.com
---
Total patches: 1
---

Quoted 1 line

Can you please work with your email admins to fix this up?

Thanks, not again. I'll work with out IT to get this fixed.