Linux PARISC architecture development
 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; 3+ 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] 3+ messages in thread

end of thread, other threads:[~2026-07-05 21:11 UTC | newest]

Thread overview: 3+ 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-05 21:09 ` [PATCH 2/2] parisc: " Radu Rendec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox