All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove unnecessary NULL check of the kstat_irqs field
@ 2026-07-05 21:09 Radu Rendec
  2026-07-05 21:09 ` [PATCH 1/2] genirq: " Radu Rendec
  2026-07-05 21:09 ` [PATCH 2/2] parisc: " Radu Rendec
  0 siblings, 2 replies; 5+ messages in thread
From: Radu Rendec @ 2026-07-05 21:09 UTC (permalink / raw)
  To: James E.J. Bottomley, Helge Deller, Thomas Gleixner
  Cc: linux-parisc, linux-kernel

The kstat_irqs field of struct irq_desc is used to store a per-cpu count
of interrupt events. It is initialized in init_desc(), along with all
the other fields in struct irq_desc that need explicit initialization,
and therefore it's always available (non-NULL) for any valid interrupt
descriptor.

This series removes the unnecessary NULL check of the kstat_irqs field.
The first patch addresses the generic IRQ code, and the second patch
addresses one isolated occurrence in the parisc code. The first patch
also includes a more detailed description of why removing the NULL check
is safe.

Radu Rendec (2):
  genirq: Remove unnecessary NULL check of the kstat_irqs field
  parisc: Remove unnecessary NULL check of the kstat_irqs field

 arch/parisc/kernel/smp.c |  2 +-
 include/linux/irqdesc.h  |  2 +-
 kernel/irq/irqdesc.c     | 11 ++++-------
 3 files changed, 6 insertions(+), 9 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-07 19:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-05 21:09 [PATCH 0/2] Remove unnecessary NULL check of the kstat_irqs field Radu Rendec
2026-07-05 21:09 ` [PATCH 1/2] genirq: " Radu Rendec
2026-07-07 19:39   ` [tip: irq/core] " tip-bot2 for Radu Rendec
2026-07-05 21:09 ` [PATCH 2/2] parisc: " Radu Rendec
2026-07-07 19:38   ` [tip: irq/core] " tip-bot2 for Radu Rendec

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.