From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 515AC3AB5C7; Tue, 7 Jul 2026 19:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783453145; cv=none; b=eCyVZXBKc0oLia03wi7IiONm/ACWkSR/XoB9AGleyavzvdsN/zPgxqYc0emJAYd41yfWGQv9xrr8KM1vGMEdcVJDPptEJzIkzuVj7s+cn8vMyUC/Jh1v3oxBxtlrkUr/COPHjLZvjdBme9zV2dVMfqjU4Va35ZUpyy8lTD9KwNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783453145; c=relaxed/simple; bh=MrF0mPdZsKOrNv+zyOcC2Huyyv3BZHrDrWoxPJvGtlU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=thDVmdsOoV/fzQGPOpA7Fvy5pZNXVSqb9+KqxssoqteiHxFcXp1Za+qls/aCOW4sQRRuCeO9ZggfsMeby00Z9V7WWVfUm4U0hJlc10Dn2pv+JH2iuuZ8IxAz5a5tdcs9TFBsgwnQ8z0F51cfI5VUcEZjWm7MS7vssOyp/SasoAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=OHQ8RiSN; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fq4GoDoY; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="OHQ8RiSN"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fq4GoDoY" Date: Tue, 07 Jul 2026 19:38:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783453140; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Lp1POfuTm4AaR501mLEHYABftMRYJabDb1+nucF+YXg=; b=OHQ8RiSNkOz0v+g9vfB9+lGzPq3xI89xSctFbjSrO3sw390ZXiMC4JagXETEDrvbZqdMAp L7WETr+fiQjb/Vhw58ZZsSmQWsMxzNLHvy0sRQoccSv6qmMiCbhTsDf7b9p/MTin3Efe+8 T458XYqrDsSm74sZF4RGEkPH51V1capbDlMYTf1oI7Lngerm5A1542k6FkEk0PauM44op3 l4Gwoa0TEoyt9m9odmr5PEKcmNQ5Z9KsVcZq2QN03HLkdF3aREvTkCmREn0b6N0ixOZZCj JvdvnUjn+9Tfhsj/YPE/eZcpYhaEWPwoOCSMxAHLf711tR9xoRV7iZtXS3nehQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783453140; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Lp1POfuTm4AaR501mLEHYABftMRYJabDb1+nucF+YXg=; b=fq4GoDoYDJBkarHVuv7UrbcgRuN3/6rLgpDTfoBd5rl7r7FBEPAf9kr8cWPzBRxyAEOGvP JhPrXK86z0v39wBQ== From: "tip-bot2 for Radu Rendec" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] parisc: Remove unnecessary NULL check of the kstat_irqs field Cc: Radu Rendec , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20260705210951.2717741-3-radu@rendec.net> References: <20260705210951.2717741-3-radu@rendec.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178345313898.744054.8164416070801504610.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/core branch of tip: Commit-ID: 2c27d9b154743eb113e643680b5ce2f8a51647a4 Gitweb: https://git.kernel.org/tip/2c27d9b154743eb113e643680b5ce2f8a51= 647a4 Author: Radu Rendec AuthorDate: Sun, 05 Jul 2026 17:09:51 -04:00 Committer: Thomas Gleixner CommitterDate: Tue, 07 Jul 2026 21:36:19 +02:00 parisc: Remove unnecessary NULL check of the kstat_irqs field 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. On parisc, CONFIG_SPARSE_IRQ is disabled, interrupt descriptors are allocated statically in the irq_desc[] array, and kstat_irqs is initialized implicitly to NULL. The kstat_irqs field is initialized later, for all descriptors, via start_kernel() -> early_irq_init() -> init_desc(). smp_boot_one_cpu() is used only for CPU hotplugging. On a SMP system, the boot CPU initializes the interrupt descriptors as described above, and smp_boot_one_cpu() is called later, for the secondary CPU(s). A previous change made similar changes across the generic interrupt code in kernel/irq/irqdesc.c, and provides a more detailed explanation of why kstat_irqs is guaranteed to be non-NULL. Signed-off-by: Radu Rendec Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260705210951.2717741-3-radu@rendec.net --- arch/parisc/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index b2d12ab..36be17e 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -343,7 +343,7 @@ static int smp_boot_one_cpu(int cpuid, struct task_struct= *idle) for (i =3D 0; i < NR_IRQS; i++) { struct irq_desc *desc =3D irq_to_desc(i); =20 - if (desc && desc->kstat_irqs) + if (desc) *per_cpu_ptr(desc->kstat_irqs, cpuid) =3D (struct irqstat) { }; } #endif