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 790E12D060D; Tue, 9 Sep 2025 09:24:58 +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=1757409899; cv=none; b=jPm6CaxqxyYg3KSH5fwukWh8hNLA+N4tJdon7h/IzamROS1k313ucwt/Bxh1eoEI4DuNIfOWUwA2n1Roo1nyc0gxEFUQrJgdGId5l0bau7PvuwcjkeRn76a89U5GUgkIP9thIKSjNrPwkRlpaDfw69G9vwa4xKgLT26kvKgGwcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757409899; c=relaxed/simple; bh=4cA0YleqjzJdmn1dgYmbQi15ckOY1berA8BmhMoXdi0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Xz7xTf5PEdEmdv0N2Z0lqp76AT0Uc8SIjOFuQSAENpw1Rvdw8FN9ofAEFtaIU9Gx1zvB08ebAAE7sVoJf6Skiy83KB75q/OOD987j1jSBbfIbNgflX3Vm09SwF74C89irJkJsA2Vvzgh6S2waKHWRJZIksKlF3A95ybVLjD/YlE= 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=eJlTKMmz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kht2FRWA; 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="eJlTKMmz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kht2FRWA" From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1757409894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kjI8yLNL46JujTBVdfX+1NUIEG5NdqCM6d/7sSAIi0g=; b=eJlTKMmzYZpLew34qSC9s68db8VsN2gT8IlLEawPBkgsOS7Cxe1kSusXwKtr4hv3eG09Xu QzGxljkjGppHekS+NzfHi28Z3nCxurshaYdXEsNsAnP9BAF5OfJ4mtxOPaw2E5CIra9q+X yu+SECkaR29SOvnEvLVqUL/ZRByXk0FO93BfP/sfyGkpP82KKtJmXxXYg/cmO/9r4MWuIl huhNsslAE5R+87wQlEMETevRjrZbVotNktOD9ylriNM3nMxUbgasSvrX1zwRMkMEIDkNkw q3e+YsAce/tVuVYn6TERtP/sHAnfcPtcdov+itM2E30TaRXq6uGtzHiSyMUT7w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1757409894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kjI8yLNL46JujTBVdfX+1NUIEG5NdqCM6d/7sSAIi0g=; b=kht2FRWAE5xLDAwQEQQL2CWiSg5araebssnmf7Dh13rxG9eZFdDbUcKWCC51hkCZfhygQG XoZurdLKyUkkGeAg== To: Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: Mark Rutland , Will Deacon , "Rafael J. Wysocki" , Rob Herring , Saravana Kannan , Greg Kroah-Hartman , Sven Peter , Janne Grunau , Suzuki K Poulose , James Clark Subject: Re: [PATCH 01/25] irqdomain: Add firmware info reporting interface In-Reply-To: <87ikhsvvau.ffs@tglx> References: <20250908163127.2462948-1-maz@kernel.org> <20250908163127.2462948-2-maz@kernel.org> <87ikhsvvau.ffs@tglx> Date: Tue, 09 Sep 2025 11:24:53 +0200 Message-ID: <87frcwvuze.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, Sep 09 2025 at 11:18, Thomas Gleixner wrote: > On Mon, Sep 08 2025 at 17:31, Marc Zyngier wrote: >> +int irq_populate_fwspec_info(struct irq_fwspec_info *info) >> +{ >> + struct irq_domain *domain; >> + >> + domain = fwspec_to_domain(&info->fwspec); > > Just move that to the declaration line > >> + if (!domain || !domain->ops->get_info) { >> + info->flags = 0; It looks like @info is not initialized except for info::fwspec. That's a patently bad idea. Why has fwspec to be in info in the first place? What's wrong with doing the obvious: int irq_populate_fwspec_info(struct irq_fwspec *fwspec, struct irq_fwspec_info *info) { memset(info, 0, sizeof(info)); .... No? Thanks, tglx