Skip to content

genirq/irq_sim: misc updates

Bartosz Golaszewski lkml 4 versions – Applied

Status from this message: The following commit has been merged into the irq/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 3/34 patches 4 repliesApplied
  2. v2 posting 2/34 patches 7 repliesSuperseded
  3. v2 posting 1/34 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches5 repliesSuperseded

Changes in v2 from the cover letter

- add a NULL-pointer check to the bitmap cleanup macro as advised by Peter Zijlstra
- initialize managed pointers when declaring them to create a clear pairing between the type and the cleanup action

Patches in v2 posting 3/3 Applied

#Subject and filesSizeRepliesApplied
1/4bitmap: define a cleanup function for bitmapsinclude/linux/bitmap.h+3 -00 replies
2/4genirq/irq_sim: remove unused field from struct irq_sim_irq_ctxkernel/irq/irq_sim.c+0 -10 replies
3/4genirq/irq_sim: order headers alphabeticallykernel/irq/irq_sim.c+1 -10 replies
4/4genirq/irq_sim: shrink code by using cleanup helperskernel/irq/irq_sim.c+11 -164 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAndy ShevchenkoYury Norov
1/4R-b A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RESEND PATCH v2 0/4] genirq/irq_sim: misc updates

From: Bartosz Golaszewski <[email protected]>

I'm resending it one last time. As it's been almost 5 months since the initial submission and there were no reviews for the irq_sim part, I'll take it through the GPIO tree for the next merge window.

--

Here are a couple of updates to the interrupt simulator. Two are minor:
remove an unused field and reorder includes for readability. The third one simplifies the error paths by using new cleanup macros. To that end we also add a cleanup definition for dynamic bitmaps.

v1 -> v2:
- add a NULL-pointer check to the bitmap cleanup macro as advised by Peter Zijlstra
- initialize managed pointers when declaring them to create a clear pairing between the type and the cleanup action

Bartosz Golaszewski (4):
bitmap: define a cleanup function for bitmaps genirq/irq_sim: remove unused field from struct irq_sim_irq_ctx genirq/irq_sim: order headers alphabetically genirq/irq_sim: shrink code by using cleanup helpers

 include/linux/bitmap.h |  3 +++
 kernel/irq/irq_sim.c   | 30 ++++++++++++------------------
 2 files changed, 15 insertions(+), 18 deletions(-)
Signature · 1 line
2.40.1