drivers: mcb: updates for 5.20
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
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
@@ -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
Quoted 4 lines · Johannes Thumshirn
Hi Greg,
Here's one patch for
drivers/mcbaimed at 5.20. It's a simple change from ida_simple_get()/ida_simple_remove() toida_alloc()andida_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
Quoted 22 lines · Greg Kroah-Hartmann
Quoted 4 lines · Johannes Thumshirn
Hi Greg,
Here's one patch for
drivers/mcbaimed at 5.20. It's a simple change from ida_simple_get()/ida_simple_remove() toida_alloc()andida_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.